Skip to content

Cspl 3776 vcluster enablement #1532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
matrix:
test: [
basic,
appframeworksS1,
appframeworks1,
managersecret,
managermc,
]
Expand Down Expand Up @@ -146,10 +146,9 @@ jobs:
DEPLOYMENT_TYPE: ""
ARM64: "true"
GRAVITON_TESTING: "true"
TEST_CLUSTER_NAME: cspl-3760-vcluster-karpenter-test
TEST_VCLUSTER_NAME: al-smk-${{ matrix.test }}-${{ github.run_id }}
steps:
- name: Set Test Cluster Name
run: |
echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Chekcout code
uses: actions/checkout@v2
- name: Dotenv Action
Expand Down Expand Up @@ -183,7 +182,7 @@ jobs:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
DESIRED_VERSION=v3.8.2 bash get_helm.sh
DESIRED_VERSION=v3.18.3 bash get_helm.sh
- name: Install EKS CTL
run: |
curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand Down Expand Up @@ -214,11 +213,14 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Pull Splunk Enterprise Image
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
- name: Create EKS cluster
- name: Login to test cluster
run: |
export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
make cluster-up
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
- name: Install vCluster CLI
uses: loft-sh/setup-vcluster@main
- name: Create Virtual Cluster
run: vcluster create ${TEST_VCLUSTER_NAME}
- name: install metric server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Expand Down Expand Up @@ -250,7 +252,6 @@ jobs:
run: |
make cleanup
make clean
- name: Cleanup up EKS cluster
- name: Delete Virtual Cluster
if: ${{ always() }}
run: |
make cluster-down
run: vcluster delete ${TEST_VCLUSTER_NAME}
25 changes: 13 additions & 12 deletions .github/workflows/arm-AL2023-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
matrix:
test:
[
appframeworksS1,
appframeworks1,
managersecret,
managersmartstore,
managermc1,
Expand Down Expand Up @@ -94,10 +94,9 @@ jobs:
DEPLOYMENT_TYPE: ""
ARM64: "true"
GRAVITON_TESTING: "true"
TEST_CLUSTER_NAME: cspl-3760-vcluster-karpenter-test
TEST_VCLUSTER_NAME: al-int-${{ matrix.test }}-${{ github.run_id }}
steps:
- name: Set Test Cluster Name
run: |
echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set Test Cluster Nodes and Parallel Runs
run: >-
if grep -q "appframework" <<< "${{ matrix.test }}"; then
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
DESIRED_VERSION=v3.8.2 bash get_helm.sh
DESIRED_VERSION=v3.18.3 bash get_helm.sh
- name: Install EKS CTL
run: |
curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand All @@ -164,11 +163,14 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Pull Splunk Enterprise Image
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
- name: Create EKS cluster
- name: Login to test cluster
run: |
export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
make cluster-up
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
- name: Install vCluster CLI
uses: loft-sh/setup-vcluster@main
- name: Create Virtual Cluster
run: vcluster create ${TEST_VCLUSTER_NAME}
- name: install metric server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Expand Down Expand Up @@ -199,7 +201,6 @@ jobs:
run: |
make cleanup
make clean
- name: Cleanup up EKS cluster
- name: Delete Virtual Cluster
if: ${{ always() }}
run: |
make cluster-down
run: vcluster delete ${TEST_VCLUSTER_NAME}
25 changes: 13 additions & 12 deletions .github/workflows/arm-RHEL-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
matrix:
test:
[
appframeworksS1,
appframeworks1,
managersecret,
managersmartstore,
managermc1,
Expand Down Expand Up @@ -94,10 +94,9 @@ jobs:
DEPLOYMENT_TYPE: ""
ARM64: "true"
GRAVITON_TESTING: "true"
TEST_CLUSTER_NAME: cspl-3760-vcluster-karpenter-test
TEST_VCLUSTER_NAME: rh-smk-${{ matrix.test }}-${{ github.run_id }}
steps:
- name: Set Test Cluster Name
run: |
echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set Test Cluster Nodes and Parallel Runs
run: >-
if grep -q "appframework" <<< "${{ matrix.test }}"; then
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
DESIRED_VERSION=v3.8.2 bash get_helm.sh
DESIRED_VERSION=v3.18.3 bash get_helm.sh
- name: Install EKS CTL
run: |
curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand All @@ -164,11 +163,14 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Pull Splunk Enterprise Image
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
- name: Create EKS cluster
- name: Login to test cluster
run: |
export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
make cluster-up
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
- name: Install vCluster CLI
uses: loft-sh/setup-vcluster@main
- name: Create Virtual Cluster
run: vcluster create ${TEST_VCLUSTER_NAME}
- name: install metric server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Expand Down Expand Up @@ -199,7 +201,6 @@ jobs:
run: |
make cleanup
make clean
- name: Cleanup up EKS cluster
- name: Delete Virtual Cluster
if: ${{ always() }}
run: |
make cluster-down
run: vcluster delete ${TEST_VCLUSTER_NAME}
25 changes: 13 additions & 12 deletions .github/workflows/arm-RHEL-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
matrix:
test:
[
appframeworksS1,
appframeworks1,
managersecret,
managersmartstore,
managermc1,
Expand Down Expand Up @@ -94,10 +94,9 @@ jobs:
DEPLOYMENT_TYPE: ""
ARM64: "true"
GRAVITON_TESTING: "true"
TEST_CLUSTER_NAME: cspl-3760-vcluster-karpenter-test
TEST_VCLUSTER_NAME: rh-int-${{ matrix.test }}-${{ github.run_id }}
steps:
- name: Set Test Cluster Name
run: |
echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set Test Cluster Nodes and Parallel Runs
run: >-
if grep -q "appframework" <<< "${{ matrix.test }}"; then
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
DESIRED_VERSION=v3.8.2 bash get_helm.sh
DESIRED_VERSION=v3.18.3 bash get_helm.sh
- name: Install EKS CTL
run: |
curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand All @@ -164,11 +163,14 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Pull Splunk Enterprise Image
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
- name: Create EKS cluster
- name: Login to test cluster
run: |
export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
make cluster-up
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
- name: Install vCluster CLI
uses: loft-sh/setup-vcluster@main
- name: Create Virtual Cluster
run: vcluster create ${TEST_VCLUSTER_NAME}
- name: install metric server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Expand Down Expand Up @@ -199,7 +201,6 @@ jobs:
run: |
make cleanup
make clean
- name: Cleanup up EKS cluster
- name: Delete Virtual Cluster
if: ${{ always() }}
run: |
make cluster-down
run: vcluster delete ${TEST_VCLUSTER_NAME}
25 changes: 13 additions & 12 deletions .github/workflows/arm-Ubuntu-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
matrix:
test: [
basic,
appframeworksS1,
appframeworks1,
managersecret,
managermc,
]
Expand Down Expand Up @@ -146,10 +146,9 @@ jobs:
DEPLOYMENT_TYPE: ""
ARM64: "true"
GRAVITON_TESTING: "true"
TEST_CLUSTER_NAME: cspl-3760-vcluster-karpenter-test
TEST_VCLUSTER_NAME: ubnt-smk-${{ matrix.test }}-${{ github.run_id }}
steps:
- name: Set Test Cluster Name
run: |
echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Chekcout code
uses: actions/checkout@v2
- name: Dotenv Action
Expand Down Expand Up @@ -183,7 +182,7 @@ jobs:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
DESIRED_VERSION=v3.8.2 bash get_helm.sh
DESIRED_VERSION=v3.18.3 bash get_helm.sh
- name: Install EKS CTL
run: |
curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand Down Expand Up @@ -214,11 +213,14 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Pull Splunk Enterprise Image
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
- name: Create EKS cluster
- name: Login to test cluster
run: |
export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
make cluster-up
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
- name: Install vCluster CLI
uses: loft-sh/setup-vcluster@main
- name: Create Virtual Cluster
run: vcluster create ${TEST_VCLUSTER_NAME}
- name: install metric server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Expand Down Expand Up @@ -250,7 +252,6 @@ jobs:
run: |
make cleanup
make clean
- name: Cleanup up EKS cluster
- name: Delete Virtual Cluster
if: ${{ always() }}
run: |
make cluster-down
run: vcluster delete ${TEST_VCLUSTER_NAME}
25 changes: 13 additions & 12 deletions .github/workflows/arm-Ubuntu-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
matrix:
test:
[
appframeworksS1,
appframeworks1,
managersecret,
managersmartstore,
managermc1,
Expand Down Expand Up @@ -94,10 +94,9 @@ jobs:
DEPLOYMENT_TYPE: ""
ARM64: "true"
GRAVITON_TESTING: "true"
TEST_CLUSTER_NAME: cspl-3760-vcluster-karpenter-test
TEST_VCLUSTER_NAME: ubnt-int-${{ matrix.test }}-${{ github.run_id }}
steps:
- name: Set Test Cluster Name
run: |
echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set Test Cluster Nodes and Parallel Runs
run: >-
if grep -q "appframework" <<< "${{ matrix.test }}"; then
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
DESIRED_VERSION=v3.8.2 bash get_helm.sh
DESIRED_VERSION=v3.18.3 bash get_helm.sh
- name: Install EKS CTL
run: |
curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Expand All @@ -164,11 +163,14 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Pull Splunk Enterprise Image
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
- name: Create EKS cluster
- name: Login to test cluster
run: |
export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
make cluster-up
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
- name: Install vCluster CLI
uses: loft-sh/setup-vcluster@main
- name: Create Virtual Cluster
run: vcluster create ${TEST_VCLUSTER_NAME}
- name: install metric server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Expand Down Expand Up @@ -199,10 +201,9 @@ jobs:
run: |
make cleanup
make clean
- name: Cleanup up EKS cluster
- name: Delete Virtual Cluster
if: ${{ always() }}
run: |
make cluster-down
run: vcluster delete ${TEST_VCLUSTER_NAME}
#- name: Test Report
# uses: dorny/test-reporter@v1
# if: success() || failure() # run this step even if previous step failed
Expand Down
Loading
Loading