Skip to content
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

tilt down should handle missing crds #4519

Closed
nicks opened this issue May 5, 2021 · 0 comments · Fixed by #4521
Closed

tilt down should handle missing crds #4519

nicks opened this issue May 5, 2021 · 0 comments · Fixed by #4521
Labels
bug Something isn't working

Comments

@nicks
Copy link
Member

nicks commented May 5, 2021

Steps to Reproduce

Tiltfile:

k8s_yaml('crd.yaml')
k8s_yaml('crontab.yaml')

crd.yaml:

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: crontabs.stable.example.com
spec:
  group: stable.example.com
  versions:
    - name: v1
      served: true
      storage: true
  scope: Namespaced
  names:
    plural: crontabs
    singular: crontab
    kind: CronTab
    shortNames:
    - ct

crontab.yaml:

apiVersion: "stable.example.com/v1"
kind: CronTab
metadata:
  name: my-new-cron-object
spec:
  cronSpec: "* * * * */5"
  image: my-awesome-cron-image

Run tilt down

Expected Behavior

Tilt should gracefully delete all resources, ignoring "not found" errors

Current Behavior

Error: Deleting k8s entities: kubernetes delete: unable to recognize "": no matches for kind "CronTab" in version "stable.example.com/v1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant