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 29e17e6
Show file tree
Hide file tree
Showing 2 changed files with 8 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
7 changes: 7 additions & 0 deletions hack/generate-helmchart-proxies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail

for f in ./templates/addons/linode-*.yaml; do
clusterctl generate yaml --from $f
echo "---"
done

0 comments on commit 29e17e6

Please sign in to comment.