api icon indicating copy to clipboard operation
api copied to clipboard

MON-3902: add initial Monitoring CRD api

Open marioferh opened this issue 1 year ago • 20 comments
trafficstars

Initial Implementation of Configuration CRD for the Cluster Monitoring Operator

Related: [link]

As we have a FeatureGate, the idea is to implement component by component to verify the correct behavior and facilitate the reviews.

The API comes from https://github.com/openshift/cluster-monitoring-operator/blob/7015893ece5ed0a6f888fffe09b6d10a807d6901/pkg/manifests/config.go#L51

marioferh avatar Jun 12 '24 12:06 marioferh

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

openshift-ci[bot] avatar Jun 12 '24 12:06 openshift-ci[bot]

Hello @marioferh! Some important instructions when contributing to openshift/api: API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

openshift-ci[bot] avatar Jun 12 '24 12:06 openshift-ci[bot]

@marioferh: This pull request references MON-3902 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.17.0" version, but no target version was set.

In response to this:

Initial Implementation of Configuration CRD for the Cluster Monitoring Operator

Related: [link]

As we have a FeatureGate, the idea is to implement component by component to verify the correct behavior and facilitate the reviews.

The API comes from https://github.com/openshift/cluster-monitoring-operator/blob/7015893ece5ed0a6f888fffe09b6d10a807d6901/pkg/manifests/config.go#L51

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Jun 12 '24 16:06 openshift-ci-robot

/retest-required

marioferh avatar Jul 01 '24 10:07 marioferh

/test e2e-upgrade-minor

JoelSpeed avatar Jul 02 '24 12:07 JoelSpeed

/retest-required

marioferh avatar Jul 03 '24 07:07 marioferh

/retest-required

marioferh avatar Jul 08 '24 10:07 marioferh

/test e2e-azure

marioferh avatar Jul 08 '24 13:07 marioferh

/lgtm only verify is now unhappy. Guess needs some generate step again or so?

jan--f avatar Jul 18 '24 09:07 jan--f

/lgtm only verify is now unhappy. Guess needs some generate step again or so?

something related with CustomNoUpgrade:

Found untracked file 0000_10_config-operator_01_clustermonitoring-CustomNoUpgrade.crd.yaml in payload CRD manifests.  Please add the file to crd_globs in hack/update-payload-crds.sh.
make: *** [Makefile:52: verify-scripts] Error 1

marioferh avatar Jul 18 '24 15:07 marioferh

/retest-required

marioferh avatar Jul 22 '24 09:07 marioferh

/retest-required

marioferh avatar Jul 23 '24 08:07 marioferh

/retest-required

marioferh avatar Jul 23 '24 12:07 marioferh

/lgtm

jan--f avatar Jul 23 '24 19:07 jan--f

@JoelSpeed

marioferh avatar Jul 24 '24 08:07 marioferh

/retest-required

marioferh avatar Sep 23 '24 21:09 marioferh

/test e2e-aws-ovn-hypershift

marioferh avatar Sep 24 '24 12:09 marioferh

@JoelSpeed Just fyi I'll take this over in @marioferh's absence.

jan--f avatar Oct 01 '24 12:10 jan--f

/retest

jan--f avatar Oct 14 '24 12:10 jan--f

@JoelSpeed PTAL?

jan--f avatar Oct 14 '24 12:10 jan--f

@marioferh: This pull request references MON-3902 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target either version "4.18." or "openshift-4.18.", but it targets "openshift-4.17" instead.

In response to this:

Initial Implementation of Configuration CRD for the Cluster Monitoring Operator

Related: Enhancements Proposal [link]

As we have a FeatureGate, the idea is to implement component by component to verify the correct behavior and facilitate the reviews.

The API comes from https://github.com/openshift/cluster-monitoring-operator/blob/7015893ece5ed0a6f888fffe09b6d10a807d6901/pkg/manifests/config.go#L51

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Nov 20 '24 17:11 openshift-ci-robot

/retest

marioferh avatar Dec 17 '24 09:12 marioferh

From the linter, these ones should be fixed. The first four WRT empty json tag is a bug that I'll fix this afternoon

config/v1/types_cluster_monitoring.go:63:2: optionalorrequired: field Items must be marked as optional or required (kal)
	Items []ClusterMonitoring `json:"items"`
	^
config/v1/types_cluster_monitoring.go:[45](https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_api/1929/pull-ci-openshift-api-master-lint/1868744969225768960#1:build-log.txt%3A45):2: requiredfields: field Spec is marked as required, but has the omitempty tag (kal)
	Spec ClusterMonitoringSpec `json:"spec,omitempty"`
	^
config/v1/types_cluster_monitoring.go:70:2: requiredfields: field UserDefined is marked as required, but has the omitempty tag (kal)
	UserDefined UserDefinedMonitoring `json:"userDefined,omitempty"`
	^
config/v1/types_cluster_monitoring.go:81:2: requiredfields: field Mode is marked as required, but has the omitempty tag (kal)
	Mode UserDefinedMode `json:"mode,omitempty"`
	^

JoelSpeed avatar Dec 17 '24 10:12 JoelSpeed

Changes LGTM, waiting on a linter fix to merge to verify a green lint, and then we can get this merged

In the mean time, will double check on EP updates

JoelSpeed avatar Dec 18 '24 11:12 JoelSpeed

/test lint

JoelSpeed avatar Dec 18 '24 16:12 JoelSpeed

/retest-required

marioferh avatar Dec 19 '24 08:12 marioferh

/test okd-scos-e2e-aws-ovn

marioferh avatar Dec 19 '24 09:12 marioferh

/lgtm

JoelSpeed avatar Dec 19 '24 14:12 JoelSpeed

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jan--f, JoelSpeed, marioferh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Dec 19 '24 14:12 openshift-ci[bot]

/retest-required

marioferh avatar Dec 20 '24 08:12 marioferh