Skip to content
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

Bug 1872309: Rename "cluster_monitoring_operator" -> "cluster-monitoring-operator" #910

Conversation

wking
Copy link
Member

@wking wking commented Aug 17, 2020

The regular expression for the component portion is [a-z0-9\-]+ or [a-zA-Z0-9]+(-[a-zA-Z0-9]+)*?). Either way, it cannot include underscores, so manifests like 0000_50_cluster_monitoring_operator_01-namespace.yaml end up in the cluster component. With this change, they will end up in the cluster-monitoring-operator component.

Generated with:

$ rename cluster_monitoring_operator cluster-monitoring-operator manifests/*.yaml
$ sed -i 's/cluster_monitoring_operator/cluster-monitoring-operator/g' Documentation/data-collection.md Makefile README.md hack/build-jsonnet.sh hack/build-jsonnet.sh hack/local-cmo.sh hack/telemeter_query.go

@wking wking force-pushed the cluster-version-manifest-component-name branch from 96583b1 to 2f2559e Compare August 17, 2020 22:58
@wking
Copy link
Member Author

wking commented Aug 17, 2020

And I've filed openshift/cluster-version-operator#439 to remove the oversimplified regexp from the CVO's docs.

@wking wking force-pushed the cluster-version-manifest-component-name branch from 2f2559e to 886d998 Compare August 17, 2020 23:23
@wking
Copy link
Member Author

wking commented Aug 17, 2020

The outgoing, underscore form landed in 9fd35c2 (#388, new in 4.2), so we could backport this to any of our not-yet-end-of-life release streams if folks wanted to. Personally, I doubt it needs backporting at all, since the only risk of the old naming is that a separate operator made the same mistake and set cluster as their component and 50 or 90 as their runlevel. And even then, the outcome would be that the two operators' manifests would be interleaved in a single manifest block, instead of applied in separate, parallel manifests blocks.

@s-urbaniak
Copy link
Contributor

this generally lgtm, but i assume we need a BZ for this as we are in QA phase?!

@s-urbaniak
Copy link
Contributor

Does this impact down/upgrades in any way? I don't believe so but just want to make sure we are not running in any edge case.

@wking
Copy link
Member Author

wking commented Aug 19, 2020

this generally lgtm, but i assume we need a BZ for this as we are in QA phase?!

I asked about that a few weeks ago, but nobody has landed a bug requirement for master yet (see Tide saying Not mergeable. Needs approved, lgtm labels. here. Still, I can file a bug if you like. But...

Does this impact down/upgrades in any way?

There's no relationship between manifest filenames between releases, so this rename has about the same pact there as the earlier #388. The only impacts I can see now are the unlikely overlap-fix from my previous comment. And I haven't audited a recent release, but I would be very surprised if we had an overlap like that today. This is just cosmetic, and a guard against low-risk, future overlap.

@simonpasquier
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 20, 2020
@s-urbaniak
Copy link
Contributor

@wking according to tide this needs now a bugzilla 🤷‍♂️

@simonpasquier
Copy link
Contributor

/retitle Bug 1872309: Rename "cluster_monitoring_operator" -> "cluster-monitoring-operator"

@openshift-ci-robot openshift-ci-robot changed the title manifests: Rename "cluster_monitoring_operator" -> "cluster-monitoring-operator" Bug 1872309: Rename "cluster_monitoring_operator" -> "cluster-monitoring-operator" Aug 25, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Aug 25, 2020
@openshift-ci-robot
Copy link
Contributor

@wking: This pull request references Bugzilla bug 1872309, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1872309: Rename "cluster_monitoring_operator" -> "cluster-monitoring-operator"

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 kubernetes/test-infra repository.

@simonpasquier
Copy link
Contributor

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. and removed bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. labels Aug 25, 2020
@openshift-ci-robot
Copy link
Contributor

@simonpasquier: This pull request references Bugzilla bug 1872309, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

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 kubernetes/test-infra repository.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

6 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@wking
Copy link
Member Author

wking commented Aug 26, 2020

hold

GitHub claims a conflict.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

10 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

…g-operator"

The regular expression for the component portion is [1]:

  [a-z0-9\-]+

or [2]:

  [a-zA-Z0-9]+(-[a-zA-Z0-9]+)*?)

Either way, it cannot include underscores, so manifests like
0000_50_cluster_monitoring_operator_01-namespace.yaml end up in the
'cluster' component.  With this change, they will end up in the
'cluster-monitoring-operator' component.

The outgoing, underscore form landed in 9fd35c2 (manifests: prefix
manifests used by CVO with a 0000_xx_NAME prefix, 2019-06-25, openshift#388).

Generated with:

  $ rename cluster_monitoring_operator cluster-monitoring-operator manifests/*.yaml
  $ sed -i 's/cluster_monitoring_operator/cluster-monitoring-operator/g' Documentation/data-collection.md Makefile README.md hack/build-jsonnet.sh hack/build-jsonnet.sh hack/local-cmo.sh hack/telemeter_query.go

[1]: https://github.com/openshift/cluster-version-operator/blob/71aef74480d199fe96a590f2f1e4e8056a9cb687/docs/dev/operators.md#what-is-the-order-that-resources-get-createdupdated-in
[2]: https://github.com/openshift/cluster-version-operator/blob/71aef74480d199fe96a590f2f1e4e8056a9cb687/pkg/payload/task_graph.go#L21
@wking wking force-pushed the cluster-version-manifest-component-name branch from 886d998 to f11007b Compare August 26, 2020 18:17
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2020
@wking
Copy link
Member Author

wking commented Aug 26, 2020

Oops, looks like I fumbled the hold above. Anyway, rebased onto master with with 886d998 -> f11007b

@simonpasquier
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: simonpasquier, wking

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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 170f91f into openshift:master Aug 27, 2020
@openshift-ci-robot
Copy link
Contributor

@wking: All pull requests linked via external trackers have merged:

Bugzilla bug 1872309 has been moved to the MODIFIED state.

In response to this:

Bug 1872309: Rename "cluster_monitoring_operator" -> "cluster-monitoring-operator"

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 kubernetes/test-infra repository.

@wking wking deleted the cluster-version-manifest-component-name branch August 27, 2020 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants