Skip to content

Commit

Permalink
Default butane config to latest released, but make it overwrittable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypoulz committed Mar 27, 2024
1 parent be3d92b commit 5c10bd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -7,17 +7,12 @@ set -o pipefail
node_role=${APPLY_NODE_ROLE:=worker}
log_path=${LOG_PATH:="/var/crash"}

openshift_release="4.11.0"
if [[ $(echo $RELEASE_IMAGE_LATEST | grep -o -e "4\.[0-9]\+\.") ]]; then
openshift_release="$(echo $RELEASE_IMAGE_LATEST | grep -o -e '4\.[0-9]\+\.').0"
fi

echo "Crash kernel set to ${CRASH_KERNEL_MEMORY}"

echo "Configuring kernel dumps on $node_role nodes"
cat >> "${SHARED_DIR}/manifest_99_${node_role}_kdump.bu" << EOF
variant: openshift
version: "$openshift_release"
version: "${BUTANE_RELEASE}"
metadata:
name: 99-$node_role-kdump
labels:
Expand Down
Expand Up @@ -11,6 +11,11 @@ ref:
default: "worker"
documentation: |-
The node role to configure kdump logs on.
- name: BUTANE_RELEASE
default: "4.15.0"
documentation: |-
You can read up on upgrading butane here (https://coreos.github.io/butane/upgrading-openshift/).
In general it's safe to stick to 4.15.0 unless this is upgraded to use a feature from a newer release.
- name: KDUMP_COMMANDLINE_REMOVE
default: "hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
documentation: |-
Expand Down

0 comments on commit 5c10bd5

Please sign in to comment.