Description of problem:
The name for ImageDigestMirrorSet created by oc-mirror is not valid
Version-Release number of selected component (if applicable):
4.15
How reproducible:
always
Steps to Reproduce:
1. Use the idcp yaml file created by oc-mirror , will hit error
Actual results:
cat out/working-dir/cluster-resources/idms_2023-11-16T04\:04\:49Z.yaml
apiVersion: config.openshift.io/v1
kind: ImageDigestMirrorSet
metadata:
creationTimestamp: null
name: idms_2023-11-16T04:04:49Z
spec:
imageDigestMirrors:
- mirrors:
- ec2-3-143-247-94.us-east-2.compute.amazonaws.com:5000/ocp/openshift-release-dev
source: quay.io/openshift-release-dev
- mirrors:
- ec2-3-143-247-94.us-east-2.compute.amazonaws.com:5000/ocp/openshift
source: localhost:5005/openshift
status: {}
oc create -f out/working-dir/cluster-resources/idms_2023-11-16T04\:04\:49Z.yaml
The ImageDigestMirrorSet "idms_2023-11-16T04:04:49Z" is invalid: metadata.name: Invalid value: "idms_2023-11-16T04:04:49Z": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*')
Expected results:
name valid and no error.
Additional info:
- clones
-
OCPBUGS-22947 oc-mirror panic when use v2
- Closed
- is cloned by
-
OCPBUGS-23340 Didn't create the updateService.yaml for oc-mirror v2 format
- Closed
- links to
-
RHSA-2023:7198 OpenShift Container Platform 4.15 security update