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

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

Awesome Lists containing this project

README

          

# Secret Kube
![](https://img.shields.io/github/issues/troy0820/secretkube.svg?style=flat-square)
[![Go Report Card](https://goreportcard.com/badge/github.com/troy0820/secretkube?style=flat-square)](https://goreportcard.com/report/github.com/troy0820/secretkube)
![](https://github.com/troy0820/secretkube/workflows/Go%20build%20and%20Output/badge.svg)
![](https://github.com/troy0820/secretkube/workflows/Go%20test/badge.svg)

## 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`