https://github.com/troy0820/secretkube
🔧Create secrets from key/value pairs in JSON files
https://github.com/troy0820/secretkube
base64 go golang json k8s kubernetes kubernetes-secrets secrets
Last synced: about 1 year ago
JSON representation
🔧Create secrets from key/value pairs in JSON files
- Host: GitHub
- URL: https://github.com/troy0820/secretkube
- Owner: troy0820
- License: mit
- Created: 2018-09-11T20:15:07.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T01:22:37.000Z (over 1 year ago)
- Last Synced: 2025-04-11T19:22:35.097Z (about 1 year ago)
- Topics: base64, go, golang, json, k8s, kubernetes, kubernetes-secrets, secrets
- Language: Go
- Homepage:
- Size: 23.1 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Secret Kube

[](https://goreportcard.com/report/github.com/troy0820/secretkube)


## 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 --from-file=`
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/cmd/secretkube`
### Dependencies vendored with ~~dep~~ `go 1.11 modules`