Skip to content

Commit

Permalink
Merge branch 'OpsMx:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshaswiniOpsmx authored Aug 24, 2021
2 parents 429bd88 + 9ba73a8 commit 26513d4
Show file tree
Hide file tree
Showing 44 changed files with 122 additions and 75 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Parameter | Description | Default
`imageCredentials.email` | Email associated with docker account | `[email protected]`
`rbac.create` | Enable or disable rbac | `true`
`installSpinnaker` | If true, install Spinnaker along with OES Extensions | `true`
`installationMode` | The installation mode. Available installation modes are **OES-AP** (both OES 3.0 and Autopilot), **OES** (Only OES 3.0), **AP** (Only Autopilot) and **None**(Skip OES installation) | `OES-AP`
`installationMode` | The installation mode. Available installation modes are **OES-AP** (for OES that includes Autopilot) and **None**(Skip OES installation) | `OES-AP`
`global.certManager.installed` | Disable this flag if cert-manager is not installed, when set to true issuer and TLS certs for ingress are automatically created | `true`
`global.createIngress` | If true, exposes OES ui & gate services over Ingress | `false`
`global.spinDeck.protocol` | Change this to https if TLS is enabled for ingress endpoint | `http`
Expand Down
4 changes: 2 additions & 2 deletions charts/oes/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: oes
version: 3.9.1
appVersion: 3.9.0
version: 3.9.2
appVersion: 3.9.1.2
description: OES is a non-forked version of OSS spinnaker
icon: https://raw.githubusercontent.com/OpsMx/enterprise-spinnaker/master/img/opsmx.png
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Parameter | Description | Default
`imageCredentials.email` | Email associated with docker account | `[email protected]`
`rbac.create` | Enable or disable rbac | `true`
`installSpinnaker` | If true, install Spinnaker along with OES Extensions | `true`
`installationMode` | The installation mode. Available installation modes are **OES-AP** (both OES 3.0 and Autopilot), **OES** (Only OES 3.0), **AP** (Only Autopilot) and **None**(Skip OES installation) | `OES-AP`
`installationMode` | The installation mode. Available installation modes are **OES-AP** (for OES that includes Autopilot) and **None**(Skip OES installation) | `OES-AP`
`global.certManager.installed` | Disable this flag if cert-manager is not installed, when set to true issuer and TLS certs for ingress are automatically created | `true`
`global.createIngress` | If true, exposes OES ui & gate services over Ingress | `false`
`global.spinDeck.protocol` | Change this to https if TLS is enabled for ingress endpoint | `http`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
data:
autopilot.properties: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
data:
dashboard-local.yml: |
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/templates/configmaps/oes-gate-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
data:
gate.yml: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
data:
platform-local.yml: |
Expand Down
4 changes: 1 addition & 3 deletions charts/oes/templates/configmaps/oes-sapor-cacerts.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion charts/oes/templates/configmaps/oes-sapor-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
data:
application.yml: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.sapor.config.spinnaker.x509.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.sapor.config.spinnaker.x509.enabled) -}}
apiVersion: v1
binaryData:
client.p12: MIIQSQIBAzCCEA8GCSqGSIb3DQEHAaCCEAAEgg/8MIIP+DCCBi8GCSqGSIb3DQEHBqCCBiAwggYcAgEAMIIGFQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIHKCfDNGt3K0CAggAgIIF6MIYtWMSdpD0e0OwjwFOkNEjK5keDF5Arq4rtf+rB1Z5WKsRI8NpQfgfRsL9YWtxugcH1UA7tIIqHYndEkifFEjdDj8tBTdlWCbQFyb9XVSmBhvUwnMgzfwGkeSZaa0IhQqYW47Oq5b3BwGJDVu3pyyxK3FWZrlW3diXt+eA8LoVLciTXqPFav/H/JYUNIbMYasI9CZW1yVQbpnv0R5tEKcw3eJm8sevekNXLmQZp6fROIv7SIpJNWcLQLIQCk/dZeeD4Sez5H93OK537jgfKKVL2WF8BaKyCPpivHuatMMr2NaR+FYvzQcsbLtQJr+ZthY0BwcvVP7Cmsh/7Z+4NazVZtVPueo80dTPXBwQVmqKYOCQ3hOYwnwvG+Ihe+uy9UXOkgyrTbr0pyRqaKQPKkdWLcGhxYlmW8N2iRGmmjfdhRWX+d+LJlDgF7MLvQSIqFZeCsZQ5VW4B4KSK2uLIjX1aT8rrZpIZ/OJ25vDItmpjOvrVjPe240Cjn35WV8vBmCtVcXdxwp6FaYYZXS17hjals0fHsoJvFtG1MNA7+xKHWpIjaWjpvv5UcRovWGfp6SzJFeMExIOFCBnqn/zbFan1DtGRYAwwDM98KxFZq4iHRG9NYmsaZ0+brf3WOD3rEUUWWGUsvCgZtmYk1/Jyt+cMGSbeQSR1c/EUqTDk6ZmsXdS0kL+ioDRhV5nE3hS6QI4Pf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iAJlLj6NbBRTVRi4zSTa5zKTtGGh73vu0GuJR9Qk5cge1rGsY+XRwrVMpvcGhCCQVE8suG8TGot4bxLWzM86xBeZ6W3zruhvBUgvdVG0K+x779I/MC/cN33AgBG0Hgq4luzyGeZ9HJ+hRGUJoWGWIfELJ+9Lrz0vGytaXcY8esvnh/y3QAdOT2bxY/O+mA/EU/BZbAqO/fHNFroT1ryRbIsPXorOXsjsQExhMO+s+DdknyK8lyiftqiGWTrYgbj/p13RUHeer4U5Zxs9Yuu6RrKFMSUwIwYJKoZIhvcNAQkVMRYEFF+eSY+h0fnustpxxyKIoX3J3drEMDEwITAJBgUrDgMCGgUABBSfsouO9yJZvJnNrBhmoFmknPqZVgQIHWGOD1Z1pNsCAggA
Expand All @@ -10,5 +9,4 @@ metadata:
app: oes
component: sapor
{{ include "oes.standard-labels" . | indent 4 }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/oes/templates/configmaps/oes-ui-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") }}
{{ if (eq .Values.installationMode "OES-AP") }}
apiVersion: v1
data:
{{ (tpl (.Files.Glob "config/oes-ui/app-config.json").AsConfig . ) | indent 2 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
data:
visibility-local.yml: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -39,6 +39,10 @@ spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
{{- if (eq .Values.db.enabled true) }}
{{- if .Values.autopilot.nodeSelector }}
nodeSelector:
{{ toYaml .Values.autopilot.nodeSelector | indent 8 }}
{{- end }}
initContainers:
- name: db-check
image: postgres:9.6.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -55,6 +55,10 @@ spec:
periodSeconds: 60
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
{{- if .Values.dashboard.nodeSelector }}
nodeSelector:
{{ toYaml .Values.dashboard.nodeSelector | indent 8 }}
{{- end }}
volumes:
- name: dashboard-config
configMap:
Expand Down
6 changes: 5 additions & 1 deletion charts/oes/templates/deployments/oes-gate-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -81,6 +81,10 @@ spec:
periodSeconds: 60
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
{{- if .Values.gate.nodeSelector }}
nodeSelector:
{{ toYaml .Values.gate.nodeSelector | indent 8 }}
{{- end }}
volumes:
{{- if .Values.gate.config.saml.enabled }}
- secret:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -62,6 +62,10 @@ spec:
subPath: bootstrap.yml
imagePullSecrets:
- name: {{ .Values.imagePullSecret }}
{{- if .Values.platform.nodeSelector }}
nodeSelector:
{{ toYaml .Values.platform.nodeSelector | indent 8 }}
{{- end }}
volumes:
- name: platform-config-volume
configMap:
Expand Down
6 changes: 5 additions & 1 deletion charts/oes/templates/deployments/oes-sapor-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -79,6 +79,10 @@ spec:
periodSeconds: 60
imagePullSecrets:
- name: {{ .Values.imagePullSecret }}
{{- if .Values.sapor.nodeSelector }}
nodeSelector:
{{ toYaml .Values.sapor.nodeSelector | indent 8 }}
{{- end }}
volumes:
{{- if .Values.forwarder.enabled }}
- secret:
Expand Down
6 changes: 5 additions & 1 deletion charts/oes/templates/deployments/oes-ui-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -61,6 +61,10 @@ spec:
periodSeconds: 5
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
{{- if .Values.ui.nodeSelector }}
nodeSelector:
{{ toYaml .Values.ui.nodeSelector | indent 8 }}
{{- end }}
volumes:
{{- if .Values.autoConfiguration.enabled }}
- configMap:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -61,6 +61,10 @@ spec:
periodSeconds: 60
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
{{- if .Values.visibility.nodeSelector }}
nodeSelector:
{{ toYaml .Values.visibility.nodeSelector | indent 8 }}
{{- end }}
volumes:
- name: visibility-config
configMap:
Expand Down
6 changes: 5 additions & 1 deletion charts/oes/templates/deployments/opa-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
{{- if .Values.opa.enabled -}}
apiVersion: apps/v1
kind: Deployment
Expand All @@ -25,5 +25,9 @@ spec:
args:
- "run"
- "--server"
{{- if .Values.opa.nodeSelector }}
nodeSelector:
{{ toYaml .Values.opa.nodeSelector | indent 8 }}
{{- end }}
{{- end -}}
{{- end -}}
4 changes: 1 addition & 3 deletions charts/oes/templates/forwarder/create-controller-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.forwarder.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.forwarder.enabled) -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -47,6 +46,5 @@ spec:
restartPolicy: Never
serviceAccount: create-controller-secret
{{- end -}}
{{- end -}}


4 changes: 1 addition & 3 deletions charts/oes/templates/forwarder/oes-forwarder-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.forwarder.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.forwarder.enabled) -}}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -18,4 +17,3 @@ data:
serviceAuth:
currentKeyName: "public.pem"
{{- end -}}
{{- end -}}
4 changes: 1 addition & 3 deletions charts/oes/templates/forwarder/oes-forwarder-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.forwarder.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.forwarder.enabled) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -73,5 +72,4 @@ spec:
- key: "configFile"
path: "config.yaml"
{{- end -}}
{{- end -}}

