camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Parametrize kaniko executor image to point to private registry?

Open rajesh-kumar opened this issue 3 years ago • 1 comments

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!

rajesh-kumar avatar Jun 11 '22 18:06 rajesh-kumar

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

squakez avatar Jun 13 '22 16:06 squakez

The corresponding PR https://github.com/apache/camel-k/pull/3558

essobedo avatar Aug 19 '22 16:08 essobedo