Skip to content

Commit

Permalink
remove descriptions from crd files (#6258)
Browse files Browse the repository at this point in the history
  • Loading branch information
captncraig authored Feb 7, 2024
1 parent 8d9fa85 commit 74118b6
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 6,653 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4,084 changes: 0 additions & 4,084 deletions operations/agent-static-operator/crds/monitoring.grafana.com_grafanaagents.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tools/generate-crds.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ ROOT=$(git rev-parse --show-toplevel)
# Generate objects and controllers for our CRDs
cd $ROOT/pkg/operator/apis/monitoring/v1alpha1
controller-gen object paths=.
controller-gen crd:crdVersions=v1 paths=. output:crd:dir=$ROOT/operations/agent-static-operator/crds
controller-gen crd:crdVersions=v1,maxDescLen=0 paths=. output:crd:dir=$ROOT/operations/agent-static-operator/crds

# Generate CRDs for prometheus-operator.
PROM_OP_DEP_NAME="github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
PROM_OP_DIR=$(go list -f '{{.Dir}}' $PROM_OP_DEP_NAME)

cd $PROM_OP_DIR
controller-gen crd:crdVersions=v1 paths=. output:crd:dir=$ROOT/operations/agent-static-operator/crds
controller-gen crd:crdVersions=v1,maxDescLen=0 paths=. output:crd:dir=$ROOT/operations/agent-static-operator/crds

# Remove known Prometheus-Operator CRDS we don't generate. (An allowlist would
# be better here, but rfratto's bash skills are bad.)
Expand Down

0 comments on commit 74118b6

Please sign in to comment.