-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.17.0
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Important
-
None
-
None
-
None
-
Rejected
-
None
-
In Progress
-
Release Note Not Required
-
None
-
None
-
None
-
None
-
None
Description of problem:
When trying to add oc-mirror rhel9 plugin to CLI Manager it fails with error below
E0725 16:04:57.837235 3837368 scanner.go:66] failed to read or parse plugin manifest "oc-mirror.rhel9": plugin manifest validation error: the plugin name "oc-mirror.rhel9" is not allowed, must match "^[\\w-]+$"
Version-Release number of selected component (if applicable):
[knarra@knarra-thinkpadx1carbon7th ~]$ oc get csv -n openshift-cli-manager-operator
NAME DISPLAY VERSION REPLACES PHASE
cli-manager-operator.v0.1.0 CLI Manager 0.1.0 Succeeded
How reproducible:
Always
Steps to Reproduce:
1. Install 4.17 cluster
2. Create CatalogSource on the cluster using the file below
3. Now go to operator hub, install cli manager operator -> create cli manager instance -> now add oc-mirror plugin to it using the following yaml file.
apiVersion: config.openshift.io/v1alpha1
kind: Plugin
metadata:
creationTimestamp: '2024-07-25T11:31:01Z'
generation: 1
managedFields:
- apiVersion: config.openshift.io/v1alpha1
fieldsType: FieldsV1
fieldsV1:
'f:spec':
.: {}
'f:homepage': {}
'f:platforms': {}
'f:shortDescription': {}
'f:version': {}
manager: Mozilla
operation: Update
time: '2024-07-25T11:31:01Z'
name: oc-mirror.rhel9
resourceVersion: '104118'
uid: b8b190c3-9dd3-48a0-b778-92f9b3768bb6
spec:
homepage: 'https://github.com/openshift/oc-mirror'
platforms:
- bin: /usr/bin/oc-mirror.rhel9
files:
- from: /usr/bin/oc-mirror.rhel9
to: .
image: registry.redhat.io/openshift4/oc-mirror-plugin-rhel9
imagePullSecret: openshift-config/pull-secret
platform: linux/amd64
shortDescription: oc mirror plugin rhel9
version: v4.15.0
4. check the logs of openshift-cli-manager and see that plugin is ready to serve
5. Run command `oc krew update`
Actual results:
Updated the local copy of plugin index.
Updated the local copy of plugin index "ocp".
Updated the local copy of plugin index "openshift".
E0725 17:01:24.507072 3839891 scanner.go:66] failed to read or parse plugin manifest "oc-mirror.rhel9": plugin manifest validation error: the plugin name "oc-mirror.rhel9" is not allowed, must match "^[\\w-]+$"
Expected results:
Should not see any error.
Additional info: