Skip to content

Commit

Permalink
Refactor impersonation
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Dec 18, 2020
1 parent 5b81fb9 commit 647561c
Show file tree
Hide file tree
Showing 5 changed files with 257 additions and 217 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/kustomization_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (in *Kustomization) GetStatusConditions() *[]metav1.Condition {
const (
// GitRepositoryIndexKey is the key used for indexing kustomizations
// based on their Git sources.
GitRepositoryIndexKey string = ".metadata.git"
GitRepositoryIndexKey string = ".metadata.gitRepository"
// BucketIndexKey is the key used for indexing kustomizations
// based on their S3 sources.
BucketIndexKey string = ".metadata.bucket"
Expand Down
2 changes: 1 addition & 1 deletion config/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
args:
- --watch-all-namespaces
- --log-level=info
- --log-json
- --log-encoding=json
- --enable-leader-election
readinessProbe:
httpGet:
Expand Down
32 changes: 12 additions & 20 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@ kind: Role
metadata:
name: leader-election-role
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases/status
verbs:
- get
- update
- patch
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
Loading

0 comments on commit 647561c

Please sign in to comment.