constellation/hack/tools/tools.go
Markus Rudy 1a8a733fb9 operator: generate deepcopy, rbac and crds
This commit adds the controller-gen tool as a Bazel dep and adds the
equivalent of `make manifests` to //:generate.

Rename CRDs in the operator Helm chart to match kubebuilder v4 generated
names and add a generation directive to output CRD resources directly
into the Helm chart. CRDs are not templated, so we don't need to helmify
them.

Split the manager-rbac.yaml into a role.yaml and a rolebinding.yaml, and
add a directive to generate role.yaml from operator sources. We're
losing the labels on the role, but that is only a cosmetic defect.
2024-01-22 14:45:50 +01:00

19 lines
526 B
Go

//go:build tools
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
// The tools module is used to keep tool dependencies separate from the main dependencies of the repo
// For more details see: https://github.com/golang/go/issues/25922#issuecomment-1038394599
package main
import (
_ "github.com/google/go-licenses"
_ "github.com/katexochen/sh/v3/cmd/shfmt"
_ "golang.org/x/tools/cmd/stringer"
_ "golang.org/x/vuln/cmd/govulncheck"
_ "sigs.k8s.io/controller-tools/cmd/controller-gen"
)