Skip to content

Commit

Permalink
Add labels to license related rolebindings & secrets (#391)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Nov 16, 2021
1 parent 9e18ab7 commit 3fa119a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "kubedb-autoscaler.fullname" . }}-license-checker
labels:
{{- include "kubedb-autoscaler.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "kubedb-autoscaler.fullname" . }}-license-reader
labels:
{{- include "kubedb-autoscaler.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedb-autoscaler/templates/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: {{ include "kubedb-autoscaler.fullname" . }}-license
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedb-autoscaler.labels" . | nindent 4 }}
{{- include "kubedb-autoscaler.labels" . | nindent 4 }}
type: Opaque
data:
key.txt: {{ include "appscode.license" . | b64enc }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "kubedb-community.fullname" . }}-license-checker
labels:
{{- include "kubedb-community.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "kubedb-community.fullname" . }}-license-reader
labels:
{{- include "kubedb-community.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedb-community/templates/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: {{ include "kubedb-community.fullname" . }}-license
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedb-community.labels" . | nindent 4 }}
{{- include "kubedb-community.labels" . | nindent 4 }}
type: Opaque
data:
key.txt: {{ include "appscode.license" . | b64enc }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "kubedb-enterprise.fullname" . }}-license-checker
labels:
{{- include "kubedb-enterprise.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "kubedb-enterprise.fullname" . }}-license-reader
labels:
{{- include "kubedb-enterprise.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedb-enterprise/templates/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: {{ include "kubedb-enterprise.fullname" . }}-license
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedb-enterprise.labels" . | nindent 4 }}
{{- include "kubedb-enterprise.labels" . | nindent 4 }}
type: Opaque
data:
key.txt: {{ include "appscode.license" . | b64enc }}
Expand Down

0 comments on commit 3fa119a

Please sign in to comment.