Skip to content

Commit

Permalink
Merge pull request #295 from saitejaopsmx/oes3.12
Browse files Browse the repository at this point in the history
Added Spinnaker annotations in OES Components
  • Loading branch information
ksrinimba authored Apr 13, 2022
2 parents bf85c17 + fd8eb68 commit 88b4ad5
Show file tree
Hide file tree
Showing 22 changed files with 102 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/oes/charts/openldap/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
moniker.spinnaker.io/application: isd
name: {{ template "openldap.fullname" . }}
labels:
app: {{ template "openldap.name" . }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
moniker.spinnaker.io/application: isd
name: {{ template "redis.fullname" . }}-master
labels:
app: {{ template "redis.name" . }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
moniker.spinnaker.io/application: spin
name: {{ template "spinnaker.fullname" . }}-halyard
labels:
{{ include "spinnaker.standard-labels" . | indent 4 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/oes/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
{{- end -}}

{{/*
Common annotations for ISD.
*/}}
{{- define "isd.standard-annotations" -}}
moniker.spinnaker.io/application: isd
{{- end -}}

{{/*
Return the proper UI image name
*/}}
Expand Down
2 changes: 2 additions & 0 deletions charts/oes/templates/deployments/oes-audit-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: auditclient
Expand Down
2 changes: 2 additions & 0 deletions charts/oes/templates/deployments/oes-audit-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: auditservice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
name: oes-autopilot
labels:
app: oes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: datascience
Expand Down
2 changes: 2 additions & 0 deletions charts/oes/templates/deployments/oes-gate-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: gate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: platform
Expand Down
6 changes: 6 additions & 0 deletions charts/oes/templates/deployments/oes-rabbitmq-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: rabbitmq
Expand All @@ -14,6 +16,10 @@ spec:
component: rabbitmq
template:
metadata:
annotations:
{{- if .Values.rabbitmq.annotations -}}
{{ toYaml .Values.rabbitmq.annotations | nindent 8 }}
{{- end }}
labels:
app: oes
component: rabbitmq
Expand Down
2 changes: 2 additions & 0 deletions charts/oes/templates/deployments/oes-sapor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: sapor
Expand Down
5 changes: 5 additions & 0 deletions charts/oes/templates/deployments/oes-ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: ui
Expand All @@ -17,6 +19,9 @@ spec:
metadata:
annotations:
checksum/configmap: {{ (.Files.Glob "config/oes-ui/app-config.json").AsConfig | sha256sum }}
{{- if .Values.ui.annotations -}}
{{ toYaml .Values.ui.annotations | nindent 8 }}
{{- end }}
labels:
app: oes
component: ui
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: visibility
Expand Down
6 changes: 6 additions & 0 deletions charts/oes/templates/deployments/opa-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: opa
{{ include "oes.standard-labels" . | indent 4 }}
Expand All @@ -14,6 +16,10 @@ spec:
app: opa
template:
metadata:
annotations:
{{- if .Values.opa.annotations -}}
{{ toYaml .Values.opa.annotations | nindent 8 }}
{{- end }}
labels:
app: opa
{{ include "oes.standard-labels" . | indent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/oes/templates/forwarder/oes-forwarder-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
name: opsmx-controller-controller1
labels:
agent.opsmx.com/name: controller1
Expand All @@ -22,6 +24,9 @@ spec:
annotations:
pullversion: "16"
checksum/configmap: {{ (.Files.Glob "templates/forwarder/oes-forwarder-config.yaml").AsConfig | sha256sum }}
{{- if .Values.forwarder.annotations -}}
{{ toYaml .Values.forwarder.annotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: opsmx-controller-controller1
Expand Down
3 changes: 3 additions & 0 deletions charts/oes/templates/hooks/github-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: batch/v1
kind: Job
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
"helm.sh/hook": "pre-install"
"helm.sh/hook-delete-policy": "before-hook-creation"
"helm.sh/hook-weight": "1"
Expand All @@ -16,6 +17,8 @@ spec:
backoffLimit: 1
template:
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 8 }}
labels:
app: oes
component: github-config
Expand Down
2 changes: 2 additions & 0 deletions charts/oes/templates/hooks/oes-config-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
"helm.sh/hook": "post-install,post-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation"
"helm.sh/hook-weight": "5"
Expand All @@ -16,6 +17,7 @@ spec:
metadata:
annotations:
checksum/configmap: {{ (.Files.Glob "templates/configmaps/datasource-creation.yaml").AsConfig | sha256sum }}
{{ include "isd.standard-annotations" . | indent 8 }}
labels:
app: oes
component: oes-config
Expand Down
4 changes: 4 additions & 0 deletions charts/oes/templates/sapor-gate/sapor-gate-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: sapor-gate
Expand All @@ -19,6 +20,9 @@ spec:
metadata:
annotations:
checksum/secret: {{ (.Files.Glob "config/sapor-gate/gate.yml").AsConfig | sha256sum }}
{{- if .Values.saporgate.annotations -}}
{{ toYaml .Values.saporgate.annotations | nindent 8 }}
{{- end }}
labels:
app: oes
component: sapor-gate
Expand Down
6 changes: 6 additions & 0 deletions charts/oes/templates/statefulsets/oes-db-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
{{ include "isd.standard-annotations" . | indent 4 }}
labels:
app: oes
component: db
Expand All @@ -17,6 +19,10 @@ spec:
component: db
template:
metadata:
annotations:
{{- if .Values.db.annotations -}}
{{ toYaml .Values.db.annotations | nindent 8 }}
{{- end }}
labels:
app: oes
component: db
Expand Down
Loading

0 comments on commit 88b4ad5

Please sign in to comment.