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 1788810: deprecate usage of flavor.template.kubevirt.io/Custom label #5250

Merged
merged 1 commit into from May 13, 2020

Conversation

atiratree
Copy link
Member

@atiratree atiratree commented Apr 30, 2020

  • use Custom only internally by the UI and acknowledge missing label as Custom flavor
  • remove kubevirt.io/size: Custom label as well
  • capitalize flavors in VM Wizard
  • fix display of VM template flavor

@openshift-ci-robot openshift-ci-robot added 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. labels Apr 30, 2020
@openshift-ci-robot
Copy link
Contributor

@suomiy: This pull request references Bugzilla bug 1788810, 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.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1788810: change flavor 'Custom' label to 'custom'

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-ci-robot openshift-ci-robot added the component/kubevirt Related to kubevirt-plugin label Apr 30, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2020
@atiratree atiratree force-pushed the bug.1788810 branch 2 times, most recently from 9919b8b to 9e4bffb Compare May 4, 2020 09:18
@@ -19,5 +20,5 @@ export const getFlavorText = ({
const memoryBase = convertToBytes(memory);
const memoryText = humanizeBinaryBytes(memoryBase).string;

return `${_.capitalize(flavor) || ''}${flavor ? ': ' : ''}${vcpusText}, ${memoryText} Memory`;
return `${_.capitalize(alignLegacyFlavor(flavor))}: ${vcpusText}, ${memoryText} Memory`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to check for "Custom" here ?

If it's the legacy "Custom", turning it to "custom" before turning it back to "Custom" does nothing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mainly to show Custom even when the flavor is missing.

This begs a question: shouldn't we remove the custom label altogether and treat missing flavor label as custom every time?

I mean this is already happening, but we probably don't need two approaches to this.

what do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 i'm for removing the custom label ...
are we the only one's using this label ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, will change the PR then,

yes, we are although vm-import-operator started using it too, but it should be easy for them to drop it

- use Custom only internally by the UI and acknowledge missing label as Custom flavor
- remove kubevirt.io/size: Custom label as well
- capitalize flavors in VM Wizard
- fix display of VM template flavor
@atiratree atiratree changed the title Bug 1788810: change flavor 'Custom' label to 'custom' Bug 1788810: deprecate usage of flavor.template.kubevirt.io/Custom label May 4, 2020
@openshift-ci-robot
Copy link
Contributor

@suomiy: This pull request references Bugzilla bug 1788810, which is valid.

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

In response to this:

Bug 1788810: deprecate usage of flavor.template.kubevirt.io/Custom label

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.

@atiratree
Copy link
Member Author

@yaacov changed the PR to deprecate the usage of Custom label in the entities

@yaacov
Copy link
Member

yaacov commented May 4, 2020

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: suomiy, yaacov

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

@atiratree
Copy link
Member Author

/retest

@spadgett spadgett added this to the v4.5 milestone May 5, 2020
@yaacov
Copy link
Member

yaacov commented May 12, 2020

/retest

1 similar comment
@atiratree
Copy link
Member Author

/retest

@yaacov
Copy link
Member

yaacov commented May 13, 2020

maybe we should close and re-open ?
the ci tests look stuck ...

@atiratree
Copy link
Member Author

ok

@atiratree atiratree closed this May 13, 2020
@atiratree atiratree reopened this May 13, 2020
@openshift-ci-robot
Copy link
Contributor

@suomiy: This pull request references Bugzilla bug 1788810, which is valid.

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

In response to this:

Bug 1788810: deprecate usage of flavor.template.kubevirt.io/Custom label

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-merge-robot openshift-merge-robot merged commit d286abe into openshift:master May 13, 2020
@openshift-ci-robot
Copy link
Contributor

@suomiy: All pull requests linked via external trackers have merged: openshift/console#5250. Bugzilla bug 1788810 has been moved to the MODIFIED state.

In response to this:

Bug 1788810: deprecate usage of flavor.template.kubevirt.io/Custom label

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.

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. component/kubevirt Related to kubevirt-plugin 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