-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
166 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# apiVersion will be set to v2 as soon as Github Workflows supports Helmv2 Charts | ||
# https://github.com/mittwald/helm-charts/blob/master/README.md#limitations | ||
apiVersion: v1 | ||
appVersion: "1.0.0-alpha1" | ||
description: Controller for replicating secrets+configmaps across namespaces | ||
name: kubernetes-replicator | ||
version: 0.1.0 | ||
url: https://github.com/mittwald/kubernetes-replicator | ||
description: Controller for replicating secrets+configmaps across namespaces | ||
|
||
# type will be set to soon as Github Workflows supports Helmv2 Charts | ||
# https://github.com/mittwald/helm-charts/blob/master/README.md#limitations | ||
#type: application | ||
|
||
version: 0.2.0 | ||
|
||
appVersion: v2.2.2 |
Empty file.
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
51 changes: 24 additions & 27 deletions
51
deploy/helm-chart/kubernetes-replicator/templates/rbac.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,44 +1,41 @@ | ||
{{- if .Values.serviceAccount.create -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "kubernetes-replicator.serviceAccountName" . }} | ||
labels: | ||
{{- include "kubernetes-replicator.labels" . | nindent 4 }} | ||
{{- with .Values.serviceAccount.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ include "kubernetes-replicator.fullname" . }} | ||
labels: | ||
app.kubernetes.io/name: {{ include "kubernetes-replicator.name" . }} | ||
helm.sh/chart: {{ include "kubernetes-replicator.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- include "kubernetes-replicator.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: [""] # "" indicates the core API group | ||
resources: ["secrets", "configmaps"] | ||
verbs: ["get", "watch", "list", "update", "patch"] | ||
- apiGroups: ["rbac.authorization.k8s.io"] | ||
resources: ["roles", "rolebindings"] | ||
verbs: ["get", "watch", "list", "update", "patch"] | ||
- apiGroups: [""] # "" indicates the core API group | ||
resources: ["secrets", "configmaps"] | ||
verbs: ["get", "watch", "list", "update", "patch"] | ||
- apiGroups: ["rbac.authorization.k8s.io"] | ||
resources: ["roles", "rolebindings"] | ||
verbs: ["get", "watch", "list", "update", "patch"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ include "kubernetes-replicator.fullname" . }} | ||
labels: | ||
app.kubernetes.io/name: {{ include "kubernetes-replicator.name" . }} | ||
helm.sh/chart: {{ include "kubernetes-replicator.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- include "kubernetes-replicator.labels" . | nindent 4 }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ include "kubernetes-replicator.fullname" . }} | ||
apiGroup: rbac.authorization.k8s.io | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "kubernetes-replicator.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ include "kubernetes-replicator.fullname" . }} | ||
labels: | ||
app.kubernetes.io/name: {{ include "kubernetes-replicator.name" . }} | ||
helm.sh/chart: {{ include "kubernetes-replicator.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- 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