From 14548598e63385597b409be6d475bab02b153d01 Mon Sep 17 00:00:00 2001 From: CrowleyRajapakse Date: Fri, 4 Oct 2024 12:04:14 +0530 Subject: [PATCH] adding agent related int test workflow changes --- .github/workflows/agent-integration-test.yml | 2 +- .../agent-helm-chart/Chart.yaml | 2 +- .../agent-helm-chart/templates/NOTES.txt | 25 +++++++++++++++++++ .../serviceAccount/agent-cluster-role.yaml | 18 ++++++------- .../agent-helm-chart/values.yaml | 2 +- 5 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 test/apim-apk-agent-test/agent-helm-chart/templates/NOTES.txt diff --git a/.github/workflows/agent-integration-test.yml b/.github/workflows/agent-integration-test.yml index 4a3c22c97e..56bd6e7455 100644 --- a/.github/workflows/agent-integration-test.yml +++ b/.github/workflows/agent-integration-test.yml @@ -58,7 +58,7 @@ jobs: run: | helm repo add wso2apim https://github.com/wso2/helm-apim/releases/download/cp-4.3.0 helm repo update - helm install apim wso2apim/wso2am-cp --version 4.3.0 -f https://raw.githubusercontent.com/wso2/apk/main/helm-charts/samples/apim/cp/values.yaml -n apk --debug --wait --timeout 5m0s + helm install apim wso2apim/wso2am-cp --version 4.3.0 -f https://raw.githubusercontent.com/wso2/apk/main/helm-charts/samples/apim/cp/4.4.0-values.yaml -n apk --debug --wait --timeout 5m0s kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/cloud/deploy.yaml kubectl get pods -n apk kubectl get svc -n apk diff --git a/test/apim-apk-agent-test/agent-helm-chart/Chart.yaml b/test/apim-apk-agent-test/agent-helm-chart/Chart.yaml index 062c7f1c77..d36c49fe8e 100644 --- a/test/apim-apk-agent-test/agent-helm-chart/Chart.yaml +++ b/test/apim-apk-agent-test/agent-helm-chart/Chart.yaml @@ -18,7 +18,7 @@ apiVersion: v2 name: apim-apk-agent description: A Helm chart for deploying apim-apk-agent type: application -version: 1.1.0 +version: 1.2.0-alpha appVersion: "1.16.0" dependencies: - name: cert-manager diff --git a/test/apim-apk-agent-test/agent-helm-chart/templates/NOTES.txt b/test/apim-apk-agent-test/agent-helm-chart/templates/NOTES.txt new file mode 100644 index 0000000000..83bc802518 --- /dev/null +++ b/test/apim-apk-agent-test/agent-helm-chart/templates/NOTES.txt @@ -0,0 +1,25 @@ +Welcome to the WSO2 API Platform for Kubernetes APIM APK Agent! + +Congratulations. You've successfully deployed WSO2 APIM APK Agent using Helm, you'll need to monitor and manage the deployment to ensure everything is running smoothly. + + - Monitor Pods: + Check the status of the pods to ensure they are up and running: + --- + kubectl get pods + --- + + - Monitor Services: + Verify that the services are running and find their external IPs to access the APIs: + --- + kubectl get services + --- + +For more detailed information, troubleshooting, and advanced configurations, we encourage you to explore the official WSO2 documentation. + +- APK Documentation: [https://apk.docs.wso2.com/en/latest/get-started/quick-start-guide/] + +This is just the beginning of your APK journey. Feel free to customize and tailor your deployment to match your organization's specific needs. + +For any questions or assistance, don't hesitate to reach out to our discord channel. + +Happy API management with WSO2 APK! diff --git a/test/apim-apk-agent-test/agent-helm-chart/templates/serviceAccount/agent-cluster-role.yaml b/test/apim-apk-agent-test/agent-helm-chart/templates/serviceAccount/agent-cluster-role.yaml index 44fdf04818..5f11b5e61d 100644 --- a/test/apim-apk-agent-test/agent-helm-chart/templates/serviceAccount/agent-cluster-role.yaml +++ b/test/apim-apk-agent-test/agent-helm-chart/templates/serviceAccount/agent-cluster-role.yaml @@ -122,15 +122,15 @@ rules: - apiGroups: ["dp.wso2.com"] resources: ["gqlroutes/status"] verbs: ["get","patch","update"] - - apiGroups: ["dp.wso2.com"] - resources: ["aiproviders"] - verbs: ["get","list","watch","update","delete","create"] - - apiGroups: ["dp.wso2.com"] - resources: ["aiproviders/finalizers"] - verbs: ["update"] - - apiGroups: ["dp.wso2.com"] - resources: ["aiproviders/status"] - verbs: ["get","patch","update"] + - apiGroups: [ "dp.wso2.com" ] + resources: [ "aiproviders" ] + verbs: [ "get","list","watch","update","delete","create" ] + - apiGroups: [ "dp.wso2.com" ] + resources: [ "aiproviders/status" ] + verbs: [ "get","patch","update" ] + - apiGroups: [ "dp.wso2.com" ] + resources: [ "aiproviders/finalizers" ] + verbs: [ "update" ] - apiGroups: ["dp.wso2.com"] resources: ["airatelimitpolicies"] verbs: ["get","list","watch","update","delete","create"] diff --git a/test/apim-apk-agent-test/agent-helm-chart/values.yaml b/test/apim-apk-agent-test/agent-helm-chart/values.yaml index 5755d22320..562cfb73db 100644 --- a/test/apim-apk-agent-test/agent-helm-chart/values.yaml +++ b/test/apim-apk-agent-test/agent-helm-chart/values.yaml @@ -17,7 +17,7 @@ replicaCount: 1 image: repository: wso2/apim-apk-agent - tag: latest + tag: 1.2.0-alpha pullPolicy: Always service: name: apim-apk-agent-service