-
Notifications
You must be signed in to change notification settings - Fork 225
Apache Kafka event source does not work with minikube local docker #299
Comments
I was looking to compare how other sources are doing and it seems to use IfNotPresent -https://github.com/knative/eventing-sources/blob/1fbf7302f71deb10540acc3b7a938f287ecc1b30/pkg/reconciler/containersource/resources/deployment.go#L76 |
It seems that best option is to remove ImagePullPolicy or make it configurable to override default IfNotPresent? https://kubernetes.io/docs/concepts/containers/images/ |
@dubee going to change kafka source adapter to use default IfNotPresent but will allow to override it with new optional env variable set in eventing-sources/contrib/kafka/config/500-controller.yaml
and remove |
The optional pull policy override sounds like the way to go. |
/assign @aslom |
@aslom this is typically done using Kustomize: https://github.com/kubernetes-sigs/kustomize, as an overlay |
Why make this an option instead of just changing it from |
Since my last comment discusses implementation, copying it over to the PR where we can discuss there. |
* make image pull policy configurable Solves #299 * forcing merge commit * do not set any image pull policy * Remove functionality to set image pull policy for receive adapter * remove imagePullPolicy also from controller * reverse formatting changes * fix failing unit test PASS ok github.com/knative/eventing-sources/contrib/kafka/pkg/reconciler 0.049s
Fixed by #303 |
Expected Behavior
Apache Kafka source should work in minikube with local docker
Actual Behavior
export KO_DOCKER_REPO=ko.local and because ImagePullPolicy: "Always" is used in contrib/kafka/pkg/reconciler/resources/receive_adapter.go then source is ImagePullBackOff
Steps to Reproduce the Problem
export KO_DOCKER_REPO=ko.local
Additional Info
The default pull policy is IfNotPresent in k8s:
https://kubernetes.io/docs/concepts/containers/images/
The text was updated successfully, but these errors were encountered: