Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator kube-green (0.6.0) #5288

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading