terraform-provider-kubeseal

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 2 Imported by: 0

README

terraform-provider-kubeseal

A very barebones provider that exposes basic kubeseal functionality as a terraform data source.

Usage
terraform {
  required_providers {
    kubeseal = {
      source = "kita99/kubeseal"
      version = "0.1.0"
    }
  }
}

provider "kubeseal" {
}

data "kubeseal_secret" "my_secret" {
  name = "my-secret"
  namespace = kubernetes_namespace.example_ns.metadata.0.name
  type = "Opaque"

  secrets = {
    key = "value"
  }
  controller_name = "sealed-secret-controller"
  controller_namespace = "default"

  depends_on = [kubernetes_namespace.example_ns, var.sealed_secrets_controller_id]
}
Argument Reference

The following arguments are supported:

  • name - Name of the secret, must be unique.
  • namespace - Namespace defines the space within which name of the secret must be unique.
  • type - The secret type. ex: Opaque
  • secrets - Key/value pairs to populate the secret
  • controller_name - Name of the SealedSecrets controller in the cluster
  • controller_namespace - Namespace of the SealedSecrets controller in the cluster
  • depends_on - For specifying hidden dependencies.

NOTE: All the arguments above are required

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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