Skip to content
🔧Create secrets from key/value pairs in JSON files
Go Dockerfile Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
action
cmd
testdata
vendor
version
.editorconfig
.gitignore
LICENSE
Makefile
README.md
VERSION.txt
go.mod
go.sum
main.go

README.md

Secret Kube

Go Report Card

Table of Contents

(Table of contents goes here)

This tool will allow you to keep the keys in your json file and base64 the contents and apply them to your Kubernetes cluster.

Usually when you create a secret in Kubernetes, you will do the following:

kubectl create secret generic <secret-name> --from-file=<file-name>

The key of your secret will be the file name and everything will be base64 encoded. This becomes a problem when you want to take a JSON file and have the keys for your secret, be the keys not base64 encoded but the contents base64 encoded.

How to install

go get -u github.com/troy0820/secretkube

Dependencies vendored with dep go 1.11 modules

You can’t perform that action at this time.