Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
Expand All @@ -38,8 +38,8 @@ jobs:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
Expand All @@ -61,7 +61,7 @@ jobs:
DATADOG_API_KEY: ${{ steps.dd-sts.outputs.api_key }}
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: report-test.xml
path: report-test.xml
Expand All @@ -73,11 +73,11 @@ jobs:
matrix:
target: [injector, manager, handler]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Build ${{ matrix.target }}
run: make docker-build-${{ matrix.target }} SKIP_GENERATE=true
- name: Upload tarball
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: docker-${{ matrix.target }}
path: bin/${{ matrix.target }}/${{ matrix.target }}.tar.gz
Expand All @@ -91,8 +91,8 @@ jobs:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Install tools
run: make -j6 install-controller-gen install-yamlfmt install-helm install-kubebuilder install-datadog-ci
- name: Download docker tarballs
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: docker-*
merge-multiple: false
Expand Down Expand Up @@ -140,22 +140,22 @@ jobs:
minikube kubectl -- -n chaos-engineering logs -lapp=chaos-controller -c manager --tail=-1 > /tmp/logs/e2e.txt 2>&1 || true
- name: Upload controller logs
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: e2e-controller-logs
path: /tmp/logs
- name: Upload e2e test report
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: report-e2e-test.xml
path: report-e2e-test.xml

validate-codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
python-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install Python dependencies
run: pip install -r tasks/requirements.txt
- name: Check third-party licenses
Expand All @@ -200,7 +200,7 @@ jobs:
doc-spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install markdown-spellcheck
run: npm install -g markdown-spellcheck
- name: Spellcheck
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '>=1.22.5'
go-version-file: go.mod
- name: Install Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
with:
version: v3.6.3
version: v3.19.0
- name: Generate install manifest
run: >
helm template ./chart/
--set global.oci.registry=datadog --set global.chaos.defaultImage.tag=${GITHUB_REF_NAME}
> ./chart/install.yaml
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
distribution: goreleaser
version: "~> v2"
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ before:
builds:
- id: controller
binary: manager
main: ./cmd
goos:
- linux
goarch:
Expand Down
2 changes: 1 addition & 1 deletion .local.mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ packages:
github.com/DataDog/chaos-controller/cloudservice/types: {}
github.com/DataDog/chaos-controller/command: {}
github.com/DataDog/chaos-controller/container: {}
github.com/DataDog/chaos-controller/controllers: {}
github.com/DataDog/chaos-controller/internal/controller: {}
github.com/DataDog/chaos-controller/cpuset: {}
github.com/DataDog/chaos-controller/disk: {}
github.com/DataDog/chaos-controller/dogfood/chaosdogfood: {}
Expand Down
2 changes: 2 additions & 0 deletions .vendor.mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ packages:
Manager:
config:
mockname: ManagerMock
replace-type:
- k8s.io/client-go/tools/internal/events=k8s.io/client-go/tools/events
k8s.io/client-go/tools/record:
interfaces:
EventRecorder:
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ CRDs are defined in `api/v1beta1/` with kubebuilder markers. After modifying typ

## Requirements

