diff --git a/Makefile b/Makefile index e7278b0..bddf5f9 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ deploy-to-local-cluster: kubectl ctx $(LOCAL_DEV_CLUSTER) helm template ./charts/$(SERVICE_NAME)/ \ -f ./charts/$(SERVICE_NAME)/values.yaml \ - --set image.repository=dev.local/$(SERVICE_NAME),image.tag=$(NOW),knative.eventing.local=true,knative.eventing.subscriber=http://host.docker.internal:5020 \ + --set image.repository=dev.local/$(SERVICE_NAME),image.tag=$(NOW),local=true \ | kubectl apply -f - delete-local-deployment: diff --git a/helm/templates/ksvc.yaml b/helm/templates/ksvc.yaml index 0477c6a..6b92dda 100755 --- a/helm/templates/ksvc.yaml +++ b/helm/templates/ksvc.yaml @@ -1,4 +1,4 @@ -{{- if .Values.knative.eventing.local }} +{{- if .Values.local }} {{- else }} apiVersion: serving.knative.dev/v1 kind: Service diff --git a/helm/templates/todo.initialized.yaml b/helm/templates/todo.initialized.yaml index 24f6d4b..062be16 100644 --- a/helm/templates/todo.initialized.yaml +++ b/helm/templates/todo.initialized.yaml @@ -10,8 +10,8 @@ spec: attributes: type: todo.initialized subscriber: -{{- if .Values.knative.eventing.local }} - uri: {{ .Values.knative.eventing.subscriber }}/cloudevent/todo.initialized +{{- if .Values.local }} + uri: {{ .Values.localKnativeSubscriber }}/cloudevent/todo.initialized {{- else }} ref: {{- if .Values.knativeDeploy }} diff --git a/helm/values.yaml b/helm/values.yaml index 85915cd..5a9a1fd 100755 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -40,5 +40,6 @@ resources: knative: minScale: 1 maxScale: 3 - eventing: - local: + +local: false +localKnativeSubscriber: http://host.docker.internal:5020