diff --git a/.github/workflows/pull-request-actions.yaml b/.github/workflows/pull-request-actions.yaml index d542bb0..e70cc64 100644 --- a/.github/workflows/pull-request-actions.yaml +++ b/.github/workflows/pull-request-actions.yaml @@ -7,6 +7,7 @@ on: pull_request: branches: - master + - staging jobs: shellcheck: diff --git a/bootstrap.sh b/bootstrap.sh index 3a21690..e303f86 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -37,12 +37,15 @@ if [ "$(yq -r '.clouds.openstack.auth.application_credential_id' clouds.yaml)" = exit 1 fi -if [ "$(yq -r '.clouds.openstack.auth.project_id' clouds.yaml)" == "null" ]; then +if [ "$(yq '.clouds.openstack.auth.project_id' clouds.yaml)" == "null" ]; then echo "Looking up project_id for clouds.yaml..." - APP_CRED_ID=$(yq -r '.clouds.openstack.auth.application_credential_id' clouds.yaml) - PROJECT_ID="$(openstack --os-cloud openstack application credential show "${APP_CRED_ID}" -c project_id -f value)" + APP_CRED_ID=$(yq '.clouds.openstack.auth.application_credential_id' clouds.yaml | tr -d '"') + PROJECT_ID=$(openstack --os-cloud openstack application credential show "${APP_CRED_ID}" -c project_id -f value) echo "Injecting project ID: '${PROJECT_ID}' into clouds.yaml..." - injected_id=$PROJECT_ID yq e '.clouds.openstack.auth.project_id = env(injected_id)' -i clouds.yaml + + # shellcheck disable=SC2016 + # needs to be single quotes for yq to work + yq -yi --arg injected_id "$PROJECT_ID" '.clouds.openstack.auth.project_id = $injected_id' clouds.yaml fi echo "Installing and starting microk8s..." diff --git a/dependencies.yaml b/dependencies.yaml index 1b033dd..9566ca1 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -1,4 +1,4 @@ # https://github.com/azimuth-cloud/capi-helm-charts -cluster-chart: "0.29.2" +cluster-chart: "0.29.3" # https://github.com/k-orc/openstack-resource-controller k-orc: "2.6.0" diff --git a/user-values.yaml b/user-values.yaml index 1417f4e..48a9247 100644 --- a/user-values.yaml +++ b/user-values.yaml @@ -25,9 +25,9 @@ controlPlane: # The Kubernetes version of the cluster # This should match the version of kubelet and kubeadm in the image # and will be automatically updated by us -kubernetesVersion: "1.36.4" +kubernetesVersion: "1.36.7" # The name of the image to use for cluster machines -machineImage: "capi-ubuntu-2204-kube-v1.36.4" +machineImage: "capi-ubuntu-2204-kube-v1.36.7" addons: # Monitoring sets up kube-prometheus-stack and loki-stack. @@ -35,10 +35,6 @@ addons: monitoring: enabled: false - # INGRESS IS DEPRECATED - Do NOT USE - ingress: - enabled: false - # Settings for node-level registry auth if using a private registry registryAuth: {} # registry-1.docker.io: