Skip to content

Instantly share code, notes, and snippets.

@maiamcc
Created February 23, 2021 17:17
Show Gist options
  • Save maiamcc/dc198b2cd4eafde8be9c8b91a689df20 to your computer and use it in GitHub Desktop.
Save maiamcc/dc198b2cd4eafde8be9c8b91a689df20 to your computer and use it in GitHub Desktop.
Tiltfile to verify that context checking works with k8s_yaml
print("Current context is:", k8s_context())
yaml = """apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80"""
k8s_yaml(blob(yaml))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment