1
0
mirror of https://github.com/rancher/os.git synced 2025-09-06 17:22:34 +00:00

Add TPM and MachineRegister support

This commit is contained in:
Darren Shepherd
2021-10-29 12:20:35 -07:00
parent db84312450
commit 901973e5f6
40 changed files with 3390 additions and 291 deletions

View File

@@ -15,6 +15,14 @@ spec:
EOF
}
if [ -e /etc/rancher/rke2/rke2.yaml ]; then
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
elif [ -e /etc/rancher/k3s/k3s.yaml ]; then
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
else
exit 0
fi
PULL_POLICY=IfNotPresent
if [ "$IMAGE_TAG" = dev ]; then
PULL_POLICY=Always
@@ -29,6 +37,11 @@ helm upgrade \
--set image.imagePullPolicy=${PULL_POLICY} \
rancheros-operator /usr/share/rancher/os2/rancheros-operator-chart.tgz
while ! kubectl get crd managedosimages.rancheros.cattle.io; do
echo Waiting for RancherOS Operator to be running
sleep 15
done
while ! manifest | kubectl apply -f -; do
sleep 15
done