mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 04:18:15 +00:00
WIFI-13821 rework gh CGW deploy action-4
Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
38
.github/workflows/cgw-dev-deployment.yaml
vendored
38
.github/workflows/cgw-dev-deployment.yaml
vendored
@@ -108,11 +108,9 @@ jobs:
|
|||||||
ref: ${{ env.VERSION }}
|
ref: ${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Fetch kubeconfig
|
- name: Fetch kubeconfig
|
||||||
env:
|
|
||||||
AWS_EKS_NAME: ${{ github.events.inputs.cluster }}
|
|
||||||
AWS_DEFAULT_REGION: ${{ github.events.inputs.region }}
|
|
||||||
run: |
|
run: |
|
||||||
aws eks update-kubeconfig --name "$AWS_EKS_NAME"
|
export AWS_DEFAULT_REGION=${{ github.events.inputs.region }}
|
||||||
|
aws eks update-kubeconfig --name ${{ github.events.inputs.cluster }}
|
||||||
|
|
||||||
- name: Install kubectl, helmfile and plugins
|
- name: Install kubectl, helmfile and plugins
|
||||||
run: |
|
run: |
|
||||||
@@ -138,42 +136,32 @@ jobs:
|
|||||||
- name: Deploy OpenLAN Cloud Gateway and services
|
- name: Deploy OpenLAN Cloud Gateway and services
|
||||||
if: ${{ github.event.inputs.upgrade }} == "false"
|
if: ${{ github.event.inputs.upgrade }} == "false"
|
||||||
working-directory: wlan-cloud-ucentral-deploy/cgw
|
working-directory: wlan-cloud-ucentral-deploy/cgw
|
||||||
env:
|
|
||||||
IMG_TAG: ${{ github.events.inputs.cgw_image }}
|
|
||||||
CONFIG_NAME: ${{ github.events.inputs.config_name }}
|
|
||||||
NAMESPACE: ${{ github.events.inputs.namespace }}
|
|
||||||
run: |
|
run: |
|
||||||
helm ls -n $NAMESPACE
|
helm ls -n ${{ github.events.inputs.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 $CONFIG_NAME \
|
helmfile --environment ${{ github.events.inputs.config_name }} \
|
||||||
--state-values-set "cgw.tag=$IMG_TAG" \
|
--state-values-set "cgw.tag=${{ github.events.inputs.cgw_image }}" \
|
||||||
apply
|
apply
|
||||||
|
|
||||||
- name: Deploy OpenLAN Cloud Gateway only
|
- name: Deploy OpenLAN Cloud Gateway only
|
||||||
if: ${{ github.event.inputs.upgrade }} == "true"
|
if: ${{ github.event.inputs.upgrade }} == "true"
|
||||||
working-directory: wlan-cloud-ucentral-deploy/cgw
|
working-directory: wlan-cloud-ucentral-deploy/cgw
|
||||||
env:
|
|
||||||
IMG_TAG: ${{ github.events.inputs.cgw_image }}
|
|
||||||
CONFIG_NAME: ${{ github.events.inputs.config_name }}
|
|
||||||
NAMESPACE: ${{ github.events.inputs.namespace }}
|
|
||||||
run: |
|
run: |
|
||||||
helm ls -n $NAMESPACE
|
helm ls -n {{ github.events.inputs.namespace }}
|
||||||
helmfile --environment $CONFIG_NAME -l app=cgw \
|
helmfile --environment ${{ github.events.inputs.config_name }} -l app=cgw \
|
||||||
--state-values-set "cgw.tag=$IMG_TAG" \
|
--state-values-set "cgw.tag=${{ github.events.inputs.cgw_image }}" \
|
||||||
apply
|
apply
|
||||||
|
|
||||||
- name: Show resource state on deployment failure
|
- name: Show resource state on deployment failure
|
||||||
if: failure()
|
if: failure()
|
||||||
env:
|
|
||||||
NAMESPACE: ${{ github.events.inputs.namespace }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "Deploy/STS:"
|
echo "Deploy/STS:"
|
||||||
kubectl get deploy,sts --namespace $NAMESPACE -o wide
|
kubectl get deploy,sts --namespace {{ github.events.inputs.namespace }} -o wide
|
||||||
echo "Pods:"
|
echo "Pods:"
|
||||||
kubectl get pods --namespace $NAMESPACE -o wide
|
kubectl get pods --namespace {{ github.events.inputs.namespace }} -o wide
|
||||||
echo "Pod Descriptions:"
|
echo "Pod Descriptions:"
|
||||||
kubectl describe pods --namespace $NAMESPACE
|
kubectl describe pods --namespace {{ github.events.inputs.namespace }}
|
||||||
echo "Services:"
|
echo "Services:"
|
||||||
kubectl get services --namespace $NAMESPACE -o wide
|
kubectl get services --namespace {{ github.events.inputs.namespace }} -o wide
|
||||||
echo "Service Descriptions:"
|
echo "Service Descriptions:"
|
||||||
kubectl describe services --namespace $NAMESPACE
|
kubectl describe services --namespace {{ github.events.inputs.namespace }}
|
||||||
|
|||||||
Reference in New Issue
Block a user