WIFI-13821 rework gh CGW deploy action-3

Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
Carsten Schafer
2024-09-19 08:37:36 -04:00
parent 21e78be3f0
commit 42f8553c4e

View File

@@ -112,7 +112,7 @@ jobs:
AWS_EKS_NAME: ${{ github.events.inputs.cluster }} AWS_EKS_NAME: ${{ github.events.inputs.cluster }}
AWS_DEFAULT_REGION: ${{ github.events.inputs.region }} AWS_DEFAULT_REGION: ${{ github.events.inputs.region }}
run: | run: |
aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} aws eks update-kubeconfig --name "$AWS_EKS_NAME"
- name: Install kubectl, helmfile and plugins - name: Install kubectl, helmfile and plugins
run: | run: |
@@ -143,10 +143,10 @@ jobs:
CONFIG_NAME: ${{ github.events.inputs.config_name }} CONFIG_NAME: ${{ github.events.inputs.config_name }}
NAMESPACE: ${{ github.events.inputs.namespace }} NAMESPACE: ${{ github.events.inputs.namespace }}
run: | run: |
helm ls -n ${{ env.NAMESPACE }} helm ls -n $NAMESPACE
echo "If already installed then it may not be possible to upgrade service components" echo "If already installed then it may not be possible to upgrade service components"
helmfile --environment ${{ env.CONFIG_NAME }} \ helmfile --environment $CONFIG_NAME \
--state-values-set "cgw.tag={{ env.IMG_TAG }}" \ --state-values-set "cgw.tag=$IMG_TAG" \
apply apply
- name: Deploy OpenLAN Cloud Gateway only - name: Deploy OpenLAN Cloud Gateway only
@@ -157,9 +157,9 @@ jobs:
CONFIG_NAME: ${{ github.events.inputs.config_name }} CONFIG_NAME: ${{ github.events.inputs.config_name }}
NAMESPACE: ${{ github.events.inputs.namespace }} NAMESPACE: ${{ github.events.inputs.namespace }}
run: | run: |
helm ls -n ${{ env.NAMESPACE }} helm ls -n $NAMESPACE
helmfile --environment ${{ env.CONFIG_NAME }} -l app=cgw \ helmfile --environment $CONFIG_NAME -l app=cgw \
--state-values-set "cgw.tag={{ env.IMG_TAG }}" \ --state-values-set "cgw.tag=$IMG_TAG" \
apply apply
- name: Show resource state on deployment failure - name: Show resource state on deployment failure
@@ -168,12 +168,12 @@ jobs:
NAMESPACE: ${{ github.events.inputs.namespace }} NAMESPACE: ${{ github.events.inputs.namespace }}
run: | run: |
echo "Deploy/STS:" echo "Deploy/STS:"
kubectl get deploy,sts --namespace {{ env.NAMESPACE }} -o wide kubectl get deploy,sts --namespace $NAMESPACE -o wide
echo "Pods:" echo "Pods:"
kubectl get pods --namespace {{ env.NAMESPACE }} -o wide kubectl get pods --namespace $NAMESPACE -o wide
echo "Pod Descriptions:" echo "Pod Descriptions:"
kubectl describe pods --namespace {{ env.NAMESPACE }} kubectl describe pods --namespace $NAMESPACE
echo "Services:" echo "Services:"
kubectl get services --namespace {{ env.NAMESPACE }} -o wide kubectl get services --namespace $NAMESPACE -o wide
echo "Service Descriptions:" echo "Service Descriptions:"
kubectl describe services --namespace {{ env.NAMESPACE }} kubectl describe services --namespace $NAMESPACE