Skip to content

Commit

Permalink
Revert "Merge branch 'main' into v0.8"
Browse files Browse the repository at this point in the history
This reverts commit 713fef0, reversing
changes made to fb19a0e.
  • Loading branch information
khewonc committed May 31, 2022
1 parent 713fef0 commit ea961db
Show file tree
Hide file tree
Showing 173 changed files with 15,355 additions and 48,361 deletions.
6 changes: 3 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# and another the rest of the directory.

# All your base
* @DataDog/container-integrations @DataDog/container-ecosystems
* @DataDog/container-integrations

# Documentation
README.md @DataDog/documentation @DataDog/container-integrations @DataDog/container-ecosystems
/docs/ @DataDog/documentation @DataDog/container-integrations @DataDog/container-ecosystems
README.md @DataDog/documentation @DataDog/container-integrations
/docs/ @DataDog/documentation @DataDog/container-integrations
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: registry.ddbuild.io/images/mirror/golang:1.17.6-bullseye
image: registry.ddbuild.io/images/mirror/golang:1.17
variables:
GO111MODULE: "on"
PROJECTNAME: "datadog-operator"
Expand Down
14 changes: 1 addition & 13 deletions .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,7 @@
"wsl",
"godox",
"godot",
"nlreturn",
"varnamelen",
"tagliatelle",
"containedctx",
"contextcheck",
"nilnil",
"ireturn",
"maintidx",
"ifshort",
"gocritic",
"errchkjson",
"gofumpt",
"golint"
"nlreturn"
]

[issues]
Expand Down
17 changes: 6 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
# Image URL to use all building/pushing image targets
IMG ?= gcr.io/datadoghq/operator:$(IMG_VERSION)

CRD_OPTIONS ?= "crd:preserveUnknownFields=false"
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.20

Expand Down Expand Up @@ -104,14 +105,8 @@ endef
##@ Deploy

.PHONY: manager
manager: generate lint managergobuild ## Build manager binary
manager: generate lint ## Build manager binary
go build -ldflags '${LDFLAGS}' -o bin/$(PLATFORM)/manager main.go
managergobuild: ## Builds only manager go binary
go build -ldflags '${LDFLAGS}' -o bin/$(PLATFORM)/manager main.go

##@ Deploy

manager: generate lint managergobuild ## Build manager binary

.PHONY: run
run: generate lint manifests ## Run against the configured Kubernetes cluster in ~/.kube/config
Expand Down Expand Up @@ -139,8 +134,8 @@ manifests: generate-manifests patch-crds ## Generate manifestcd s e.g. CRD, RBAC

.PHONY: generate-manifests
generate-manifests: $(CONTROLLER_GEN)
$(CONTROLLER_GEN) $(CRD_OPTIONS),crdVersions=v1 rbac:roleName=manager-role webhook paths="./apis/..." output:crd:artifacts:config=config/crd/bases/v1
$(CONTROLLER_GEN) $(CRD_OPTIONS),crdVersions=v1beta1 rbac:roleName=manager-role webhook paths="./apis/..." output:crd:artifacts:config=config/crd/bases/v1beta1
$(CONTROLLER_GEN) $(CRD_OPTIONS),crdVersions=v1 rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases/v1
$(CONTROLLER_GEN) $(CRD_OPTIONS),crdVersions=v1beta1 rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases/v1beta1

.PHONY: generate
generate: $(CONTROLLER_GEN) generate-openapi generate-docs ## Generate code
Expand Down Expand Up @@ -281,7 +276,7 @@ bin/$(PLATFORM)/yq: Makefile
hack/install-yq.sh 3.3.0

bin/$(PLATFORM)/golangci-lint: Makefile
hack/golangci-lint.sh -b "bin/$(PLATFORM)" v1.45.2
hack/golangci-lint.sh -b "bin/$(PLATFORM)" v1.38.0

bin/$(PLATFORM)/operator-sdk: Makefile
hack/install-operator-sdk.sh v1.13.1
Expand Down
6 changes: 1 addition & 5 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
domain: com
layout:
- go.kubebuilder.io/v3
layout: go.kubebuilder.io/v3
multigroup: true
plugins:
manifests.sdk.operatorframework.io/v2: {}
Expand Down Expand Up @@ -40,7 +39,4 @@ resources:
kind: DatadogAgent
path: github.com/DataDog/datadog-operator/apis/datadoghq/v2alpha1
version: v2alpha1
webhooks:
conversion: true
webhookVersion: v1
version: "3"
132 changes: 0 additions & 132 deletions apis/datadoghq/common/const.go

This file was deleted.

29 changes: 0 additions & 29 deletions apis/datadoghq/common/envvar.go

This file was deleted.

38 changes: 0 additions & 38 deletions apis/datadoghq/common/v1/agent_types.go

This file was deleted.

22 changes: 0 additions & 22 deletions apis/datadoghq/common/v1/customConfig.go

This file was deleted.

0 comments on commit ea961db

Please sign in to comment.