Skip to content

Commit

Permalink
fixed liniting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva committed Dec 31, 2023
1 parent 46ff4c5 commit f9b38a4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
4 changes: 2 additions & 2 deletions k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ resource "vault_kubernetes_auth_backend_role" "backend_role" {
}

// KUBECONFIG FILE HANDLING
data "local_file" "input" {
data "local_file" "kubeconfig" {
filename = var.kubeconfig_path
}

locals {
kubeconfig = yamldecode(file(var.kubeconfig_path))
kubeconfig = yamldecode(data.local_file.kubeconfig.content)
}

data "kubernetes_secret" "vault" {
Expand Down
6 changes: 6 additions & 0 deletions provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ terraform {
source = "hashicorp/helm"
version = ">= 2.12.1"
}

local = {
source = "hashicorp/local"
version = "2.4.1"
}

}
}

Expand Down
30 changes: 26 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ variable "approle_roles" {
description = "A list of approle definitions"
}

variable "userPassPath" { default = "userpass" }
variable "userPassPath" {
type = string
default = "userpass"
description = "userpass"
}




variable "user_list" {
type = list(object({
path = string
Expand Down Expand Up @@ -108,6 +116,20 @@ variable "vso_enabled" {
default = true
}

variable "createDefaultAdminPolicy" { default = false }
variable "enableUserPass" { default = false }
variable "enableApproleAuth" { default = false }
variable "enableApproleAuth" {
description = "Enable approle auth"
type = bool
default = false
}

variable "createDefaultAdminPolicy" {
description = "Create default admin policy"
type = bool
default = false
}

variable "enableUserPass" {
description = "Enable user pass"
type = bool
default = false
}

0 comments on commit f9b38a4

Please sign in to comment.