★ wanayoo — archive 1999 https://github.com/twistlock/sample-code/issues/63Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on operator install in openshift I get InvalidImageName #63

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

on operator install in openshift I get InvalidImageName #63

anolan80 opened this issue Sep 28, 2020 · 3 comments

Comments

@anolan80
Copy link

@anolan80 anolan80 commented Sep 28, 2020

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

@anolan80 anolan80 commented Sep 29, 2020

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 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

@kitforbes kitforbes commented Oct 13, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.