Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

on operator install in openshift I get InvalidImageName #63

Closed
anolan80 opened this issue Sep 28, 2020 · 3 comments
Closed

on operator install in openshift I get InvalidImageName #63

anolan80 opened this issue Sep 28, 2020 · 3 comments

Comments

@anolan80
Copy link

consoleImageName: registry-auth.twistlock.com/tw_<REPLACE_TWISTLOCK_TOKEN>/twistlock/console:console_20_04_163

but I changed the values in the CR that should have been replaced.

88s Warning OverrideValuesInUse twistlockconsole/twistlockconsole Chart value "consoleImageName" overridden to "registry-auth.twistlock.com/tw_<REPLACE_TWISTLOCK_TOKEN>/twistlock/console:console_20_04_169" by operator's watches.yaml
68s Warning OverrideValuesInUse twistlockconsole/twistlockconsole Chart value "consoleImageName" overridden to "registry-auth.twistlock.com/tw_<REPLACE_TWISTLOCK_TOKEN>/twistlock/console:console_20_04_169" by operator's watches.yaml

@anolan80
Copy link
Author

I over-rode the values in the CSR to fix this issue to come back with
Warning Failed pod/twistlock-console-kd2vs Failed to pull image "registry-auth.twistlock.com/tw_xxxxxxxxxxxxxxxxxxxx/twistlock/console:console_20_04_169": rpc error: code = Unknown desc = Error reading manifest console_20_04_169 in registry-auth.twistlock.com/tw_xxxxxxxxxxxxxxxxxx/twistlock/console: unauthorized: authentication required

@kitforbes
Copy link

kitforbes commented Oct 9, 2020

The value we provide in the CR seems to be ignored and is replaced by this, which comes from here.

I tried patching the deployment with

oc patch deployment deployment/prisma-cloud-compute-console-helm-operator -p '{"spec":{"template":{"spec":{"containers":[{"env":[{"name":"RELATED_IMAGE_CONSOLE","value":"registry-auth.twistlock.com/tw_xxxxxxxxxxxxx/twistlock/console:console_20_04_169"}],"name":"prisma-cloud-compute-console-helm-operator"}]}}}}'

but I am assuming that this is undone by the Helm template. I've no idea how to use this operator right now.

EDIT: I was able to update the image reference with oc edit clusterserviceversion/prisma-cloud-compute-console-operator.v1.0.0 and then deleting a bunch of things. Not the best UX.

@kitforbes
Copy link

Small folow up to say that I got the patch to work with the below command:

oc patch "clusterserviceversion/prisma-cloud-compute-console-operator.v1.0.0" \
  -n my-namespace \
  -p '{"spec":{"install":{"spec":{"deployments":[{"name":"prisma-cloud-compute-console-helm-operator","spec":{"selector":{"matchLabels":{"name":"prisma-cloud-compute-console-helm-operator"}},"template":{"spec":{"containers":[{"name":"prisma-cloud-compute-console-helm-operator","env":[{"name":"RELATED_IMAGE_CONSOLE","value":"registry-auth.twistlock.com/tw_xxxxxxxx/twistlock/console:console_20_04_169"}]}]}}}}]}}}}' \
  --type=merge \
  --dry-run=server

@wfg wfg closed this as completed Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants