-
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
1 parent
68b787a
commit ffdda47
Showing
7 changed files
with
131 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
# 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 | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
#type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
version: 0.2.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. | ||
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