diff --git a/templates/cronjob.yaml b/templates/cronjob.yaml index 50627deb6226e3927393569209ee1c7470871a6a..d344d56bcdc1e666dcfee8466b35299eb75c895a 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -61,7 +61,7 @@ spec: fi # Check if part before comma and after comma are equal if [[ "${equation%,*}" == "${equation#*,}" ]]; then - output=$(curl -s -w '%{http_code}' {{- if .Values.wordpress.mu_cron.cronjob.curlInsecure }} -k {{- end }} -L 'http://{{ include "wordpress.fullname" . }}:{{ .Values.service.port }}{{ .Values.wordpress.mu_cron.cronjob.path }}?doing_wp_cron&{{ .Values.wordpress.mu_cron.secret }}') + output=$(curl -s -w '%{http_code}' {{- if .Values.wordpress.mu_cron.cronjob.curlInsecure }} -k {{- end }} -L 'http://{{ include "wordpress.fullname" . }}:{{ .Values.service.port }}{{ .Values.wordpress.mu_cron.cronjob.path }}?doing_wp_cron&{{ required "Please set wordpress.mu_cron.secret to a random secret" .Values.wordpress.mu_cron.secret }}') # Note that if the output is 200invalid secret string, you # need to provide the correct secret! if [[ "$output" == "200" ]]; then diff --git a/values-local.yaml.example b/values-local.yaml.example index 799fe7b032a221d53ba81ec3572d6d40b57ca01a..ffa1882bcad97c745dd0de7fd9026a6c7e7d7837 100644 --- a/values-local.yaml.example +++ b/values-local.yaml.example @@ -96,7 +96,7 @@ wordpress: # NOTE: mu_plugins *must* be enabled if you want to enable mu_cron mu_cron: enabled: false - secret: REPLACE_WITH_RANDOM_SECRET + # secret: <Set random secret here> # # By default cron runs every 3 minutes, but you can change the schedule # # here: # cronjob: diff --git a/values.yaml b/values.yaml index e11911b049e81bf084b463e6ed07719657a77c4e..696a36d16ed77ed42698961671311a14968a9218 100644 --- a/values.yaml +++ b/values.yaml @@ -163,7 +163,7 @@ wordpress: # NOTE: mu_plugins needs to be enabled to enable mu_cron! mu_cron: enabled: false - secret: REPLACE_WITH_RANDOM_SECRET + # secret: <overwrite this value in values-local.yaml> name: Cron Control repo: https://github.com/Automattic/wp-cron-control.git slug: wp-cron-control