console icon indicating copy to clipboard operation
console copied to clipboard

OCPBUGS-26073: setting correct image trigger annotation

Open vikram-raj opened this issue 1 year ago • 13 comments

Fix: https://issues.redhat.com/browse/OCPBUGS-26073

Description: We want to update trigger from auto to manual or vice versa. We can do it with CLI 'oc set triggers deployment/ --manual'. It normally changes to deployment annotation metadata.annotations.image.openshift.io/triggers to "paused: true" or "paused: false" when set to auto. But when we enable or disable auto trigger by editing deployment from the web console, it overrides annotation to "pause: false" or "pause: true" without 'd'.

https://github.com/openshift/console/assets/2561818/25287a9d-fd64-41cf-95f2-ce0bb994c36a

vikram-raj avatar Jan 09 '24 07:01 vikram-raj

@vikram-raj: This pull request references Jira Issue OCPBUGS-26073, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fix: https://issues.redhat.com/browse/OCPBUGS-26073

Description: We want to update trigger from auto to manual or vice versa. We can do it with CLI 'oc set triggers deployment/ --manual'. It normally changes to deployment annotation metadata.annotations.image.openshift.io/triggers to "paused: true" or "paused: false" when set to auto. But when we enable or disable auto trigger by editing deployment from the web console, it overrides annotation to "pause: false" or "pause: true" without 'd'.

https://github.com/openshift/console/assets/2561818/25287a9d-fd64-41cf-95f2-ce0bb994c36a

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 Jan 09 '24 07:01 openshift-ci-robot

/jira refresh

vikram-raj avatar Jan 09 '24 07:01 vikram-raj

@vikram-raj: This pull request references Jira Issue OCPBUGS-26073, which is valid. The bug has been moved to the POST state.

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

Requesting review from QA contact: /cc @sanketpathak

In response to this:

/jira 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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Jan 09 '24 07:01 openshift-ci-robot

/cc @jerolimov

vikram-raj avatar Jan 09 '24 07:01 vikram-raj

/retest

vikram-raj avatar Jan 16 '24 17:01 vikram-raj

/retest

vikram-raj avatar Jan 17 '24 07:01 vikram-raj

/retest

vikram-raj avatar Jan 18 '24 06:01 vikram-raj

value is not getting changed, it is always false if Auto deploy when new Image is available checkbox value is changed also.

https://github.com/openshift/console/assets/102503482/6dfa133b-b296-48fa-80a4-8d8bf168605b

lokanandaprabhu avatar Feb 14 '24 07:02 lokanandaprabhu

value is not getting changed, it is always false if Auto deploy when new Image is available checkbox value is changed also.

paused value changes when the user changes the image of the deployment. Auto deploy checkbox select is not persist it looks like a different issue.

vikram-raj avatar Mar 05 '24 13:03 vikram-raj

/retest

christoph-jerolimov avatar Mar 19 '24 23:03 christoph-jerolimov

/retest

christoph-jerolimov avatar Mar 20 '24 16:03 christoph-jerolimov

@vikram-raj: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

openshift-ci[bot] avatar Mar 20 '24 20:03 openshift-ci[bot]

Tested locally. Annotation is getting set to paused instead of pause.

/lgtm

lokanandaprabhu avatar Apr 18 '24 06:04 lokanandaprabhu

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lokanandaprabhu, vikram-raj

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 Apr 18 '24 06:04 openshift-ci[bot]

@vikram-raj: Jira Issue OCPBUGS-26073: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-26073 has been moved to the MODIFIED state.

In response to this:

Fix: https://issues.redhat.com/browse/OCPBUGS-26073

Description: We want to update trigger from auto to manual or vice versa. We can do it with CLI 'oc set triggers deployment/ --manual'. It normally changes to deployment annotation metadata.annotations.image.openshift.io/triggers to "paused: true" or "paused: false" when set to auto. But when we enable or disable auto trigger by editing deployment from the web console, it overrides annotation to "pause: false" or "pause: true" without 'd'.

https://github.com/openshift/console/assets/2561818/25287a9d-fd64-41cf-95f2-ce0bb994c36a

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 Apr 18 '24 11:04 openshift-ci-robot

/cherry-pick release-4.15

vikram-raj avatar Apr 20 '24 22:04 vikram-raj

@vikram-raj: new pull request created: #13783

In response to this:

/cherry-pick release-4.15

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.

Fix included in accepted release 4.16.0-0.nightly-2024-04-21-123502

openshift-merge-robot avatar Apr 21 '24 19:04 openshift-merge-robot