Skip to content

Commit

Permalink
Merge branch 'main' into CONTP-379/wassim.dhif/admission_webhook_sett…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
wdhif authored Nov 12, 2024
2 parents 302a1d6 + 6db36e9 commit 96c2033
Show file tree
Hide file tree
Showing 65 changed files with 1,881 additions and 299 deletions.
2 changes: 1 addition & 1 deletion .github/helm-docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail

HELM_DOCS_VERSION="1.10.0"
HELM_DOCS_VERSION="1.14.2"
OS=$(uname)
ARCH=$(uname -m)

Expand Down
2 changes: 1 addition & 1 deletion .github/kubeconform.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail

KUBECONFORM_VERSION="v0.6.4"
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
Expand Down
62 changes: 44 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ on:
paths:
- "charts/**"

# Permission forced by repo-level setting; only elevate on job-level
permissions:
contents: read
# packages: read

jobs:
changed:
runs-on: ubuntu-latest
outputs:
charts: ${{ steps.list-changed.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
Expand All @@ -23,7 +28,7 @@ jobs:
with:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@v2.6.1
- name: Run chart-testing (list-changed)
id: list-changed
env:
Expand All @@ -47,14 +52,14 @@ jobs:
- changed
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@v2.6.1
- name: Run chart-testing (lint)
run: ct lint --config .github/ct.yaml

Expand All @@ -64,7 +69,7 @@ jobs:
- changed
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run helm-docs
Expand All @@ -87,10 +92,15 @@ jobs:
- v1.22.17
- v1.24.17
- v1.25.16
- v1.26.13
- v1.26.15
- v1.27.16
- v1.28.13
- v1.29.8
- v1.30.4
- v1.31.1
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add datadog helm repo
Expand All @@ -112,27 +122,43 @@ jobs:
- kubeconform-chart
strategy:
matrix:
k8s:
- v1.18.20
- v1.22.9
- v1.24.2
- v1.25.16
- v1.26.13
versions:
- k8s: v1.18.20
kind: v0.17.0
- k8s: v1.22.17
kind: v0.22.0
- k8s: v1.24.17
kind: v0.22.0
- k8s: v1.25.16
kind: v0.22.0
- k8s: v1.26.15
kind: v0.22.0
- k8s: v1.27.16
kind: v0.22.0
- k8s: v1.28.13
kind: v0.22.0
- k8s: v1.29.8
kind: v0.22.0
- k8s: v1.30.4
kind: v0.22.0
- k8s: v1.31.1
kind: v0.22.0
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create kind ${{ matrix.k8s }} cluster
uses: helm/kind-action@v1.5.0
- name: Create kind ${{ matrix.versions.k8s }} cluster with kind version ${{ matrix.versions.kind }}
uses: helm/kind-action@v1.10.0
with:
node_image: kindest/node:${{ matrix.k8s }}
version: ${{ matrix.versions.kind }}
node_image: kindest/node:${{ matrix.versions.k8s}}
config: .github/kind_config.yaml
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@v2.6.1
- name: Run chart-testing (install)
run: ct install --config .github/ct.yaml

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/go-test-private-action-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
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"
Expand Down
59 changes: 39 additions & 20 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
paths:
- 'test/datadog-operator/**'
- 'charts/datadog-operator/**'

# Permission forced by repo-level setting; only elevate on job-level
permissions:
contents: read
# packages: read

env:
GO111MODULE: "on"
PROJECTNAME: "helm-charts"
Expand All @@ -21,9 +27,9 @@ jobs:
go-version: 1.21
id: go
- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4.2.0
with:
version: v3.10.1
version: v3.14.0
- 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
Expand All @@ -39,27 +45,40 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
k8s:
- v1.16.15
- v1.18.20
- v1.22.9
- v1.24.2
- v1.25.2
- v1.26.6
- v1.27.3
- v1.28.7
- v1.29.2
- v1.30.0
versions:
- k8s: v1.16.15
kind: v0.15.0
- k8s: v1.18.20
kind: v0.17.0
- k8s: v1.22.17
kind: v0.22.0
- k8s: v1.24.17
kind: v0.22.0
- k8s: v1.25.16
kind: v0.22.0
- k8s: v1.26.15
kind: v0.22.0
- k8s: v1.27.16
kind: v0.22.0
- k8s: v1.28.13
kind: v0.22.0
- k8s: v1.29.8
kind: v0.22.0
- k8s: v1.30.4
kind: v0.22.0
- k8s: v1.31.1
kind: v0.22.0
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create kind ${{ matrix.k8s }} cluster
uses: helm/kind-action@v1.5.0
- name: Create K8s ${{ matrix.versions.k8s }} cluster with kind version ${{ matrix.versions.kind }}
uses: helm/kind-action@v1.10.0
with:
node_image: kindest/node:${{ matrix.k8s }}
cluster_name: operator-ci-${{ matrix.k8s }}
version: ${{ matrix.versions.kind }}
node_image: kindest/node:${{ matrix.versions.k8s }}
cluster_name: operator-ci-${{ matrix.versions.k8s }}
config: .github/kind_config.yaml
- name: Add Cert Manager Helm repo
run: helm repo add jetstack https://charts.jetstack.io && helm repo update
Expand All @@ -69,8 +88,8 @@ jobs:
env:
API_KEY: ${{ secrets.GO_INTEG_TEST_API_KEY }}
APP_KEY: ${{ secrets.GO_INTEG_TEST_APP_KEY }}
CLUSTER_NAME: operator-ci-${{ matrix.k8s }}
K8S_VERSION: ${{ matrix.k8s }}
CLUSTER_NAME: operator-ci-${{ matrix.versions.k8s }}
K8S_VERSION: ${{ matrix.versions.k8s }}
run: |
kubectl cluster-info
kubectl get nodes
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pr-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ on:
branches:
- main

# Permission forced by repo-level setting; only elevate on job-level
permissions:
contents: read
# packages: read

jobs:
label:
name: Add label for PRs
runs-on: ubuntu-latest
permissions:
pull-requests: write
timeout-minutes: 5
steps:
- uses: actions/labeler@v5
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
paths:
- 'charts/**'

permissions: {}

jobs:
release:
runs-on: ubuntu-latest
permissions:
# https://github.com/helm/chart-releaser-action
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions charts/datadog-crds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 2.2.0

* Update CRDs from Datadog Operator v1.10.0 tag.

## 2.1.0

* Update CRDs from Datadog Operator v1.9.0 tag.
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: datadog-crds
description: Datadog Kubernetes CRDs chart
version: 2.1.0
version: 2.2.0
appVersion: "1"
keywords:
- monitoring
Expand Down
2 changes: 1 addition & 1 deletion charts/datadog-crds/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog CRDs

![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![AppVersion: 1](https://img.shields.io/badge/AppVersion-1-informational?style=flat-square)
![Version: 2.2.0](https://img.shields.io/badge/Version-2.2.0-informational?style=flat-square) ![AppVersion: 1](https://img.shields.io/badge/AppVersion-1-informational?style=flat-square)

This chart was designed to allow other "datadog" charts to share `CustomResourceDefinitions` such as the `DatadogMetric`.

Expand Down
Loading

0 comments on commit 96c2033

Please sign in to comment.