- Kubernetes >= 1.16 (not 1.20.0-1.20.4)
- Kubernetes >= 1.22
- Go 1.25.6
- Docker with buildx (multi-arch: amd64, arm64)
20 changes: 13 additions & 7 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ k8s.io/api,k8s.io/api/scheduling/v1beta1,Apache-2.0
k8s.io/api,k8s.io/api/storage/v1,Apache-2.0
k8s.io/api,k8s.io/api/storage/v1alpha1,Apache-2.0
k8s.io/api,k8s.io/api/storage/v1beta1,Apache-2.0
k8s.io/api,k8s.io/api/storagemigration/v1alpha1,Apache-2.0
k8s.io/api,k8s.io/api/storagemigration/v1beta1,Apache-2.0
k8s.io/apiextensions-apiserver,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions,Apache-2.0
k8s.io/apiextensions-apiserver,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/api/equality,Apache-2.0
Expand All @@ -911,6 +911,7 @@ k8s.io/apimachinery,k8s.io/apimachinery/pkg/api/validate/content,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/api/validation,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/apis/meta/internalversion,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/apis/meta/internalversion/scheme,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/apis/meta/internalversion/validation,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/apis/meta/v1,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/apis/meta/v1/unstructured,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/apis/meta/v1/validation,Apache-2.0
Expand Down Expand Up @@ -952,6 +953,7 @@ k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/strategicpatch,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/uuid,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/validation,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/validation/field,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/version,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/wait,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/util/yaml,Apache-2.0
k8s.io/apimachinery,k8s.io/apimachinery/pkg/version,Apache-2.0
Expand Down Expand Up @@ -1012,7 +1014,7 @@ k8s.io/client-go,k8s.io/client-go/applyconfigurations/scheduling/v1beta1,Apache-
k8s.io/client-go,k8s.io/client-go/applyconfigurations/storage/v1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/applyconfigurations/storage/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/applyconfigurations/storage/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/applyconfigurations/storagemigration/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/applyconfigurations/storagemigration/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/discovery,Apache-2.0
k8s.io/client-go,k8s.io/client-go/discovery/fake,Apache-2.0
k8s.io/client-go,k8s.io/client-go/dynamic,Apache-2.0
Expand Down Expand Up @@ -1089,7 +1091,7 @@ k8s.io/client-go,k8s.io/client-go/informers/storage/v1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/informers/storage/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/informers/storage/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/informers/storagemigration,Apache-2.0
k8s.io/client-go,k8s.io/client-go/informers/storagemigration/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/informers/storagemigration/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/fake,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/scheme,Apache-2.0
Expand Down Expand Up @@ -1201,8 +1203,8 @@ k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storage/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storage/v1alpha1/fake,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storage/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storagemigration/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storagemigration/v1alpha1/fake,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storagemigration/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/kubernetes/typed/storagemigration/v1beta1/fake,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/admissionregistration/v1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/admissionregistration/v1alpha1,Apache-2.0
Expand Down Expand Up @@ -1253,7 +1255,7 @@ k8s.io/client-go,k8s.io/client-go/listers/scheduling/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/storage/v1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/storage/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/storage/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/storagemigration/v1alpha1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/listers/storagemigration/v1beta1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/metadata,Apache-2.0
k8s.io/client-go,k8s.io/client-go/openapi,Apache-2.0
k8s.io/client-go,k8s.io/client-go/pkg/apis/clientauthentication,Apache-2.0
Expand All @@ -1276,6 +1278,7 @@ k8s.io/client-go,k8s.io/client-go/tools/clientcmd,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/clientcmd/api,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/clientcmd/api/latest,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/clientcmd/api/v1,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/events,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/internal/events,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/leaderelection,Apache-2.0
k8s.io/client-go,k8s.io/client-go/tools/leaderelection/resourcelock,Apache-2.0
Expand All @@ -1293,6 +1296,7 @@ k8s.io/client-go,k8s.io/client-go/util/flowcontrol,Apache-2.0
k8s.io/client-go,k8s.io/client-go/util/homedir,Apache-2.0
k8s.io/client-go,k8s.io/client-go/util/jsonpath,Apache-2.0
k8s.io/client-go,k8s.io/client-go/util/keyutil,Apache-2.0
k8s.io/client-go,k8s.io/client-go/util/watchlist,Apache-2.0
k8s.io/client-go,k8s.io/client-go/util/workqueue,Apache-2.0
k8s.io/klog/v2,k8s.io/klog/v2,Apache-2.0
k8s.io/klog/v2,k8s.io/klog/v2/internal/buffer,Apache-2.0
Expand All @@ -1308,6 +1312,7 @@ k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/internal,Apache-2.0
k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json,Apache-2.0
k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/schemaconv,Apache-2.0
k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/spec3,Apache-2.0
k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/util,Apache-2.0
k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/util/proto,Apache-2.0
k8s.io/kube-openapi,k8s.io/kube-openapi/pkg/validation/spec,Apache-2.0
k8s.io/utils,k8s.io/utils/buffer,Apache-2.0
Expand All @@ -1316,7 +1321,6 @@ k8s.io/utils,k8s.io/utils/internal/third_party/forked/golang/golang-lru,Apache-2
k8s.io/utils,k8s.io/utils/internal/third_party/forked/golang/net,Apache-2.0
k8s.io/utils,k8s.io/utils/lru,Apache-2.0
k8s.io/utils,k8s.io/utils/net,Apache-2.0
k8s.io/utils,k8s.io/utils/pointer,Apache-2.0
k8s.io/utils,k8s.io/utils/ptr,Apache-2.0
k8s.io/utils,k8s.io/utils/trace,Apache-2.0
sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime,Apache-2.0
Expand Down Expand Up @@ -1364,6 +1368,7 @@ sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime/pkg/webhook,Apache
sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime/pkg/webhook/admission,Apache-2.0
sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime/pkg/webhook/admission/metrics,Apache-2.0
sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime/pkg/webhook/conversion,Apache-2.0
sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime/pkg/webhook/conversion/metrics,Apache-2.0
sigs.k8s.io/controller-runtime,sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics,Apache-2.0
sigs.k8s.io/json,sigs.k8s.io/json,Apache-2.0
sigs.k8s.io/json,sigs.k8s.io/json/internal/golang/encoding/json,Apache-2.0
Expand All @@ -1375,3 +1380,4 @@ sigs.k8s.io/structured-merge-diff/v6,sigs.k8s.io/structured-merge-diff/v6/schema
sigs.k8s.io/structured-merge-diff/v6,sigs.k8s.io/structured-merge-diff/v6/typed,Apache-2.0
sigs.k8s.io/structured-merge-diff/v6,sigs.k8s.io/structured-merge-diff/v6/value,Apache-2.0
sigs.k8s.io/yaml,sigs.k8s.io/yaml,Apache-2.0
sigs.k8s.io/yaml,sigs.k8s.io/yaml/kyaml,Apache-2.0
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ E2E_TEST_CLUSTER_NAME ?= lima-$(LIMA_INSTANCE)
E2E_TEST_KUBECTL_CONTEXT ?= lima

KUBECTL ?= limactl shell $(LIMA_INSTANCE) sudo kubectl
PROTOC_VERSION = 3.17.3
PROTOC_VERSION = 33.4
PROTOC_OS ?= osx
PROTOC_ZIP = protoc-${PROTOC_VERSION}-${PROTOC_OS}-x86_64.zip
# you might also want to change ~/lima.yaml k3s version
KUBERNETES_MAJOR_VERSION ?= 1.28
KUBERNETES_VERSION ?= v$(KUBERNETES_MAJOR_VERSION).0
KUBERNETES_MAJOR_VERSION ?= 1.35
KUBERNETES_VERSION ?= v$(KUBERNETES_MAJOR_VERSION).1
USE_VOLUMES ?= false

HELM_VALUES ?= dev.yaml
Expand All @@ -68,7 +68,7 @@ HELM_INSTALLED_VERSION = $(shell (helm version --template="{{ .Version }}" || ec
GOLANGCI_LINT_VERSION = 2.8.0
GOLANGCI_LINT_INSTALLED_VERSION = $(shell (golangci-lint --version || echo "") | sed -E 's/.*version ([^ ]+).*/\1/')

CONTROLLER_GEN_VERSION = v0.19.0
CONTROLLER_GEN_VERSION = v0.20.1
CONTROLLER_GEN_INSTALLED_VERSION = $(shell (controller-gen --version || echo "") | awk '{ print $$2 }')

MOCKERY_VERSION = 2.53.5
Expand Down Expand Up @@ -194,7 +194,7 @@ endif
test: generate manifests
$(if $(GOPATH),,$(error GOPATH is not set. Please set GOPATH before running make test))
$(MAKE) _ginkgo_test GO_TEST_REPORT_NAME=$@ \
GINKGO_TEST_ARGS="-r --skip-package=controllers --randomize-suites --timeout=10m $(TEST_ARGS)"
GINKGO_TEST_ARGS="-r --skip-package=internal/controller --randomize-suites --timeout=10m $(TEST_ARGS)"

spellcheck-deps:
ifeq (, $(shell which npm))
Expand Down Expand Up @@ -244,7 +244,7 @@ ifneq (true,$(SKIP_DEPLOY)) # we can only wait for a controller if it exists, lo
$(MAKE) lima-install HELM_VALUES=ci.yaml
endif
E2E_TEST_CLUSTER_NAME=$(E2E_TEST_CLUSTER_NAME) E2E_TEST_KUBECTL_CONTEXT=$(E2E_TEST_KUBECTL_CONTEXT) $(MAKE) _ginkgo_test GO_TEST_REPORT_NAME=$@ \
GINKGO_TEST_ARGS="--flake-attempts=3 --timeout=25m controllers"
GINKGO_TEST_ARGS="--flake-attempts=3 --timeout=25m internal/controller"

# Test chaosli API portability
chaosli-test:
Expand Down Expand Up @@ -286,7 +286,7 @@ lima-redeploy: lima-push-all lima-install lima-restart

## Install cert-manager chart
lima-install-cert-manager:
$(KUBECTL) apply -f https://github.com/jetstack/cert-manager/releases/download/v1.9.1/cert-manager.yaml
$(KUBECTL) apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.19.3/cert-manager.yaml
$(KUBECTL) -n cert-manager rollout status deployment/cert-manager-webhook --timeout=180s

lima-install-demo:
Expand Down Expand Up @@ -352,7 +352,7 @@ lima-start: lima-kubectx-clean
# unnamed devices are linked to 0 as a major device identifier, that blkio does not support
# https://super-unix.com/unixlinux/can-you-throttle-the-bandwidth-to-a-tmpfs-based-ramdisk/
lima-install-longhorn:
$(KUBECTL) apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.4.0/deploy/longhorn.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.11.0/deploy/longhorn.yaml

# CI-specific actions

Expand Down Expand Up @@ -386,14 +386,14 @@ deps: godeps license

generate-disruptionlistener-protobuf:
cd grpc/disruptionlistener && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0 && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.6.1 && \
protoc --proto_path=. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative disruptionlistener.proto

generate-chaosdogfood-protobuf:
cd dogfood/chaosdogfood && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0 && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.6.1 && \
protoc --proto_path=. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative chaosdogfood.proto

clean-mocks:
Expand Down Expand Up @@ -495,7 +495,7 @@ endif
install-yamlfmt:
ifeq (,$(wildcard $(GOBIN)/yamlfmt))
$(info installing yamlfmt...)
curl -sSLo /tmp/yamlfmt.tar.gz https://github.com/google/yamlfmt/releases/download/v0.9.0/yamlfmt_0.9.0_$(GOOS)_$(YAMLFMT_ARCH).tar.gz
curl -sSLo /tmp/yamlfmt.tar.gz https://github.com/google/yamlfmt/releases/download/v0.21.0/yamlfmt_0.21.0_$(GOOS)_$(YAMLFMT_ARCH).tar.gz
tar -xvzf /tmp/yamlfmt.tar.gz --directory=$(GOBIN) yamlfmt
rm /tmp/yamlfmt.tar.gz
endif
Expand Down
2 changes: 1 addition & 1 deletion PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ domain: datadoghq.com
repo: github.com/DataDog/chaos-controller
projectName: chaos-controller
layout:
- go.kubebuilder.io/v3
- go.kubebuilder.io/v4
resources:
- api:
crdVersion: v1beta1
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
**Oldest Kubernetes version supported: 1.16**

> :warning: **Kubernetes version 1.20.x is not supported!** _This [Kubernetes issue](https://github.com/kubernetes/kubernetes/issues/97288) prevents the controller from running properly on Kubernetes 1.20.0-1.20.4. Earlier versions of Kubernetes as well as 1.20.5 and later are still supported._
**Oldest Kubernetes version supported: 1.22**

# Datadog Chaos Controller

Expand Down
Loading