|
78 | 78 | record_service_stage_success |
79 | 79 | fi |
80 | 80 |
|
| 81 | +if [ ! -f config-bootstrap.done ] |
| 82 | +then |
| 83 | + record_service_stage_start "config-bootstrap" |
| 84 | + echo "Rendering cluster config manifests..." |
| 85 | + |
| 86 | + rm --recursive --force config-bootstrap |
| 87 | + |
| 88 | + ADDITIONAL_FLAGS=() |
| 89 | + if [ -f "$PWD/manifests/cloud-provider-config.yaml" ]; then |
| 90 | + ADDITIONAL_FLAGS+=("--cloud-provider-config-input-file=/assets/manifests/cloud-provider-config.yaml") |
| 91 | + fi |
| 92 | + {{- if .FeatureSet }} |
| 93 | + ADDITIONAL_FLAGS+=("--feature-set={{.FeatureSet}}") |
| 94 | + {{- end}} |
| 95 | + VERSION="$(oc adm release info -o 'jsonpath={.metadata.version}' "${RELEASE_IMAGE_DIGEST}")" |
| 96 | + |
| 97 | + bootkube_podman_run \ |
| 98 | + --name config-render \ |
| 99 | + --volume "$PWD:/assets:z" \ |
| 100 | + "${CONFIG_OPERATOR_IMAGE}" \ |
| 101 | + /usr/bin/cluster-config-operator render \ |
| 102 | + --cluster-infrastructure-input-file=/assets/manifests/cluster-infrastructure-02-config.yml \ |
| 103 | + --cloud-provider-config-output-file=/assets/config-bootstrap/cloud-provider-config-generated.yaml \ |
| 104 | + --config-output-file=/assets/config-bootstrap/config \ |
| 105 | + --asset-input-dir=/assets/tls \ |
| 106 | + --asset-output-dir=/assets/config-bootstrap \ |
| 107 | + --featuregate-manifest=/assets/manifests/99_feature-gate.yaml \ |
| 108 | + --rendered-manifest-files=/assets/manifests \ |
| 109 | + --payload-version=$VERSION \ |
| 110 | + "${ADDITIONAL_FLAGS[@]}" |
| 111 | + |
| 112 | + cp config-bootstrap/manifests/* manifests/ |
| 113 | + |
| 114 | + touch config-bootstrap.done |
| 115 | + record_service_stage_success |
| 116 | +fi |
| 117 | + |
81 | 118 | if [ ! -f cvo-bootstrap.done ] |
82 | 119 | then |
83 | 120 | record_service_stage_start "cvo-bootstrap" |
@@ -135,39 +172,6 @@ then |
135 | 172 | record_service_stage_success |
136 | 173 | fi |
137 | 174 |
|
138 | | -if [ ! -f config-bootstrap.done ] |
139 | | -then |
140 | | - record_service_stage_start "config-bootstrap" |
141 | | - echo "Rendering cluster config manifests..." |
142 | | - |
143 | | - rm --recursive --force config-bootstrap |
144 | | - |
145 | | - ADDITIONAL_FLAGS=() |
146 | | - if [ -f "$PWD/manifests/cloud-provider-config.yaml" ]; then |
147 | | - ADDITIONAL_FLAGS+=("--cloud-provider-config-input-file=/assets/manifests/cloud-provider-config.yaml") |
148 | | - fi |
149 | | - {{- if .FeatureSet }} |
150 | | - ADDITIONAL_FLAGS+=("--feature-set={{.FeatureSet}}") |
151 | | - {{- end}} |
152 | | - |
153 | | - bootkube_podman_run \ |
154 | | - --name config-render \ |
155 | | - --volume "$PWD:/assets:z" \ |
156 | | - "${CONFIG_OPERATOR_IMAGE}" \ |
157 | | - /usr/bin/cluster-config-operator render \ |
158 | | - --cluster-infrastructure-input-file=/assets/manifests/cluster-infrastructure-02-config.yml \ |
159 | | - --cloud-provider-config-output-file=/assets/config-bootstrap/cloud-provider-config-generated.yaml \ |
160 | | - --config-output-file=/assets/config-bootstrap/config \ |
161 | | - --asset-input-dir=/assets/tls \ |
162 | | - --asset-output-dir=/assets/config-bootstrap \ |
163 | | - "${ADDITIONAL_FLAGS[@]}" |
164 | | - |
165 | | - cp config-bootstrap/manifests/* manifests/ |
166 | | - |
167 | | - touch config-bootstrap.done |
168 | | - record_service_stage_success |
169 | | -fi |
170 | | - |
171 | 175 | if [ ! -f kube-apiserver-bootstrap.done ] |
172 | 176 | then |
173 | 177 | record_service_stage_start "kube-apiserver-bootstrap" |
|
0 commit comments