-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[create-pull-request] automated change
- Loading branch information
1 parent
a0b04b8
commit cb4ed96
Showing
10 changed files
with
187 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: ack-namespaces-cache-pipes-controller | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: ack-namespaces-cache-pipes-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: ack-pipes-controller | ||
namespace: {{ .Release.Namespace }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: ack-configmaps-cache-pipes-controller | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: Role | ||
apiGroup: rbac.authorization.k8s.io | ||
name: ack-configmaps-cache-pipes-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: ack-pipes-controller | ||
namespace: {{ .Release.Namespace }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: ack-namespaces-cache-pipes-controller | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: ack-configmaps-cache-pipes-controller | ||
namespace: {{ .Release.Namespace }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
{{ if eq .Values.installScope "cluster" }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "app.fullname" . }} | ||
roleRef: | ||
kind: ClusterRole | ||
{{ else }} | ||
apiGroup: rbac.authorization.k8s.io | ||
name: ack-pipes-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "service-account.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{ else if .Values.watchNamespace }} | ||
{{ $namespaces := split "," .Values.watchNamespace }} | ||
{{ $fullname := include "app.fullname" . }} | ||
{{ $releaseNamespace := .Release.Namespace }} | ||
{{ $serviceAccountName := include "service-account.name" . }} | ||
{{ range $namespaces }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ include "app.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ $fullname }} | ||
namespace: {{ . }} | ||
roleRef: | ||
kind: Role | ||
{{ end }} | ||
apiGroup: rbac.authorization.k8s.io | ||
name: ack-pipes-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "service-account.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ $serviceAccountName }} | ||
namespace: {{ $releaseNamespace }} | ||
{{ end }} | ||
{{ end }} |
108 changes: 14 additions & 94 deletions
108
addons/pipes-chart/templates/cluster-role-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,28 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
{{ $labels := .Values.role.labels }} | ||
{{ $rules := include "controller-role-rules" . }} | ||
{{ if eq .Values.installScope "cluster" }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
name: ack-pipes-controller | ||
labels: | ||
{{- range $key, $value := .Values.role.labels }} | ||
{{- range $key, $value := $labels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{ else }} | ||
{{- $rules }} | ||
{{ else if .Values.watchNamespace }} | ||
{{ $namespaces := split "," .Values.watchNamespace }} | ||
{{ range $namespaces }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
creationTimestamp: null | ||
name: ack-pipes-controller | ||
namespace: {{ . }} | ||
labels: | ||
{{- range $key, $value := .Values.role.labels }} | ||
{{- range $key, $value := $labels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- $rules }} | ||
{{ end }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- pipes.services.k8s.aws | ||
resources: | ||
- pipes | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- pipes.services.k8s.aws | ||
resources: | ||
- pipes/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- services.k8s.aws | ||
resources: | ||
- adoptedresources | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- services.k8s.aws | ||
resources: | ||
- adoptedresources/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- services.k8s.aws | ||
resources: | ||
- fieldexports | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- services.k8s.aws | ||
resources: | ||
- fieldexports/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ rules: | |
- pipes.services.k8s.aws | ||
resources: | ||
- pipes | ||
|
||
verbs: | ||
- create | ||
- delete | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters