Skip to content

Commit

Permalink
operator kube-green (0.6.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi authored Nov 11, 2024
1 parent 2e28795 commit d6a4533
Show file tree
Hide file tree
Showing 11 changed files with 801 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app: kube-green
kube-green.dev/aggregate-to-manager: "true"
name: kube-green-aggregate-manager-role
rules:
- apiGroups:
- apps
resources:
- deployments
- statefulsets
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
- cronjobs
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- kube-green.com
resources:
- sleepinfos
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- kube-green.com
resources:
- sleepinfos/finalizers
verbs:
- update
- apiGroups:
- kube-green.com
resources:
- sleepinfos/status
verbs:
- get
- patch
- update
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: kube-green
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: kube-green
app.kubernetes.io/instance: controller-manager-metrics-service
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: service
app.kubernetes.io/part-of: kube-green
control-plane: controller-manager
name: kube-green-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
app: kube-green
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 2bd226ed.kube-green.com
kind: ConfigMap
metadata:
labels:
app: kube-green
name: kube-green-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kube-green-manager-role
aggregationRule:
clusterRoleSelectors:
- matchLabels:
kube-green.dev/aggregate-to-manager: "true"
rules: [] # The control plane automatically fills in the rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: clusterrolebinding
app.kubernetes.io/instance: manager-rolebinding
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kube-green
app.kubernetes.io/part-of: kube-green
app.kubernetes.io/managed-by: kustomize
name: kube-green-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kube-green-manager-role
subjects:
- kind: ServiceAccount
name: kube-green-controller-manager
namespace: operators
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app: kube-green
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: kube-green
app.kubernetes.io/instance: metrics-reader
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: kube-green
name: kube-green-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: kube-green
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: kube-green
name: kube-green-webhook-service
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
app: kube-green
control-plane: controller-manager
status:
loadBalancer: {}
Loading

0 comments on commit d6a4533

Please sign in to comment.