-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
skaffold helm sync fails with warning #2559
Comments
I appreciate there's several of these helm sync failure issues floating about but I've looked through each one and there's no indication that the configuration is incorrect or that what I'm trying to do isn't supported. Any help would be gratefully received. |
I've tried both |
This looks like a configuration error. When trying sync with the helm deployment example, it works for me. Can you try applying the following patch on your example: diff --git a/k8s/templates/deployment.yaml b/k8s/templates/deployment.yaml
index 6a98e25..40f3260 100644
--- a/k8s/templates/deployment.yaml
+++ b/k8s/templates/deployment.yaml
@@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: node
- image: amurdock/node
+ image: {{ .Values.image }}
imagePullPolicy: Never
ports:
- containerPort: 3000
diff --git a/packages/node/index.js b/packages/node/index.js
index a6cb82f..3b5f4f4 100644
--- a/packages/node/index.js
+++ b/packages/node/index.js
@@ -5,4 +5,4 @@ const server = http.createServer((req, res) => {
res.end('ok')
})
-server.listen(3000)
\ No newline at end of file
+server.listen(3000)
diff --git a/skaffold.yaml b/skaffold.yaml
index 65640c7..160dda6 100644
--- a/skaffold.yaml
+++ b/skaffold.yaml
@@ -15,3 +15,5 @@ deploy:
releases:
- name: skaffold-helm-example
chartPath: k8s
+ values:
+ image: amurdock/node With that, your example works for me. |
Brilliant, amazing ... thanks for you help 👍 |
Expected behavior
files sync to container without a rebuild when updated
Actual behavior
skaffold fails to sync files, prints warn log
Information
Steps to reproduce the behavior
skaffold dev -v debug
packages/node/index.js
fileThe text was updated successfully, but these errors were encountered: