Skip to content
Merged
Show file tree
Hide file tree
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 @@ -81,42 +81,17 @@ spec:
topologyKey: kubernetes.io/hostname
automountServiceAccountToken: false
containers:
- args:
- -c
- |
#!/bin/sh
function cleanup() {
pkill -P $$$
wait
exit
}
trap cleanup SIGTERM
while true; do
if oc apply -f /work; then
echo "Bootstrap manifests applied successfully."
break
fi
sleep 1
done
while true; do
if oc replace --subresource=status -f /work/99_feature-gate.yaml; then
echo "FeatureGate status applied successfully."
break
fi
sleep 1
done
while true; do
sleep 1000 &
wait $!
done
command:
- /bin/bash
- command:
- /usr/bin/control-plane-operator
- kas-bootstrap
- --resources-path
- /work
env:
- name: KUBECONFIG
value: /var/secrets/localhost-kubeconfig/kubeconfig
image: cli
image: controlplane-operator
imagePullPolicy: IfNotPresent
name: apply-bootstrap
name: bootstrap
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -383,7 +358,7 @@ spec:
featureGates: null
image: cluster-config-api
imagePullPolicy: IfNotPresent
name: init-bootstrap
name: init-bootstrap-render
resources:
requests:
cpu: 30m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,42 +81,17 @@ spec:
topologyKey: kubernetes.io/hostname
automountServiceAccountToken: false
containers:
- args:
- -c
- |
#!/bin/sh
function cleanup() {
pkill -P $$$
wait
exit
}
trap cleanup SIGTERM
while true; do
if oc apply -f /work; then
echo "Bootstrap manifests applied successfully."
break
fi
sleep 1
done
while true; do
if oc replace --subresource=status -f /work/99_feature-gate.yaml; then
echo "FeatureGate status applied successfully."
break
fi
sleep 1
done
while true; do
sleep 1000 &
wait $!
done
command:
- /bin/bash
- command:
- /usr/bin/control-plane-operator
- kas-bootstrap
- --resources-path
- /work
env:
- name: KUBECONFIG
value: /var/secrets/localhost-kubeconfig/kubeconfig
image: cli
image: controlplane-operator
imagePullPolicy: IfNotPresent
name: apply-bootstrap
name: bootstrap
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -384,7 +359,7 @@ spec:
featureGates: null
image: cluster-config-api
imagePullPolicy: IfNotPresent
name: init-bootstrap
name: init-bootstrap-render
resources:
requests:
cpu: 30m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,17 @@ spec:
app: kube-apiserver
spec:
containers:
- args:
- -c
- |
#!/bin/sh
function cleanup() {
pkill -P $$$
wait
exit
}
trap cleanup SIGTERM
while true; do
if oc apply -f /work; then
echo "Bootstrap manifests applied successfully."
break
fi
sleep 1
done
while true; do
if oc replace --subresource=status -f /work/99_feature-gate.yaml; then
echo "FeatureGate status applied successfully."
break
fi
sleep 1
done
while true; do
sleep 1000 &
wait $!
done
command:
- /bin/bash
- command:
- /usr/bin/control-plane-operator
- kas-bootstrap
- --resources-path
- /work
env:
- name: KUBECONFIG
value: /var/secrets/localhost-kubeconfig/kubeconfig
image: cli
image: controlplane-operator
imagePullPolicy: IfNotPresent
name: apply-bootstrap
name: bootstrap
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -282,7 +257,7 @@ spec:
- /bin/bash
image: cluster-config-api
imagePullPolicy: IfNotPresent
name: init-bootstrap
name: init-bootstrap-render
resources:
requests:
cpu: 30m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func updateBootstrapInitContainer(deployment *appsv1.Deployment, hcp *hyperv1.Ho
}
featureGateYaml := featureGateBuffer.String()

util.UpdateContainer("init-bootstrap", deployment.Spec.Template.Spec.InitContainers, func(c *corev1.Container) {
util.UpdateContainer("init-bootstrap-render", deployment.Spec.Template.Spec.InitContainers, func(c *corev1.Container) {
c.Env = append(c.Env,
corev1.EnvVar{
Name: "PAYLOAD_VERSION",
Expand Down