diff --git a/samples/features/high availability/Kubernetes/sample-manifest-files/operator.yaml b/samples/features/high availability/Kubernetes/sample-manifest-files/operator.yaml index e7268fbf6f..679344c468 100644 --- a/samples/features/high availability/Kubernetes/sample-manifest-files/operator.yaml +++ b/samples/features/high availability/Kubernetes/sample-manifest-files/operator.yaml @@ -37,7 +37,7 @@ rules: verbs: [delete, get, update] - apiGroups: [mssql.microsoft.com] resources: [sqlservers] - verbs: [get, list, watch] + verbs: [get, list, watch,update] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -63,6 +63,9 @@ spec: - name: MSSQL_K8S_NAMESPACE valueFrom: fieldRef: {fieldPath: metadata.namespace} + - name: MSSQL_POD_NAME + valueFrom: + fieldRef: {fieldPath: metadata.name} image: mcr.microsoft.com/mssql/ha:2019-CTP2.1-ubuntu name: mssql-operator serviceAccount: mssql-operator