Skip to content

Commit

Permalink
Use eck-operator UBI image when ubiOnly=true. (#7486)
Browse files Browse the repository at this point in the history
Ensure we use the `-ubi` operator image when `ubiOnly` is set to `true`.
Update documentation for the ubi changes.
---------
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
  • Loading branch information
naemono authored Jan 23, 2024
1 parent 849ce1e commit bfae9f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .buildkite/scripts/common/operator-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ operator::set_build_flavors_var() {
if [[ "${BUILD_FLAVORS:-}" == "" ]]; then
case $trigger in
tag-*) BUILD_FLAVORS="eck,eck-dev,eck-fips,eck-ubi,eck-ubi-fips" ;;
*-main) BUILD_FLAVORS="eck,eck-dev" ;;
merge-main) BUILD_FLAVORS="eck,eck-dev" ;;
nightly-main) BUILD_FLAVORS="eck,eck-dev,eck-ubi" ;;
*-test-snapshot) BUILD_FLAVORS="eck,eck-dev" ;;
pr-*|merge-xyz) BUILD_FLAVORS="eck" ;;
dev) BUILD_FLAVORS="dev" ;;
*) echo "error: trigger '$trigger' not supported"; exit ;;
esac
fi
export BUILD_FLAVORS
}
}
2 changes: 1 addition & 1 deletion deploy/eck-operator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
- image: "{{ .Values.image.repository }}{{- if .Values.config.ubiOnly -}}-ubi{{- end -}}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: manager
args:
Expand Down
2 changes: 1 addition & 1 deletion deploy/eck-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ config:
# Interval between observations of Elasticsearch health, non-positive values disable asynchronous observation.
elasticsearchObservationInterval: 10s

# ubiOnly specifies whether the operator will use only UBI container images to deploy Elastic Stack applications. UBI images are only available from 7.10.0 onward.
# ubiOnly specifies whether the operator will use only UBI container images to deploy Elastic Stack applications as well as for its own StatefulSet image. UBI images are only available from 7.10.0 onward.
# Cannot be combined with the containerSuffix value.
ubiOnly: false

Expand Down

0 comments on commit bfae9f6

Please sign in to comment.