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

Parametrize kaniko executor image to point to private registry #3350

Closed
rajesh-kumar opened this issue Jun 11, 2022 · 2 comments · Fixed by #3558
Closed

Parametrize kaniko executor image to point to private registry #3350

rajesh-kumar opened this issue Jun 11, 2022 · 2 comments · Fixed by #3558
Assignees
Labels
good first issue Does not require full understanding of the codebase kind/feature New feature or request

Comments

@rajesh-kumar
Copy link

rajesh-kumar commented Jun 11, 2022

HI Team,

Can some please help in knowing how can I override following hardcoded image URL "gcr.io/kaniko-project/executor" to point to my private registry where we have this image already uploaded?

I see that it is currently hardcoded in "pkg/controller/build/build_pod.go"

spec:
  affinity: {}
  containers:
  - args:
    - --dockerfile=Dockerfile
    - --context=/builder/kit-caidqd64odbspdoahn5g/context
    - --destination=840203264751.dkr.ecr.us-west-2.amazonaws.com/default/camel-k-kit-caidqd64odbspdoahn5g:1057558
    - --cache=false
    - --cache-dir=/kaniko/cache
    image: **gcr.io/kaniko-project/executor:v0.17.1**
    imagePullPolicy: IfNotPresent
    name: kaniko

Will really appreciate quick guidance here. Thanks!

@squakez
Copy link
Contributor

squakez commented Jun 13, 2022

Yeah, it seems it is hardcoded. I'm marking this as a feature, feel free to have a look and contribute.

@squakez squakez changed the title how to override kaniko executor image to point to private registry? Parametrize kaniko executor image to point to private registry? Jun 13, 2022
@squakez squakez added kind/feature New feature or request good first issue Does not require full understanding of the codebase labels Jun 13, 2022
@essobedo essobedo self-assigned this Aug 19, 2022
@essobedo
Copy link
Contributor

The corresponding PR #3558

@essobedo essobedo changed the title Parametrize kaniko executor image to point to private registry? Parametrize kaniko executor image to point to private registry Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Does not require full understanding of the codebase kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants