keptn-terraform/terraform-kubernetes-get-se...
ermisw 0355645024 added KEPTN Bridge URL as env for passing to other job 2023-11-28 12:31:21 +01:00
..
bin added KEPTN Bridge URL as env for passing to other job 2023-11-28 12:31:21 +01:00
GNUmakefile added custom module 2023-11-22 09:20:07 +01:00
LICENSE added custom module 2023-11-22 09:20:07 +01:00
README.md added custom module 2023-11-22 09:20:07 +01:00
go.mod added custom module 2023-11-22 09:20:07 +01:00
go.sum added custom module 2023-11-22 09:20:07 +01:00
main.go added custom module 2023-11-22 09:20:07 +01:00
main.tf added KEPTN Bridge URL as env for passing to other job 2023-11-28 12:31:21 +01:00
meta.tf added custom module 2023-11-22 09:20:07 +01:00
outputs.tf added custom module 2023-11-22 09:20:07 +01:00
printf.cmd added custom module 2023-11-22 09:20:07 +01:00
vars.tf added custom module 2023-11-22 09:20:07 +01:00

README.md

Terraform Module: Get Kubernetes Secret Value

This repository is a Terraform Module to use Kubernetes secrets as data.

Table of Contents

Requirements

This module requires Terraform version 0.10.x or newer and a valid out-of-cluster Kubernetes configuration at the default path ($HOME/.kube/config) or the path defined by $KUBECONFIG.

Usage

Add the module to your Terraform resources:

module "rds-postgres-password" {
  source    = "github.com/gearnode/terraform-kubernetes-get-secret?ref=v0.3.1"

  namespace = "default"
  name = "terraform"
  key = "database-password"
  context = "supercontext"
}

and load the module using terraform get.

Module Variables

Available variables are listed below, along with their default values:

variable description
namespace The kubernetes namespace
name The kubernetes secret name
key The kubernetes secret key to get
context The kubernetes context

Module outputs

Available outputs are listed below, along with their description:

output description
result A string of the secret value.

Contributing

Requirements

  • fully installed and configured go environment

Contributing code

To build binaries, use the following commands:

$ git clone git@github.com:gearnode/terraform-kubernetes-get-secret.git
$ cd terraform-kubernetes-get-secret
$ make

Maintainers

This module is currently maintained by the individuals listed below.