Skip to content

Commit

Permalink
Merge pull request #3790 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…3776-to-release-4.17

[release-4.17] USHIFT-4069: rebase fix to workaround MCO's use of go templates in yaml files
  • Loading branch information
openshift-merge-bot[bot] committed Aug 19, 2024
2 parents af2bef4 + e67f2fb commit 180d247
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/auto-rebase/rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,12 @@ update_openshift_manifests() {
title "Modifying OpenShift manifests"

#-- Kubelet -------------------------------------------

# The tlsCipherSuites field was change from a scalar value to gotemplate which broke the yaml formatting and
# confused yq. Before processing, delete the offending go templated field.
# https://github.com/openshift/machine-config-operator/commit/3b979e1ddf2a6e2c3e9b4a7872e31db888da1d57
sed -n -i '/tlsCipherSuites:/,/{{- end }}/d' "${REPOROOT}/assets/core/kubelet.yaml"

# Drop MCO's boilerplate and keep KubeletConfiguration only
yq -i '.contents.inline' "${REPOROOT}/assets/core/kubelet.yaml"

Expand Down

0 comments on commit 180d247

Please sign in to comment.