Repository navigation
GCP-1292: add --enable-gmp-monitoring plumbing and API-only GMP types #10041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
acwalczyk
wants to merge
8
commits into
openshift:main
Choose a base branch
from
acwalczyk:acwalczyk/GCP-1292-monitoring-api-group-plumbing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,278
−14
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
707236c
feat(cli): add monitoring API selection to installation
acwalczyk a0f4e4e
feat(hypershift-operator): add GMP monitoring API foundation
acwalczyk 533961d
feat(control-plane-operator): propagate monitoring API selection
acwalczyk b61ec49
refactor: replace MONITORING_API_GROUP with --enable-gmp-monitoring flag
acwalczyk 82cfa18
test(hypershift-operator): fix gci import grouping in main_test.go
acwalczyk 387fae2
chore(gmp-api-gen): split TestWriteProvenance to satisfy gocyclo
acwalczyk 1146c4d
chore(restructure-commits): detect generated .sha256 provenance files
acwalczyk 96972a6
chore(gmp-sync): wire gmp-sync/verify-gmp-sync into update/lint
acwalczyk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,7 +97,7 @@ build: hypershift-operator control-plane-operator control-plane-pki-operator kar | |
| CAPI_PROVIDERS := agent aws azure gcp ibmcloud kubevirt openstack | ||
|
|
||
| .PHONY: update | ||
| update: api-deps workspace-sync capi-sync deps api api-docs clients docs-aggregate | ||
| update: api-deps workspace-sync capi-sync gmp-sync deps api api-docs clients docs-aggregate | ||
| $(MAKE) ownership-rules | ||
|
|
||
| GOLANGCI_LINT := $(abspath $(TOOLS_BIN_DIR)/golangci-lint) | ||
|
|
@@ -131,7 +131,7 @@ precommit-api-lint-fix: $(GOLANGCI_LINT) | |
| cd api && $(GOLANGCI_LINT) fmt --config ./.golangci.yml --enable gci $(patsubst api/%,%,$(FILES)) | ||
|
|
||
| .PHONY: lint | ||
| lint: generate verify-capi-sync $(HYPERSHIFTLINTER_PLUGIN) | ||
| lint: generate verify-capi-sync verify-gmp-sync $(HYPERSHIFTLINTER_PLUGIN) | ||
| $(MAKE) api-lint; api_rc=$$?; \ | ||
| $(GOLANGCI_LINT) run --config ./.golangci.yml --modules-download-mode=readonly -v; main_rc=$$?; \ | ||
| exit $$(( api_rc > main_rc ? api_rc : main_rc )) | ||
|
|
@@ -249,9 +249,17 @@ $(CRD_SCHEMA_CHECK): $(TOOLS_DIR)/go.mod # Build crd-schema-check tool | |
| cd $(TOOLS_DIR); $(GO) build -o $(BIN_DIR)/crd-schema-check ./crd-schema-check | ||
|
|
||
| .PHONY: generate | ||
| generate: $(MOCKGEN) | ||
| generate: $(MOCKGEN) $(CONTROLLER_GEN) | ||
| $(GO) generate ./... | ||
|
|
||
| .PHONY: gmp-sync | ||
| gmp-sync: $(CONTROLLER_GEN) | ||
| ./hack/update-gmp-api.sh --sync | ||
|
|
||
| .PHONY: verify-gmp-sync | ||
| verify-gmp-sync: $(CONTROLLER_GEN) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be invoked by the 'verify' target?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in #10041 (comment) |
||
| ./hack/update-gmp-api.sh --verify | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| # Compile all tests | ||
| .PHONY: tests | ||
| tests: generate | ||
|
|
@@ -811,7 +819,7 @@ test-commit-layout: $(PYTHON_VENV_STAMP) ## Test the restructure-commits layout | |
|
|
||
| .PHONY: verify-codespell | ||
| verify-codespell: codespell ## Verify codespell. | ||
| @$(CODESPELL) --count --ignore-words=./.codespellignore --skip="./hack/tools/bin/codespell_dist,./docs/site/*,./vendor/*,./api/vendor/*,./hack/tools/vendor/*,./api/hypershift/v1alpha1/*,./support/thirdparty/*,./docs/content/reference/*,./hack/tools/bin/*,./cmd/install/assets/*,./go.sum,./api/go.sum,./hack/workspace/go.work.sum,./api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests,./hack/tools/go.mod,./hack/tools/go.sum,./karpenter-operator/controllers/karpenter/assets/*.yaml,./dev/*,./pkg/capi/*,./hack/capi-vendor/*" | ||
| @$(CODESPELL) --count --ignore-words=./.codespellignore --skip="./hack/tools/bin/codespell_dist,./docs/site/*,./support/gmpmonitoring/testdata/*,./vendor/*,./api/vendor/*,./hack/tools/vendor/*,./api/hypershift/v1alpha1/*,./support/thirdparty/*,./docs/content/reference/*,./hack/tools/bin/*,./cmd/install/assets/*,./go.sum,./api/go.sum,./hack/workspace/go.work.sum,./api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests,./hack/tools/go.mod,./hack/tools/go.sum,./karpenter-operator/controllers/karpenter/assets/*.yaml,./dev/*,./pkg/capi/*,./hack/capi-vendor/*" | ||
|
|
||
| .PHONY: verify-api-deps | ||
| verify-api-deps: $(VERIFY_API_DEPS) ## Verify API dependency allowlist and shared requirements/replacements. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be invoked by the 'update' target?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in #10041 (comment)