mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-16 11:37:04 +02:00
* Added a scenario to test docker artifacts using the vault helm chart and a kind cluster * Addedt enos-k8s github workflow
51 lines
983 B
HCL
51 lines
983 B
HCL
terraform {
|
|
required_providers {
|
|
enos = {
|
|
source = "app.terraform.io/hashicorp-qti/enos"
|
|
}
|
|
random = {
|
|
source = "hashicorp/random"
|
|
version = ">= 3.4.3"
|
|
}
|
|
}
|
|
}
|
|
|
|
resource "random_pet" "cluster_name" {}
|
|
|
|
resource "enos_local_kind_cluster" "this" {
|
|
name = random_pet.cluster_name.id
|
|
kubeconfig_path = var.kubeconfig_path
|
|
}
|
|
|
|
variable "kubeconfig_path" {
|
|
type = string
|
|
}
|
|
|
|
output "cluster_name" {
|
|
value = random_pet.cluster_name.id
|
|
}
|
|
|
|
output "kubeconfig_base64" {
|
|
value = enos_local_kind_cluster.this.kubeconfig_base64
|
|
}
|
|
|
|
output "context_name" {
|
|
value = enos_local_kind_cluster.this.context_name
|
|
}
|
|
|
|
output "host" {
|
|
value = enos_local_kind_cluster.this.endpoint
|
|
}
|
|
|
|
output "client_certificate" {
|
|
value = enos_local_kind_cluster.this.client_certificate
|
|
}
|
|
|
|
output "client_key" {
|
|
value = enos_local_kind_cluster.this.client_key
|
|
}
|
|
|
|
output "cluster_ca_certificate" {
|
|
value = enos_local_kind_cluster.this.cluster_ca_certificate
|
|
}
|