Skip to content

Commit

Permalink
Adding labels more selectively
Browse files Browse the repository at this point in the history
  • Loading branch information
komer3 committed Mar 28, 2024
1 parent ad2af00 commit b7b0c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ manager_yaml = decode_yaml_stream(kustomize("config/default"))
for resource in manager_yaml:
if resource["metadata"]["name"] == "capl-manager-credentials":
resource["stringData"]["apiToken"] = os.getenv('LINODE_TOKEN')
if resource["kind"] == "CustomResourceDefinition":
if resource["spec"]["group"] == "infrastructure.cluster.x-k8s.io":
resource["metadata"]["labels"]["clusterctl.cluster.x-k8s.io"] = ""
k8s_yaml(encode_yaml_stream(manager_yaml))

Expand Down

0 comments on commit b7b0c24

Please sign in to comment.