Skip to content

🔄 CI | Nightly Config Drift #2

🔄 CI | Nightly Config Drift

🔄 CI | Nightly Config Drift #2

name: 🔄 CI | Nightly Config Drift
on:
schedule:
# Scheduled to run in the morning (PT) on every day-of-week from Monday through Friday.
- cron: '0 15 * * 1-5'
jobs:
k8s-config-drift:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
- name: Setup local kind cluster
uses: helm/kind-action@v1
with:
version: v0.21.0
cluster_name: "config-drift"
wait: 60s
- name: Install nr-k8s-otel-collector chart
run: |
helm repo add newrelic https://newrelic.github.io/helm-charts
helm install test newrelic/nr-k8s-otel-collector -n default \
--set cluster=config-drift --set licenseKey=PLACEHOLDER \
--create-namespace --dependency-update
kubectl get configmaps -n default test-nr-k8s-otel-collector-daemonset-config \
-o "jsonpath={.data['daemonset-config\.yaml']}" | yq .
kubectl get configmaps -n default test-nr-k8s-otel-collector-deployment-config \
-o "jsonpath={.data['deployment-config\.yaml']}" | yq .