-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fanny/autopilot-cont-res
- Loading branch information
Showing
193 changed files
with
28,901 additions
and
40,414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
--- | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
- role: worker | ||
- role: worker | ||
- role: control-plane | ||
labels: | ||
disktype: ssd | ||
- role: worker | ||
labels: | ||
disktype: ssd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
KUBECONFORM_VERSION="v0.6.7" | ||
# https://github.com/yannh/kubeconform/issues/51 | ||
CRD_SPEC_URL="https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/v3/apis__apiextensions.k8s.io__v1_openapi.json" | ||
# Remove after v1.16 support / testing is dropped | ||
LEGACY_SCHEMA_URL="https://github.com/instrumenta/kubernetes-json-schema" | ||
OS=$(uname) | ||
|
||
CHANGED_CHARTS=${CHANGED_CHARTS:-${1:-}} | ||
if [ -n "$CHANGED_CHARTS" ]; | ||
then | ||
CHART_DIRS=$CHANGED_CHARTS | ||
else | ||
CHART_DIRS=$(ls -d charts/*) | ||
fi | ||
|
||
# install kubeconform | ||
curl --silent --show-error --fail --location --output /tmp/kubeconform.tar.gz "https://github.com/yannh/kubeconform/releases/download/${KUBECONFORM_VERSION}/kubeconform-${OS}-amd64.tar.gz" | ||
tar -xf /tmp/kubeconform.tar.gz kubeconform | ||
|
||
# validate charts | ||
for CHART_DIR in ${CHART_DIRS}; do | ||
echo "Running kubeconform for folder: '$CHART_DIR'" | ||
|
||
# Note: -ignore-missing-schemas could be added if needed, but not currently | ||
# needed since we have the schema necessary to validate the CRDs themselves. | ||
# | ||
# Also, if at some point we needed to validate things _using_ these CRDs, | ||
# they're available via | ||
# https://github.com/datreeio/CRDs-catalog/tree/main/datadoghq.com | ||
helm dep up "${CHART_DIR}" && helm template --kube-version "${KUBERNETES_VERSION#v}" \ | ||
--values "${CHART_DIR}/ci/kubeconform-values.yaml" "${CHART_DIR}" \ | ||
| ./kubeconform -strict -schema-location default -schema-location "$CRD_SPEC_URL" \ | ||
-schema-location $LEGACY_SCHEMA_URL -output pretty \ | ||
-verbose -kubernetes-version "${KUBERNETES_VERSION#v}" - | ||
done |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Go Test Private Action Runner | ||
on: | ||
push: | ||
paths: | ||
- 'test/private-action-runner/**' | ||
- 'charts/private-action-runner/**' | ||
pull_request: | ||
paths: | ||
- 'test/private-action-runner/**' | ||
- 'charts/private-action-runner/**' | ||
|
||
# Permission forced by repo-level setting; only elevate on job-level | ||
permissions: | ||
contents: read | ||
# packages: read | ||
|
||
env: | ||
GO111MODULE: "on" | ||
PROJECTNAME: "helm-charts" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.21 | ||
id: go | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v3.5 | ||
with: | ||
version: v3.10.1 | ||
- name: Add Datadog Helm repo | ||
run: helm repo add datadog https://helm.datadoghq.com && helm repo update | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
- name: run Go tests | ||
run: | | ||
helm dependency build ./charts/private-action-runner | ||
make unit-test-private-action-runner |
Oops, something went wrong.