terraform-provider-valsoperator

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Terraform Provider ValsOperator

This provider can be use to deploy ValsSecrets to a Kubernetes cluster running the vals-operator

Example Usage

# Example of a ValsSecret that reads a user and password from HashiCorp Vault
resource "valsoperator_valssecret" "example" {
  name      = "example"
  namespace = "default"

  secret_ref {
    name     = "username"
    ref      = "ref+vault://secret/myapp/username"
    encoding = "text"
  }

  secret_ref {
    name     = "password"
    ref      = "ref+vault://secret/myapp/password"
    encoding = "text"
  }

  template {
    name  = "config.yaml"
    value = <<END
# Config generated by Vals-Operator on {{ now | date "2006-01-02" }}
username: {{.username}}
password: {{.password}}
END
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL