An open API service indexing awesome lists of open source software.

https://github.com/isan-rivkin/kubefigure


https://github.com/isan-rivkin/kubefigure

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# KubeFigure

Render configurations and secrets directly into your YAML's during runtime.

k apply -> mutatingWebHook -> fetch data source -> render -> deploy

# Supported Data Sources:

* Terraform (S3)

* Vault

* Consul

# Usage example:

In terminal run with the file `example.yaml`:

```bash
$go run main.go input --input=example.yaml
```

This config pulls data from vault, consul and terraform:

```yaml

sources:
- sourceType: vault
vault:
address:
authType: approle
auth:
approle:
value:
path:
# optional: jsonpath to extract a key if the secret is a json file
valPath: $.token
- sourceType: terraform
terraform:
storageType: s3
storage:
bucket:
region:
value:
key:
# jsonpath to extract some output from the remote state, same as remote_state stanza in terraform
stateValuePath: $.outputs.ec2_instance_security_group_id.value
- sourceType: consulkv
consul:
authType: http
auth:
address:
port:
value:
key:
# optional: jsonpath to extract a key if the kv value is a json file
valPath: $.project_id
# optional to filter kv
options:
datacenter:
```