-
Notifications
You must be signed in to change notification settings - Fork 1.7k
"skaffold deploy --force=false" still force updates deployments #2848
Copy link
Copy link
Closed
Labels
area/deploykind/bugSomething isn't workingSomething isn't workingpriority/p2May take a couple of releasesMay take a couple of releasestriage/duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Expected behavior
The command "skaffold deploy --force=false" should not recreate pods in the deployment.
Actual behavior
The command "skaffold deploy --force=false" recreates pods in the deployment.
Information
- Skaffold version: v0.37.1
- Operating system: ubuntu 18.04
- Kubernetes environment: minikube v1.3.1 (vm-driver=none)
- Kubectl version: v1.14.0
- Contents of skaffold.yaml:
apiVersion: skaffold/v1beta13
kind: Config
deploy:
kubectl:
manifests:
- nginx-deployment.yaml- Contents of nginx-deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80Steps to reproduce the behavior
- Put the 2 files above
skaffold.yamlandnginx-deployment.yamlinto the same folder - Inside that folder, run
skaffold deploy --force=false --verbosity=debug - See these 3 lines at the end of log output, the nginx deployment is updated, nginx pods are recreated
DEBU[0000] Running command: [kubectl --context minikube apply -f - --force]
deployment.apps/nginx configured
Deploy complete in xxxxx ms
- Try
skaffold deploy -v debugwithout specifying the--forceoption, which defaults to false. Still seekubectl ... -f - --forcein debug logs, and nginx pods being recreated - Try all other falsy values for the
--forceparameter, e.g. f, FALSE, 0. Still seekubectl ... -f - --forcein the debug logs - Try
skaffold dev/run/debug.--forceworks well, i.e. no morekubectl ... --forcein debug logs (although pods are still recreated, should be caused by Allow users to override the run-id #2752 I think) - Try
SKAFFOLD_FORCE=false skaffold deploy -v debug. No morekubectl ... --forcethis time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/deploykind/bugSomething isn't workingSomething isn't workingpriority/p2May take a couple of releasesMay take a couple of releasestriage/duplicateThis issue or pull request already existsThis issue or pull request already exists