Skip to content

Commit

Permalink
refactor: update chart version
Browse files Browse the repository at this point in the history
  • Loading branch information
deimosfr committed Dec 10, 2020
1 parent 7c15987 commit fd70da8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/pleco/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name: pleco
description: Automatically removes Cloud managed services and Kubernetes resources based on tags with TTL
type: application
home: https://github.com/Qovery/pleco
version: 0.3.2
appVersion: 0.3.2
version: 0.3.3
appVersion: 0.3.3
icon: https://github.com/Qovery/pleco/raw/main/assets/pleco_logo.png
14 changes: 9 additions & 5 deletions charts/pleco/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ spec:
args:
- --level
- {{ .Values.environmentVariables.LOG_LEVEL | default "info" }}
{{ if eq .Values.enabledFeatures.disableDryRun true }}
- --check-interval
- "{{ .Values.environmentVariables.CHECK_INTERVAL | default 120 }}"
{{ if eq .Values.environmentVariables.DISABLE_DRY_RUN "true" }}
- "{{ .Values.enabledFeatures.checkInterval | default 120 }}"
{{ end }}
{{ if eq .Values.enabledFeatures.disableDryRun true }}
- --disable-dry-run
{{ end }}
{{ if .Values.enabledFeatures.kubernetes }}
- --kube-conn
- {{ .Values.enabledFeatures.kubernetes }}
{{ end }}
{{ if eq .Values.enabledFeatures.rds true}}
- --enable-rds
{{ end }}
Expand All @@ -51,7 +55,7 @@ spec:
{{ end }}
{{ if eq .Values.enabledFeatures.documentdb true}}
- --enable-documentdb
{{ end }}
{{ end }}
env:
{{ range $key, $value := .Values.environmentVariables -}}
- name: "{{ $key }}"
Expand All @@ -72,5 +76,5 @@ spec:
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- toYaml . | nindent 8 }}
{{- end }}
6 changes: 3 additions & 3 deletions charts/pleco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ replicaCount: 1
image:
repository: qoveryrd/pleco
pullPolicy: IfNotPresent
plecoImageTag: "v0.3.2"
plecoImageTag: "v0.3.3"

environmentVariables:
CHECK_INTERVAL: "120"
DISABLE_DRY_RUN: "true"
LOG_LEVEL: "info"
# AWS_ACCESS_KEY_ID: ""
# AWS_SECRET_ACCESS_KEY: ""
# AWS_DEFAULT_REGION: ""
# KUBECONFIG: ""

enabledFeatures:
disableDryRun: false
checkInterval: 120
# Choose between in/out/off
kubernetes: "in"
rds: false
Expand Down
2 changes: 1 addition & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var startCmd = &cobra.Command{
interval, _ := cmd.Flags().GetInt64("check-interval")

fmt.Println("\n\n ____ _ _____ ____ ___ \n| _ \\| | | ____/ ___/ _ \\ \n| |_) | | | _|| | | | | |\n| __/| |___| |__| |__| |_| |\n|_| |_____|_____\\____\\___/\nBy Qovery\n\n")
log.Info("Starting Pleco")
log.Infof("Starting Pleco %s", GetCurrentVersion())

core.StartDaemon(disableDryRun, interval, cmd)
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ func init() {
}

func GetCurrentVersion() string {
return "0.3.2" // ci-version-check
return "0.3.3" // ci-version-check
}

0 comments on commit fd70da8

Please sign in to comment.