camel-k
camel-k copied to clipboard
Parametrize kaniko executor image to point to private registry?
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!
Yeah, it seems it is hardcoded. I'm marking this as a feature, feel free to have a look and contribute.
The corresponding PR https://github.com/apache/camel-k/pull/3558