Skip to content

Commit

Permalink
Update helm chart for OES app v3.9.5 release (#218)
Browse files Browse the repository at this point in the history
* 3.9.4 fixes, create-job yaml was missing, added

* Updated to handle custom-cacerts and remove JAVA_OPTSs for halyard init containers

* Support for extraEnvVars

* Fixed oes-ui tag

* Added Dinghy and script for side-car

* Removed dinghy

* Address comments

* Added the branch oes3.9 to github action

* Updated App Release

Co-authored-by: ksrinimba <[email protected]>
Co-authored-by: abhinaybyrisetty <[email protected]>
Co-authored-by: lakkireddys-opsmx <[email protected]>
  • Loading branch information
4 people authored Dec 3, 2021
1 parent 21c8dc8 commit 4901d25
Show file tree
Hide file tree
Showing 15 changed files with 107 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- oes3.9
paths:
- 'charts/oes/Chart.yaml'
- 'charts/oes/Chart.lock'
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.7
appVersion: 3.9.1.2
version: 3.9.8
appVersion: 3.9.5
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{{- if .Values.autoInstallSampleApps }}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Release.Name }}-create-sample-app
spec:
template:
spec:
serviceAccountName: {{ .Release.Name }}-spinnaker-halyard
securityContext:
fsGroup: 1000
runAsUser: 1000
restartPolicy: OnFailure
volumes:
- secret:
secretName: {{ .Release.Name }}-spinnaker-spin-config
name: spin-config
- configMap:
defaultMode: 420
name: {{ .Release.Name }}-spinnaker-spin-pipeline-import
name: spin-pipeline-import
- name: spin-pipeline-config
emptyDir: {}
containers:
- command:
- bash
- /tmp/config/spin-pipeline-import.sh
name: sample-pipeline-install
image: {{ .Values.global.customImages.registry }}/spin-sample-pipeline:1.0
volumeMounts:
- name: spin-pipeline-config
mountPath: /tmp/config/git
- mountPath: /tmp/config
name: spin-pipeline-import
- mountPath: /tmp/config/spin
name: spin-config
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ spec:
subPath: cacerts
name: cacerts
{{- end }}
{{- if .Values.halyard.env }}
env:
{{ toYaml .Values.halyard.env | indent 8 }}
{{- end }}
{{- if and (.Values.gitopsHalyard.enabled) (eq .Values.gitopsHalyard.repo.type "git") }}
- name: "halyardconfig-update"
command:
Expand Down Expand Up @@ -189,10 +185,6 @@ spec:
{{- end }}
- mountPath: /tmp/autoconfig
name: halyard-overrideurl
{{- if .Values.halyard.env }}
env:
{{ toYaml .Values.halyard.env | indent 8 }}
{{- end }}
{{- end }}
volumes:
{{- if or .Values.gitopsHalyard.enabled (not .Values.halyard.persistence.enabled) }}
Expand Down
6 changes: 6 additions & 0 deletions charts/oes/config/oes-gate/gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ services:
enabled: true
{{- end }}
user: {}
retrofit:
connectTimeout: 30000
readTimeout: 30000
callTimeout: 30000
writeTimeout: 30000
retryOnConnectionFailure: true
cors:
{{- if .Values.global.commonGate.enabled }}
allowed-origins-pattern: ^https?://(?:localhost|{{ .Values.global.oesUI.host }}|{{ .Values.global.spinDeck.host }}|opsmx.com)(?::[1-9]\d*)?/?
Expand Down
15 changes: 15 additions & 0 deletions charts/oes/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,18 @@ Return the proper Autopilot image name
{{- $tag := .Values.autopilot.image.tag | toString -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}


{{/* vim: set filetype=mustache: */}}
{{/*
Renders a value that contains template.
Usage:
{{ include "tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "tplvalues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
18 changes: 18 additions & 0 deletions charts/oes/templates/clouddriver-sidecar/k8config-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
data:
k8config-sync.sh: |+
#!/bin/bash
rm -rf spinnaker-poc
mkdir -p /opsmx
echo " ####### Cloning the Dynamic Account Repo #################"
git clone -c http.sslVerify=false https://skambhampati:[email protected]/SpinCloud-GCP/spinnaker-poc.git
cd spinnaker-poc/
cat clouddriver-local.yml |grep -i opsmx|cut -f3 -d"/" > /opsmx/config_files.txt
for config in $(cat /opsmx/config_files.txt)
do
kubectl get secrets $config -o=jsonpath='{.data.*}'|base64 -d > /opsmx/$config
done
kind: ConfigMap
metadata:
name: k8config-sync
3 changes: 3 additions & 0 deletions charts/oes/templates/deployments/oes-gate-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ spec:
env:
- name: spring_profiles_active
value: vault,local
{{- if .Values.extraEnvVars }}
{{- include "tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 8 }}
{{- end }}
ports:
- containerPort: 8084
protocol: TCP
Expand Down
3 changes: 3 additions & 0 deletions charts/oes/templates/deployments/oes-platform-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
- containerPort: 8095
protocol: TCP
env:
{{- if .Values.extraEnvVars }}
{{- include "tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 8 }}
{{- end }}
resources:
{{ toYaml .Values.platform.resources | indent 12 }}
readinessProbe:
Expand Down
4 changes: 4 additions & 0 deletions charts/oes/templates/deployments/oes-sapor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
containers:
- image: {{ template "sapor.image" . }}
name: oes-sapor
env:
{{- if .Values.extraEnvVars }}
{{- include "tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 8 }}
{{- end }}
ports:
- containerPort: 8085
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
- containerPort: 8096
protocol: TCP
env:
{{- if .Values.extraEnvVars }}
{{- include "tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 8 }}
{{- end }}
volumeMounts:
- mountPath: /opsmx/conf/visibility-local.yml
name: visibility-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ apiVersion: batch/v1
kind: Job
metadata:
name: create-controller-secret

spec:
template:
spec:
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
Expand Up @@ -23,7 +23,7 @@ spec:
service:
name: oes-ui
port:
number: 80
number: 8080
path: /
pathType: ImplementationSpecific
{{- if .Values.global.ssl.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion charts/oes/templates/services/oes-ui-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
type: {{ .Values.k8sServiceType }}
ports:
- name: "oes-ui-service"
port: 80
port: 8080
targetPort: 8080
- name: "https"
port: 443
Expand Down
22 changes: 13 additions & 9 deletions charts/oes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ imagePullSecret: opsmxdev-secret
##
imageCredentials:
registry: https://quay.io/
username: quayID # Quay username
password: quayPassword # Quay password
username: opsmxguest # Quay username
password: OpsMx@321 # Quay password
email: [email protected] # email corresponding to quay registry ID

rbac:
Expand All @@ -41,6 +41,10 @@ vault:
address: https://server.vaultint.opsmx.net # Vault Address URL
token: 123132 # Vault Root token

#extraEnvVars:
# - name: JAVA_OPTS
# value: -Dhttps.proxyHost=proxy.server.local -Dhttps.proxyPort=3128

## OES UI, OES Gate, Spinnaker Deck and Spinnaker Gate service type
##
k8sServiceType: ClusterIP
Expand Down Expand Up @@ -293,7 +297,7 @@ autopilot:
image:
registry: quay.io/opsmxpublic
repository: ubi8-oes-autopilot
tag: v3.9.1.2
tag: v3.9.5
pullPolicy: IfNotPresent

annotations:
Expand Down Expand Up @@ -342,7 +346,7 @@ dashboard:
image:
registry: quay.io/opsmxpublic
repository: ubi8-oes-dashboard
tag: v3.9.1.2
tag: v3.9.5
pullPolicy: IfNotPresent

annotations:
Expand Down Expand Up @@ -396,7 +400,7 @@ gate:
image:
registry: quay.io/opsmxpublic
repository: ubi8-gate
tag: v3.9.1.2
tag: v3.9.5
pullPolicy: IfNotPresent

serviceAnnotations: {}
Expand Down Expand Up @@ -485,7 +489,7 @@ platform:
image:
registry: quay.io/opsmxpublic
repository: ubi8-oes-platform
tag: v3.9.1.3
tag: v3.9.5
pullPolicy: IfNotPresent

annotations:
Expand Down Expand Up @@ -543,7 +547,7 @@ sapor:
image:
registry: quay.io/opsmxpublic
repository: ubi8-oes-sapor
tag: v3.9.1.2
tag: v3.9.5
pullPolicy: IfNotPresent

annotations:
Expand Down Expand Up @@ -627,7 +631,7 @@ ui:
image:
registry: quay.io/opsmxpublic
repository: ubi8-oes-ui
tag: v3.9.1.2
tag: v3.9.5.0
pullPolicy: IfNotPresent
serviceAnnotations: {}

Expand All @@ -646,7 +650,7 @@ visibility:
image:
registry: quay.io/opsmxpublic
repository: ubi8-oes-visibility
tag: v3.9.1.2
tag: v3.9.5
pullPolicy: IfNotPresent

annotations:
Expand Down

0 comments on commit 4901d25

Please sign in to comment.