--- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null name: speedscale-operator {{- if .Values.globalAnnotations }} annotations: {{ toYaml .Values.globalAnnotations | nindent 4 }} {{- end }} rules: - apiGroups: - apps resources: - deployments - statefulsets - daemonsets verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - apps resources: - replicasets verbs: - delete - deletecollection - get - list - patch - update - watch - apiGroups: - batch resources: - jobs verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - apiextensions.k8s.io resources: - customresourcedefinitions verbs: - get - list - apiGroups: - admissionregistration.k8s.io resources: - mutatingwebhookconfigurations - validatingwebhookconfigurations verbs: - get - list - apiGroups: - rbac.authorization.k8s.io resources: - clusterrolebindings - clusterroles verbs: - get - list - apiGroups: - "" resources: - namespaces verbs: - get - list - watch - apiGroups: - "" resources: - configmaps - secrets - pods - services - serviceaccounts verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - "" resources: - pods/log verbs: - get - list - apiGroups: - "" resources: - events verbs: - get - list - watch - apiGroups: - "" resources: - nodes verbs: - get - list - watch - apiGroups: - metrics.k8s.io resources: - pods verbs: - get - list - watch - apiGroups: - policy resources: - podsecuritypolicies verbs: - create - delete - deletecollection - use - apiGroups: - rbac.authorization.k8s.io resources: - rolebindings - roles verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - networking.istio.io resources: - envoyfilters - sidecars verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - coordination.k8s.io resources: - leases verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - speedscale.com resources: - trafficreplays verbs: - create - delete - deletecollection - get - list - patch - update - watch - apiGroups: - speedscale.com resources: - trafficreplays/status verbs: - get - update - patch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: speedscale-operator {{- if .Values.globalAnnotations }} annotations: {{ toYaml .Values.globalAnnotations | nindent 4 }} {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: speedscale-operator subjects: - kind: ServiceAccount name: speedscale-operator namespace: {{ .Release.Namespace }} --- apiVersion: v1 automountServiceAccountToken: true kind: ServiceAccount metadata: creationTimestamp: null labels: app: speedscale-operator controlplane.speedscale.com/component: operator name: speedscale-operator namespace: {{ .Release.Namespace }} {{- if .Values.globalAnnotations }} annotations: {{ toYaml .Values.globalAnnotations | nindent 4 }} {{- end }}