You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For in-cluster builds with kaniko, skaffold build doesn't delete kaniko-<> pod if build is interrupted with ctrl-c on filesystem snapshot stage:
skaffold build -vdebug
...
INFO[2023-05-18T16:35:55Z] Taking snapshot of full filesystem...
^CERRO[0032] deleting pod: client rate limiter Wait returned an error: context canceled subtask=<REDACTED>.dkr.ecr.us-east-1.amazonaws.com/<REDACTED>task=Build
Build [<REDACTED>.dkr.ecr.us-east-1.amazonaws.com/<REDACTED>] was canceled
kubectl get po
kaniko-d7bxc 1/1 Running 0 17s
Expected behavior
skaffold trigger a deletion of kaniko pod if build is interrupted with ctrl-c on Kaniko's filesystem snapshot stage
Actual behavior
skaffold doesn't delete kaniko pod if build is interrupted with ctrl-c on Kaniko's filesystem snapshot stage
apiVersion: skaffold/v4beta5kind: Configbuild:
tagPolicy:
envTemplate:
template: "{{.CUSTOM_IMAGE_TAG}}"artifacts:
# build.artifacts.*.image is not templateable.# see https://github.com/GoogleContainerTools/skaffold/issues/7455# it will be overriden by profile name, see profiles section below. # {{.SKAFFOLD_PROFILE}} is just a placeholder here, at least for now, untill Skaffold allows to template image field.
- image: "<REDACTED>.dkr.ecr.us-east-1.amazonaws.com/{{.SKAFFOLD_PROFILE}}"kaniko:
dockerfile: DockerfilesnapshotMode: redopushRetry: "2"cleanup: truelogTimestamp: trueuseNewRun: truewhitelistVarRun: true# see skaffold.envlabel:
builder: kanikoapp.version: "{{.CUSTOM_IMAGE_TAG}}"description: "{{.DESCRIPTION}}"git.branch: "{{.GIT_BRANCH}}"git.commit: "{{.GIT_COMMIT}}"git.contributor: "{{.GIT_CONTRIBUTOR}}"env:
- name: AWS_SDK_LOAD_CONFIGvalue: true
- name: AWS_EC2_METADATA_DISABLEDvalue: true
...
Steps to reproduce the behavior
skaffold build
ctrl-c after kaniko pod was created, on Kaniko's filesystem snapshot stage
The text was updated successfully, but these errors were encountered:
For in-cluster builds with
kaniko
,skaffold build
doesn't deletekaniko-<>
pod ifbuild
is interrupted withctrl-c
on filesystem snapshot stage:skaffold build -vdebug
Expected behavior
skaffold trigger a deletion of kaniko pod if build is interrupted with ctrl-c on Kaniko's filesystem snapshot stage
Actual behavior
skaffold doesn't delete kaniko pod if build is interrupted with ctrl-c on Kaniko's filesystem snapshot stage
Information
Steps to reproduce the behavior
skaffold build
ctrl-c
afterkaniko
pod was created, on Kaniko's filesystem snapshot stageThe text was updated successfully, but these errors were encountered: