Created
February 23, 2021 17:17
-
-
Save maiamcc/dc198b2cd4eafde8be9c8b91a689df20 to your computer and use it in GitHub Desktop.
Tiltfile to verify that context checking works with k8s_yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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