Skip to content

Commit 7e9bb1f

Browse files
committed
[build] Add licenses dir to operator and bundle
This commit adds the licenses dir containing the LICENSE for compliance with OpenShift certification policy to the operator and bundle images. https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html-single/red_hat_openshift_software_certification_policy_guide/index#con-image-content-requirements_openshift-sw-cert-policy-container-images
1 parent 45f7c59 commit 7e9bb1f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Containerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ COPY pkg/internal/hns.psm1 .
188188

189189
WORKDIR /
190190

191+
# create licenses directory
192+
# See https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html-single/red_hat_openshift_software_certification_policy_guide/index#con-image-content-requirements_openshift-sw-cert-policy-container-images
193+
COPY LICENSE /licenses/
194+
191195
ENV OPERATOR=/usr/local/bin/windows-machine-config-operator \
192196
USER_UID=1001 \
193197
USER_NAME=windows-machine-config-operator

Containerfile.bundle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ LABEL release="10.21.0"
3636
LABEL url="https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/index"
3737
LABEL vendor="Red Hat, Inc."
3838

39+
# create licenses directory
40+
# See https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html-single/red_hat_openshift_software_certification_policy_guide/index#con-image-content-requirements_openshift-sw-cert-policy-container-images
41+
COPY LICENSE /licenses/
42+
3943
# Copy files to locations specified by labels.
4044
COPY --from=image-replacer /manifests /manifests/
4145
COPY bundle/metadata /metadata/

0 commit comments

Comments
 (0)