Skip to content

Commit

Permalink
make sure the environment variables for helmchartproxies get substitu…
Browse files Browse the repository at this point in the history
…ted in tilt
  • Loading branch information
AshleyDumaine committed Feb 14, 2024
1 parent 5c3ac1c commit e8737f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,14 @@ k8s_resource(

k8s_attach("caaph-controller-manager", "deployment.apps/caaph-controller-manager", namespace="caaph-system")

# Linode CCM, necessary for provisioned self-managed k8s 1.29 clusters
# to correctly set internal and external IPs
k8s_yaml("./templates/addons/linode-cloud-controller-manager-helm.yaml")
k8s_yaml(local('./hack/generate-helmchart-proxies.sh', quiet=True, echo_off=True))
k8s_resource(
new_name="addon-linode-cloud-controller-manager-helm",
objects=[
"linode-cloud-controller-manager:helmchartproxy"
],
resource_deps=["capi-controller-manager", "cluster-api-provider-linode-controller-manager", "caaph-controller-manager"]
)

# Linode Blockstorage CSI driver for storage on self-managed k8s clusters
k8s_yaml("./templates/addons/linode-blockstorage-csi-driver-helm.yaml")
k8s_resource(
new_name="addon-linode-blockstorage-csi-driver-helm",
objects=[
Expand Down
4 changes: 4 additions & 0 deletions hack/generate-helmchart-proxies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -euo pipefail

for f in templates/addons/linode-*.yaml; do envsubst < $f ; done
1 change: 1 addition & 0 deletions templates/addons/linode-blockstorage-csi-driver-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ spec:
apiToken: ${LINODE_TOKEN}
csiLinodePlugin:
tag: v0.6.3
---
1 change: 1 addition & 0 deletions templates/addons/linode-cloud-controller-manager-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ spec:
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoSchedule
---

0 comments on commit e8737f9

Please sign in to comment.