Skip to content

Commit a8c3b5d

Browse files
authored
CASMTRIAGE-7918: Source vars.sh to define missing env vars (#5789)
* CASMTRIAGE-7918: Source vars.sh to define missing env vars. Need to source /srv/cray/resources/common/vars.sh in promote-initial-master.sh script to pick up K8S_IMAGE_REGISTRY, RESOLV_CONF, and CERTIFICATE_VALIDITY_PERIOD so that values are used when creating /etc/cray/kubernetes/kubeadm.yaml from template. * Update copyright
1 parent 5df5496 commit a8c3b5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

upgrade/scripts/k8s/promote-initial-master.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# MIT License
44
#
5-
# (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP
5+
# (C) Copyright 2021-2025 Hewlett Packard Enterprise Development LP
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a
88
# copy of this software and associated documentation files (the "Software"),
@@ -31,6 +31,7 @@ if [[ $rc -ne 0 ]]; then
3131
cloud-init init > /dev/null 2>&1
3232
fi
3333

34+
source /srv/cray/resources/common/vars.sh
3435
source /srv/cray/scripts/metal/lib.sh
3536
#shellcheck disable=SC2155
3637
export KUBERNETES_VERSION="v$(cat /etc/cray/kubernetes/version)"

0 commit comments

Comments
 (0)