https://github.com/yankeguo-deprecated/file2configmap
A tool to convert files into Kubernetes ConfigMap resource with binaryData field.
https://github.com/yankeguo-deprecated/file2configmap
configmap golang kubernetes
Last synced: 2 months ago
JSON representation
A tool to convert files into Kubernetes ConfigMap resource with binaryData field.
- Host: GitHub
- URL: https://github.com/yankeguo-deprecated/file2configmap
- Owner: yankeguo-deprecated
- License: mit
- Created: 2021-01-25T02:51:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T03:13:43.000Z (about 5 years ago)
- Last Synced: 2025-02-14T16:59:05.773Z (over 1 year ago)
- Topics: configmap, golang, kubernetes
- Language: Go
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file2configmap
A tool to convert files into Kubernetes ConfigMap resource with `binaryData` field.
## Install
```shell
go install -u go.guoyk.net/file2configmap
```
## Usage
### Files in current directory
```shell
file2configmap -n myname -ns mynamespace file1.txt
```
### Files in subdirectories
`file2configmap` will use file base name as `ConfigMap` key.
```shell
file2configmap -n myname -ns mynamespace path/to/file2.txt
```
### Customize key name instead of using file name
```shell
file2configmap -n myname -ns mynamespace file3.json:file3.txt
```
### Multiple files
```shell
file2configmap -n myname -ns mynamespace file1.txt path/to/file2.txt files3.json:file3.txt
```
## Credits
Guo Y.K., MIT License