Skip to content
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

Azure AKS Platform tests #1092

Draft
wants to merge 2 commits into
base: main
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
12 changes: 11 additions & 1 deletion .github/workflows/platform-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
- name: Check for cluster config
id: check-cluster-config
run: |
if [ -f "charts/k8s-monitoring/tests/platform/${{ matrix.test }}/eks-cluster-config.yaml" ]; then
if [ -f "charts/k8s-monitoring/tests/platform/${{ matrix.test }}/aks-cluster-config.yaml" ]; then
echo "cluster-type=aks" >> "${GITHUB_OUTPUT}"
elif [ -f "charts/k8s-monitoring/tests/platform/${{ matrix.test }}/eks-cluster-config.yaml" ]; then
echo "cluster-type=eks" >> "${GITHUB_OUTPUT}"
elif [ -f "charts/k8s-monitoring/tests/platform/${{ matrix.test }}/gke-cluster-config.yaml" ]; then
echo "cluster-type=gke" >> "${GITHUB_OUTPUT}"
Expand All @@ -88,6 +90,14 @@
with:
install_only: true

- name: Setup Azure CLI
if: ${{ steps.check-cluster-config.outputs.cluster-type == 'aks' }}
run: ""

Check failure on line 95 in .github/workflows/platform-test.yml

View workflow job for this annotation

GitHub Actions / runner / actionlint

[actionlint] reported by reviewdog 🐶 string should not be empty [syntax-check] Raw Output: .github/workflows/platform-test.yml:95:14: string should not be empty [syntax-check]

- name: Configure Azure Credentials
if: ${{ steps.check-cluster-config.outputs.cluster-type == 'aks' }}
run: ""

Check failure on line 99 in .github/workflows/platform-test.yml

View workflow job for this annotation

GitHub Actions / runner / actionlint

[actionlint] reported by reviewdog 🐶 string should not be empty [syntax-check] Raw Output: .github/workflows/platform-test.yml:99:14: string should not be empty [syntax-check]

- name: Setup eksctl CLI
if: ${{ steps.check-cluster-config.outputs.cluster-type == 'eks' }}
run: |
Expand Down
10 changes: 10 additions & 0 deletions charts/k8s-monitoring/tests/platform/aks/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export AZURE_SUBSCRIPTION_ID=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/Azure/subscription id")
export AZURE_TENANT_ID=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/Azure/tenant id")
export AZURE_CLIENT_ID=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/Azure/client id")
export AZURE_DEFAULT_GROUP=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/Azure/resource group")
az config set defaults.group="$AZURE_DEFAULT_GROUP"

export GRAFANA_CLOUD_METRICS_USERNAME=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/helmchart Prometheus/username")
export GRAFANA_CLOUD_LOGS_USERNAME=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/helmchart Loki/username")
export GRAFANA_CLOUD_RW_POLICY_TOKEN=$(op --account grafana.1password.com read "op://Kubernetes Monitoring/helmchart Loki/password")
export RANDOM_NUMBER=$(shuf -i 100000-999999 -n 1)
2 changes: 2 additions & 0 deletions charts/k8s-monitoring/tests/platform/aks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deployments/grafana-cloud-credentials.yaml
deployments/test-variables.yaml
Loading
Loading