Skip to content

Commit

Permalink
specify namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Nov 6, 2019
1 parent a66965a commit 8cfe9c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ spec:
containers:
- name: advanced-statefulset-controller
image: quay.io/cofyc/advanced-statefulset:latest
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
args:
- -v=4
- --v=4
- --leader-elect
- --leader-elect-resource-name=advanced-statefulset-controller
- --leader-elect-resource-namespace=$(POD_NAMESPACE)
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
serviceAccountName: advanced-statefulset-controller
4 changes: 2 additions & 2 deletions charts/tidb-operator/templates/advanced-statefulset-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: advanced-statefulset-controller
namespace: kube-system
namespace: pingcap
rules:
- apiGroups:
- ''
Expand All @@ -60,7 +60,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: advanced-statefulset-controller
namespace: kube-system
namespace: pingcap
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down

0 comments on commit 8cfe9c5

Please sign in to comment.