Kur-Public / gitstar-operator

:chestnut: simple operator demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitStar Operator

This's a simple dome of Kubernete Operator, you can submit some repo name to this operator , the Operator will be check the star number of this repo name .

asciicast

Deploy

deploy crd && role && operator

$ git clone git@github.com:Kurisu-public/gitstar-operator.git
# deploy crd
$ kubectl apply -f deploy/crds/
# deploy role && role binding
$ kubectl apply -f deploy/role.yaml 
$ kubectl apply -f deploy/role_binding.yaml
# deploy SA
$ kubectl apply -f deploy/service_account.yaml
# deploy operator
$ kubectl apply -f deploy/operator.yaml

(Optional) Configure OAuth Token Of GitHub

$ vim deploy/github_token.yaml 
# apiVersion: v1
# kind: ConfigMap
# metadata:
#   name: gitstar-github-token
# data:
#   token: |
#     <input your 'GitHub Personal access tokens' in here>      <----- modify here
#
$ kubectl apply -f deploy/github_token.yaml 

Use

$ kubectl apply -f deploy/examples
$ watch kubectl get gitstars -A
# enjoy :)

LICENSE

Apache-2.0

About

:chestnut: simple operator demo

License:Apache License 2.0


Languages

Language:Go 92.1%Language:Dockerfile 3.8%Language:Shell 3.6%Language:Makefile 0.4%