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

Fix registry-creds addon failure with ImageRepository #9733

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

alonyb
Copy link

@alonyb alonyb commented Nov 18, 2020

This PR fixes #9722

It's not necessary make a reverse (#9725).

Problem was that addon was not loading data in this func to deployment file.
func (m *BinAsset) loadData(isTemplate bool) error
because isTemplate was always in false.

This PR only change a cred bool var to true in addon class (pkg/minikube/assets/addons.go)

In this PR #9551 this value should also have been changed.

Note: Since if you are going to use data load with jinja template as {{.ImageRepository}} in yaml file, you have to set the isTemplate variable into true, in case you are going to set it manually like "repository/nameImagev1.0", you can set isTemplate into false. All this is done in addons.go

Now it's working

image

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 18, 2020
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 18, 2020
@medyagh
Copy link
Member

medyagh commented Nov 18, 2020

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Nov 18, 2020
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would u plz put the out (failure) Before this PR in the description too?

@medyagh medyagh changed the title Fix cred addon #9722 Fix registry-creds addon failure with ImageRepository Nov 18, 2020
@minikube-pr-bot
Copy link

kvm2 Driver
error collecting results for kvm2 driver: timing run 0 with Minikube (PR 9733): timing cmd: [/home/performance-monitor/.minikube/minikube-binaries/9733/minikube start --driver=kvm2]: starting cmd: fork/exec /home/performance-monitor/.minikube/minikube-binaries/9733/minikube: exec format error
docker Driver
error collecting results for docker driver: timing run 0 with Minikube (PR 9733): timing cmd: [/home/performance-monitor/.minikube/minikube-binaries/9733/minikube start --driver=docker]: starting cmd: fork/exec /home/performance-monitor/.minikube/minikube-binaries/9733/minikube: exec format error

@alonyb
Copy link
Author

alonyb commented Nov 18, 2020

would u plz put the out (failure) Before this PR in the description too?

Sure, it's done

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for fixing this

@medyagh medyagh merged commit b77718a into kubernetes:master Nov 18, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alonyb, medyagh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

registry-creds addon: error converting YAML to JSON: yaml: line 20: did not find expected key ]
5 participants