Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Removed Upgrade job for 3.0.0 #342

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/litmus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.0.0"
description: A Helm chart to install ChaosCenter
name: litmus
version: 3.0.0
version: 3.0.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus

![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
![Version: 3.0.1](https://img.shields.io/badge/Version-3.0.1-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)

A Helm chart to install ChaosCenter

Expand Down
156 changes: 78 additions & 78 deletions charts/litmus/templates/post-upgrade-hook.yaml
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
apiVersion: batch/v1
kind: Job
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove the file?

metadata:
name: {{ include "litmus-portal.fullname" . }}-upgrade-agent-cp-{{.Release.Revision}}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded
spec:
backoffLimit: 2
ttlSecondsAfterFinished: 60
template:
metadata:
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
restartPolicy: {{ .Values.upgradeAgent.controlPlane.restartPolicy }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: upgrade-agent
image: {{ .Values.image.imageRegistryName }}/{{ .Values.upgradeAgent.controlPlane.image.repository }}:{{ .Values.upgradeAgent.controlPlane.image.tag }}
imagePullPolicy: {{ .Values.upgradeAgent.controlPlane.image.pullPolicy }}
envFrom:
- secretRef:
name: {{ include "litmus-portal.secretname" . }}
- configMapRef:
name: {{ include "litmus-portal.fullname" . }}-admin-config
env:
- name: DB_PASSWORD
{{- if .Values.mongodb.enabled }}
{{- if not .Values.mongodb.auth.existingSecret }}
value: {{ .Values.mongodb.auth.rootPassword }}
{{- else }}
valueFrom:
secretKeyRef:
name: {{ .Values.mongodb.auth.existingSecret }}
key: mongodb-root-password
{{- end }}
{{- else }}
valueFrom:
secretKeyRef:
name: {{ include "litmus-portal.secretname" . }}
key: DB_PASSWORD
{{- end }}
- name: DB_USER
{{- if .Values.mongodb.enabled }}
value: {{ .Values.mongodb.auth.rootUser }}
{{- else }}
valueFrom:
secretKeyRef:
name: {{ include "litmus-portal.secretname" . }}
key: DB_USER
{{- end }}
resources:
{{- toYaml .Values.upgradeAgent.resources | nindent 12 }}
{{- with .Values.upgradeAgent.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.upgradeAgent.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.upgradeAgent.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
# apiVersion: batch/v1
# kind: Job
# metadata:
# name: {{ include "litmus-portal.fullname" . }}-upgrade-agent-cp-{{.Release.Revision}}
# labels:
# app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
# app.kubernetes.io/instance: {{ .Release.Name | quote }}
# app.kubernetes.io/version: {{ .Chart.AppVersion }}
# helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
# annotations:
# # This is what defines this resource as a hook. Without this line, the
# # job is considered part of the release.
# "helm.sh/hook": post-upgrade
# "helm.sh/hook-delete-policy": hook-succeeded
# spec:
# backoffLimit: 2
# ttlSecondsAfterFinished: 60
# template:
# metadata:
# labels:
# app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
# app.kubernetes.io/instance: {{ .Release.Name | quote }}
# helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
# spec:
# restartPolicy: {{ .Values.upgradeAgent.controlPlane.restartPolicy }}
# {{- if .Values.image.imagePullSecrets }}
# imagePullSecrets:
# {{ toYaml .Values.image.imagePullSecrets | nindent 8 }}
# {{- end }}
# containers:
# - name: upgrade-agent
# image: {{ .Values.image.imageRegistryName }}/{{ .Values.upgradeAgent.controlPlane.image.repository }}:{{ .Values.upgradeAgent.controlPlane.image.tag }}
# imagePullPolicy: {{ .Values.upgradeAgent.controlPlane.image.pullPolicy }}
# envFrom:
# - secretRef:
# name: {{ include "litmus-portal.secretname" . }}
# - configMapRef:
# name: {{ include "litmus-portal.fullname" . }}-admin-config
# env:
# - name: DB_PASSWORD
# {{- if .Values.mongodb.enabled }}
# {{- if not .Values.mongodb.auth.existingSecret }}
# value: {{ .Values.mongodb.auth.rootPassword }}
# {{- else }}
# valueFrom:
# secretKeyRef:
# name: {{ .Values.mongodb.auth.existingSecret }}
# key: mongodb-root-password
# {{- end }}
# {{- else }}
# valueFrom:
# secretKeyRef:
# name: {{ include "litmus-portal.secretname" . }}
# key: DB_PASSWORD
# {{- end }}
# - name: DB_USER
# {{- if .Values.mongodb.enabled }}
# value: {{ .Values.mongodb.auth.rootUser }}
# {{- else }}
# valueFrom:
# secretKeyRef:
# name: {{ include "litmus-portal.secretname" . }}
# key: DB_USER
# {{- end }}
# resources:
# {{- toYaml .Values.upgradeAgent.resources | nindent 12 }}
# {{- with .Values.upgradeAgent.nodeSelector }}
# nodeSelector:
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.upgradeAgent.affinity }}
# affinity:
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.upgradeAgent.tolerations }}
# tolerations:
# {{- toYaml . | nindent 8 }}
# {{- end }}
Loading