Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scraly/kubectl-season
Kubectl plugin that add a random seasonal emoji before your Kubernetes resources.
https://github.com/scraly/kubectl-season
krew krew-plugin kubectl kubectl-plugin kubectl-plugins
Last synced: about 2 months ago
JSON representation
Kubectl plugin that add a random seasonal emoji before your Kubernetes resources.
- Host: GitHub
- URL: https://github.com/scraly/kubectl-season
- Owner: scraly
- License: apache-2.0
- Created: 2020-12-14T17:36:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-16T11:40:03.000Z (over 2 years ago)
- Last Synced: 2024-05-01T21:50:54.970Z (8 months ago)
- Topics: krew, krew-plugin, kubectl, kubectl-plugin, kubectl-plugins
- Language: Shell
- Homepage:
- Size: 216 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `kubectl-season` - kubectl plugin seasonal mode
[![Twitter](https://img.shields.io/badge/[email protected])](http://twitter.com/scraly)
[![GitHub release](https://img.shields.io/github/release/scraly/kubectl-season.svg)](https://github.com/scraly/kubectl-season/releases)
## General
`season` is a kubectl plugin that add a random seasonal (halloween, christmas, easter...) emoji before your Kubernetes resources.
It is written in BASH.## Install
### Krew
This plugin is available through [krew](https://krew.dev).
1. [Install Krew](https://github.com/GoogleContainerTools/krew) plugin manager for kubectl.
2. Add scraly's custom index `kubectl krew index add scraly https://github.com/scraly/krew-index`
3. Install the plugin `kubectl krew install scraly/season`
4. Run `kubectl season`
5. Update plugin with `kubectl krew upgrade season`### Binary
You can find the latest binaries in the [releases](https://github.com/scraly/kubectl-season/releases) section.
To install it, place it somewhere in your `$PATH` for `kubectl` to pick it up.**Note**: If you build from source or download the binary, you'll have to change the name of the binary to `kubectl-season` (`-` to `_` in `season`)
due to the enforced naming convention for plugins by `kubectl`. More on this [here](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/#naming-a-plugin).## Usage
`kubectl season `
```
$ kubectl season deploy
NAME READY UP-TO-DATE AVAILABLE AGE
🧟 httpbin 1/1 1 1 26h
🧟 my-nginx 3/3 3 3 44h
🧟 traefik 3/3 3 3 6d
``````
$ kubectl season po, deploy
NAME READY STATUS RESTARTS AGE
🎃 pod/httpbin-c9cb9cbf6-r2gnc 1/1 Running 0 2d2h
🎃 pod/my-nginx-75897978cd-f28j9 1/1 Running 0 2d21h
🎃 pod/my-nginx-75897978cd-pt2dx 1/1 Running 0 44h
🎃 pod/my-nginx-75897978cd-w2bcg 1/1 Running 0 43h
🎃 pod/traefik-85854f965f-pb6j2 1/1 Running 1 174mNAME READY UP-TO-DATE AVAILABLE AGE
🎃 deployment.apps/httpbin 1/1 1 1 2d2h
🎃 deployment.apps/my-nginx 3/3 3 3 2d21h
🎃 deployment.apps/traefik 1/1 1 1 7d
```## Release
1. Tag with a new version
```
git tag v0.0.5
git push --tags
```2. GitHub will create assets in .zip and .tar.gz
3. Display the sha256 checksum
Download the tar.gz and then execute the following command:
```
sha256sum kubectl-season-0.0.5.tar.gz
```4. Edit `krew.yml` file with the new version and the sha256
5. Push it into https://github.com/scraly/krew-index/blob/main/plugins/season.yaml
## Changelog
See the [CHANGELOG](CHANGELOG.md) file for details.