@@ -58,6 +58,7 @@ KUBE_CONTROLLER_MANAGER_OPERATOR_IMAGE=$(image_for cluster-kube-controller-manag
58
58
KUBE_SCHEDULER_OPERATOR_IMAGE=$( image_for cluster-kube-scheduler-operator)
59
59
INGRESS_OPERATOR_IMAGE=$( image_for cluster-ingress-operator)
60
60
NODE_TUNING_OPERATOR_IMAGE=$( image_for cluster-node-tuning-operator)
61
+ AUTH_OPERATOR_IMAGE=$( image_for cluster-authentication-operator)
61
62
62
63
CLOUD_CREDENTIAL_OPERATOR_IMAGE=$( image_for cloud-credential-operator)
63
64
@@ -117,6 +118,41 @@ then
117
118
record_service_stage_success
118
119
fi
119
120
121
+ # The cluster-authentication-operator is going to be responsible for managing the
122
+ # rolebindingrestrictions.authorization.openshift.io CRD as outlined in
123
+ # https://github.com/openshift/enhancements/pull/1726
124
+ #
125
+ # This CRD is required for bootstrapping so that the authorization.openshift.io/RestrictSubjectBindings
126
+ # default admission plugin on the kube-apiserver does not prevent
127
+ # the creation of `system:*` RoleBindings.
128
+ #
129
+ # Because the only thing required for bootstrapping from the cluster-authentication-operator
130
+ # is this API, and this API used to be part of the api-bootstrap process,
131
+ # this stage is put immediately after the api-bootstrap stage.
132
+ if [ ! -f auth-api-bootstrap.done ]
133
+ then
134
+ record_service_stage_start " auth-api-bootstrap"
135
+ echo " Rendering auth api manifests..."
136
+
137
+ rm --recursive --force auth-api-bootstrap
138
+
139
+ bootkube_podman_run \
140
+ --name auth-api-render \
141
+ --volume " $PWD :/assets:z" \
142
+ " ${AUTH_OPERATOR_IMAGE} " \
143
+ render \
144
+ --asset-output-dir=/assets/auth-api-bootstrap/manifests \
145
+ --rendered-manifest-dir=/assets/manifests \
146
+ --cluster-profile=${CLUSTER_PROFILE_ANNOTATION} \
147
+ --payload-version=$VERSION
148
+
149
+
150
+ cp auth-api-bootstrap/manifests/* manifests/
151
+
152
+ touch auth-api-bootstrap.done
153
+ record_service_stage_success
154
+ fi
155
+
120
156
if [ ! -f config-bootstrap.done ]
121
157
then
122
158
record_service_stage_start " config-bootstrap"
0 commit comments