Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjuarez/iks-ctx-cleaner
IBMCloud IKS kubeconfig context cleaner
https://github.com/jjuarez/iks-ctx-cleaner
Last synced: 8 days ago
JSON representation
IBMCloud IKS kubeconfig context cleaner
- Host: GitHub
- URL: https://github.com/jjuarez/iks-ctx-cleaner
- Owner: jjuarez
- License: mit
- Created: 2021-05-29T20:48:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T09:58:40.000Z (4 months ago)
- Last Synced: 2024-07-25T10:43:55.119Z (4 months ago)
- Language: Go
- Size: 183 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
IKS Context Cleaner
A little utility to make your IKS work a bit better
Report Bug
·
Request Feature
Table of Contents
## About The Project
This project could help you to cleanup the default IKS/OpenShift kubernets kube config files to use them in combination with othe toolchain,
like kubectx, kubie, etcBy default the IBMCloud CLI tool (kubernetes service plugin) gathers the configuration (kubeconfig) to access to your cluster using
the human readable cluster's name + the cluster ID, which is completely useless for humans and makes very hard to work with other
tools, so this small utility clean all this stuff and will allow you to use directly the name of the cluster, for example using
kubie:```bash
kubie ctx the_human_readable_name_of_my_k8s_cluster -n kube-system
```in just one shot
### Built With
* [golang](https://golang.org)
## Getting Started
To get a local copy up and running follow these simple example steps.
```bash
make build && cat tests/data/kubeconfig_sample.yaml | ./bin/ikscc
```### Prerequisites
You don't need extra requisite to use this program, just get the release for your OS and execute it
### Installation
Just download a copy of the releases for your OS
## Usage
```bash
ibmcloud ks cluster config --cluster my_iks_cluster -q --output yaml | ikscc > ${HOME}/.kube/config
```## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
Distributed under the MIT License. See `LICENSE` for more information.
## Contact
Javier Juarez - [@thejtoken](https://hachyderm.io/@thejtoken) - [email protected]
Project Link: [https://github.com/jjuarez/iks-ctx-cleaner](https://github.com/jjuarez/iks-ctx-cleaner)
[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=for-the-badge
[contributors-url]: https://github.com/jjuarez/iks-ctx-cleaner/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=for-the-badge
[forks-url]: https://github.com/jjuarez/iks-ctx-cleaner/network/members
[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=for-the-badge
[stars-url]: https://github.com/jjuarez/iks-ctx-cleaner/stargazers
[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=for-the-badge
[issues-url]: https://github.com/jjuarez/iks-ctx-cleaner/issues
[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge
[license-url]: https://github.com/jjuarez/iks-ctx-cleaner/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/javierjuarez
[mastodon-url]: https://hachyderm.io/@thejtoken
[product-screenshot]: images/screenshot.png