Skip to content

Commit

Permalink
add rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayo04 committed Jul 30, 2024
1 parent 0d115f5 commit c019735
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
28 changes: 28 additions & 0 deletions php/templates/rollout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- $root := . -}}
{{- if .Values.rollout.enabled -}}
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: "{{ include "akka.containerName" . }}"
labels:
{{- include "php.labels" . | nindent 4 }}
{{- range $k, $v := .Values.labels }}
{{ $k }}: {{ $v | quote }}
{{- end }}
spec:
{{- if .Values.rollout.workloadRef.enabled }}
workloadRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "php.fullname" . }}
{{- else }}
template:
{{- toYaml .Values.rollout.template | nindent 4 }}
{{- end }}
{{- if and (not .Values.autoscalingRollout.enabled) (ne .Values.rollout.replicaCount nil) }}
replicas: {{ .Values.rollout.replicaCount }}
{{- end }}
revisionHistoryLimit: {{ .Values.rollout.revisionHistoryLimit }}
strategy:
{{- toYaml .Values.rollout.strategy | nindent 4 }}
{{- end }}
11 changes: 11 additions & 0 deletions php/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,14 @@ fpm:
# TEST
test:
enabled: true

# Rollout configurations
rollout:
enabled: false
workloadRef:
enabled: false
template: {}
# If you want fix replicaCount, disable autoscalingRollout.enabled and uncomment the following line
#replicaCount: 3
revisionHistoryLimit: 10
strategy: {}

0 comments on commit c019735

Please sign in to comment.