Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ parameters:
required: false
- name: CLUSTER_VARIANT
- name: USE_LEASE_CLIENT
- name: KUBELET_LOG_LEVEL
required: false

objects:

Expand Down Expand Up @@ -385,6 +387,8 @@ objects:
value: ${CLUSTER_VARIANT}
- name: BASE_DOMAIN
value: ${BASE_DOMAIN}
- name: KUBELET_LOG_LEVEL
value: ${KUBELET_LOG_LEVEL}
- name: SSH_PRIV_KEY_PATH
value: /etc/openshift-installer/ssh-privatekey
- name: SSH_PUB_KEY_PATH
Expand Down Expand Up @@ -805,6 +809,34 @@ objects:

manifests=${ARTIFACT_DIR}/installer/manifests/

if [[ -n "${KUBELET_LOG_LEVEL}" ]]; then
# masters
cat > ${manifests}/99-kubelet-loglevel-masters.yml <<EOF
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: set-kubelet-log-level-master
spec:
logLevel: ${KUBELET_LOG_LEVEL}
machineConfigPoolSelector:
matchLabels:
pools.operator.machineconfiguration.openshift.io/master: ""
EOF

# workers
cat > ${manifests}/99-kubelet-loglevel-workers.yml <<EOF
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: set-kubelet-log-level-worker
spec:
logLevel: ${KUBELET_LOG_LEVEL}
machineConfigPoolSelector:
matchLabels:
pools.operator.machineconfiguration.openshift.io/worker: ""
EOF
fi

sed -i '/^ channel:/d' ${manifests}/cvo-overrides.yaml

if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then
Expand Down