Browse Source

fix helm chart

master
Vladimir Smagin 7 months ago
parent
commit
6ae4ee7504
7 changed files with 25 additions and 24 deletions
  1. +1
    -1
      VERSION
  2. +1
    -1
      deploy/django-operator/Chart.yaml
  3. +1
    -1
      deploy/django-operator/templates/deployment.yaml
  4. +14
    -0
      deploy/django-operator/templates/rbac_crb.yaml
  5. +3
    -3
      deploy/django-operator/templates/rbac_role.yaml
  6. +0
    -13
      deploy/django-operator/templates/role_binding.yaml
  7. +5
    -5
      deploy/django-operator/values.yaml

+ 1
- 1
VERSION View File

@@ -1 +1 @@
0.0.1.1
0.0.2

+ 1
- 1
deploy/django-operator/Chart.yaml View File

@@ -18,4 +18,4 @@ version: 0.1.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: 1.16.0
appVersion: 0.0.1.1

+ 1
- 1
deploy/django-operator/templates/deployment.yaml View File

@@ -28,7 +28,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- django-operator
- /usr/local/bin/operator
env:
- name: WATCH_NAMESPACE
value: {{ .Values.watchNamespace }}


+ 14
- 0
deploy/django-operator/templates/rbac_crb.yaml View File

@@ -0,0 +1,14 @@
{{- if .Values.createRBAC -}}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "django-operator.serviceAccountName" . }}
subjects:
- kind: ServiceAccount
name: {{ include "django-operator.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
roleRef:
kind: ClusterRole
name: {{ include "django-operator.serviceAccountName" . }}
apiGroup: rbac.authorization.k8s.io
{{- end -}}

deploy/django-operator/templates/role.yaml → deploy/django-operator/templates/rbac_role.yaml View File

@@ -1,9 +1,9 @@
{{- if .Values.rbac.clusterScoped -}}
{{- if .Values.createRBAC -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
creationTimestamp: null
name: django-operator
name: {{ include "django-operator.serviceAccountName" . }}
rules:
- apiGroups:
- ""

+ 0
- 13
deploy/django-operator/templates/role_binding.yaml View File

@@ -1,13 +0,0 @@
{{- if .Values.rbac.clusterScoped -}}
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: django-operator
subjects:
- kind: ServiceAccount
name: {{ include "django-operator.serviceAccountName" . }}
roleRef:
kind: Role
name: django-operator
apiGroup: rbac.authorization.k8s.io
{{- end -}}

+ 5
- 5
deploy/django-operator/values.yaml View File

@@ -1,19 +1,19 @@
replicaCount: 1

image:
repository: iam21h/django-operator:0.0.2
repository: iam21h/django-operator
pullPolicy: IfNotPresent

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
fullnameOverride: "django-operator"

# Set namespace to watch. If not set watch cluster-wide.
watchNamespace: ""

# If true add RBAC manifests. Scope depends on watchNamespace, ServiceAccount depends on serviceAccount.
rbac:
create: true
# If true add RBAC manifests.
# Scope depends on watchNamespace, ServiceAccount depends on serviceAccount.name
createRBAC: true

# Set Sentry project URL. https://sentry.io/
sentryDSN: ""


Loading…
Cancel
Save