12 changes: 9 additions & 3 deletions charts/oes/templates/forwarder/oes-forwarder-svc-agent.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.forwarder.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.forwarder.enabled) -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -8,6 +7,10 @@ metadata:
agent.opsmx.com/name: controller1
agent.opsmx.com/role: controller
{{ include "oes.standard-labels" . | indent 4 }}
{{- if .Values.ui.ServiceAnnotations }}
annotations:
{{ toYaml .Values.forwarder.serviceAnnotations | indent 4 }}
{{- end }}
spec:
selector:
app: opsmx-controller-controller1
Expand All @@ -31,6 +34,10 @@ metadata:
agent.opsmx.com/name: controller1
agent.opsmx.com/role: controller
{{ include "oes.standard-labels" . | indent 4 }}
{{- if .Values.forwarder.serviceAnnotations }}
annotations:
{{ toYaml .Values.forwarder.serviceAnnotations | indent 4 }}
{{- end }}
spec:
selector:
app: opsmx-controller-controller1
Expand All @@ -39,4 +46,3 @@ spec:
- name: agent-grpc
port: 9001
{{- end -}}
{{- end -}}
8 changes: 5 additions & 3 deletions charts/oes/templates/forwarder/oes-forwarder-svc-ipc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.forwarder.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.forwarder.enabled) -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -8,6 +7,10 @@ metadata:
agent.opsmx.com/name: controller1
agent.opsmx.com/role: controller
{{ include "oes.standard-labels" . | indent 4 }}
{{- if .Values.forwarder.serviceAnnotations }}
annotations:
{{ toYaml .Values.forwarder.serviceAnnotations | indent 4 }}
{{- end }}
spec:
selector:
app: opsmx-controller-controller1
Expand All @@ -17,4 +20,3 @@ spec:
port: 9001
targetPort: agent-grpc
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/oes/templates/ingress/oes-gate-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.global.createIngress -}}
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/templates/ingress/oes-ui-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.global.createIngress -}}
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/templates/rbac/oes-init-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/templates/sapor-gate/sapor-gate-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
{{- if .Values.saporgate.enabled }}
apiVersion: apps/v1
kind: Deployment
Expand Down
4 changes: 1 addition & 3 deletions charts/oes/templates/sapor-gate/sapor-gate-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.saporgate.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.saporgate.enabled) -}}
apiVersion: v1
data:
gate-local.yml: {{- tpl (.Files.Get "config/sapor-gate/gate-local.yml") . |b64enc | nindent 4 }}
Expand All @@ -14,5 +13,4 @@ metadata:
component: sapor-gate
name: sapor-gate-files
type: Opaque
{{ end }}
{{- end -}}
4 changes: 1 addition & 3 deletions charts/oes/templates/sapor-gate/sapor-gate-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "OES") -}}
{{- if .Values.saporgate.enabled }}
{{- if and (eq .Values.installationMode "OES-AP") (.Values.saporgate.enabled) -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -18,5 +17,4 @@ spec:
selector:
app: oes
component: sapor-gate
{{- end -}}
{{- end -}}
4 changes: 1 addition & 3 deletions charts/oes/templates/secrets/imagepull-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.imagePullSecret "opsmxdev-secret") }}
{{- if and (eq .Values.installationMode "OES-AP") (eq .Values.imagePullSecret "opsmxdev-secret") -}}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -9,5 +8,4 @@ metadata:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}
{{- end }}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/oes/templates/services/oes-autopilot-service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/templates/services/oes-dashboard-service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
{{- if (eq .Values.installationMode "OES-AP") -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
Loading

0 comments on commit 26513d4

Please sign in to comment.