console icon indicating copy to clipboard operation
console copied to clipboard

[WIP]CONSOLE-3989: Display a warning message from kube-apiserver when creating workloads resource for Create YAML Editor

Open cajieh opened this issue 1 year ago • 5 comments
trafficstars

cajieh avatar Mar 21 '24 21:03 cajieh

@cyril-ui-developer: This pull request references CONSOLE-3939 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 story to target the "4.16.0" version, but no target version was set.

In response to this:

NOT READY FOR REVIEW

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 Mar 21 '24 21:03 openshift-ci-robot

@cyril-ui-developer: This pull request references CONSOLE-3989 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.16.0" version, but no target version was set.

In response to this:

NOT READY FOR REVIEW

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 Mar 22 '24 18:03 openshift-ci-robot

@cyril-ui-developer: This pull request references CONSOLE-3989 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.16.0" version, but no target version was set.

In response to this:

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 Mar 22 '24 18:03 openshift-ci-robot

@cyril-ui-developer: This pull request references CONSOLE-3989 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.16.0" version, but no target version was set.

In response to this:

Steps to verify the warn policy.

  1. Create a Validation Admission Webhook to enforce a warn policy for resource i.e. Pod, Deployment . For example, you can follow the steps in my GIst
  2. Create the resource specified in the warn policy in step 1 i.e. Pod using Create YAML editor to see the notification alert.

After:

Scenario 1: Screenshot 2024-04-01 at 2 29 53 PM Screenshot 2024-04-01 at 2 30 02 PM

Scenario 2: Screenshot 2024-04-01 at 2 34 47 PM Screenshot 2024-04-01 at 2 34 57 PM

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

/retest

cajieh avatar Apr 01 '24 23:04 cajieh

/retest

cajieh avatar Apr 04 '24 18:04 cajieh

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cyril-ui-developer Once this PR has been reviewed and has the lgtm label, please ask for approval from rhamilto. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 04 '24 19:04 openshift-ci[bot]

@cyril-ui-developer: This pull request references CONSOLE-3989 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.16.0" version, but no target version was set.

In response to this:

Steps to verify the warn policy.

  1. Create a Validation Admission Webhook to enforce a warn policy for resource i.e. Pod, Deployment . For example, you can follow the steps in my GIst
  2. Create the resource specified in the warn policy in step 1 i.e. Pod using Create YAML editor to see the notification alert.

After:

Scenario 1: Screenshot 2024-04-01 at 2 29 53 PM Screenshot 2024-04-01 at 2 30 02 PM

Scenario 2: Screenshot 2024-04-01 at 2 34 47 PM Screenshot 2024-04-01 at 2 34 57 PM

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 09 '24 12:04 openshift-ci-robot

@cyril-ui-developer: This pull request references CONSOLE-3989 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.16.0" version, but no target version was set.

In response to this:

Steps to verify the warn policy.

  1. Create a Validation Admission Webhook to enforce a warn policy for resource i.e. Pod . For example, you can follow the steps in my GIst
  2. Create the resource specified in the warn policy in step 1 i.e. Pod using Create YAML editor to see the notification alert. Note: This change covers Import YAML editor for all resources and certain resources i.e. Pod that fully makes use of the Create YAML Editor code implementation in - https://github.com/openshift/console/blob/master/frontend/public/components/edit-yaml.jsx.

After:

Scenario 1: Screenshot 2024-04-01 at 2 29 53 PM Screenshot 2024-04-01 at 2 30 02 PM

Scenario 2: Screenshot 2024-04-01 at 2 34 47 PM Screenshot 2024-04-01 at 2 34 57 PM

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 09 '24 12:04 openshift-ci-robot

/retest

cajieh avatar Apr 10 '24 13:04 cajieh

@spadgett Addressed your comments. PTAL

cajieh avatar Apr 11 '24 14:04 cajieh

/retest

cajieh avatar Apr 11 '24 21:04 cajieh

/hold

Let's look again at the public API we've created to expose the full HTTP response and make sure it's what we want.

spadgett avatar Apr 12 '24 16:04 spadgett

/retest

cajieh avatar Apr 15 '24 22:04 cajieh

/retest

cajieh avatar Apr 16 '24 14:04 cajieh

@cyril-ui-developer: 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 Apr 16 '24 19:04 openshift-ci[bot]

/label qe-approved

yanpzhan avatar Apr 25 '24 03:04 yanpzhan

@cyril-ui-developer: This pull request references CONSOLE-3989 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.16.0" version, but no target version was set.

In response to this:

Steps to verify the warn policy.

  1. Create a Validation Admission Webhook to enforce a warn policy for resource i.e. Pod . For example, you can follow the steps in my GIst
  2. Create the resource specified in the warn policy in step 1 i.e. Pod using Create YAML editor to see the notification alert. Note: This change covers Import YAML editor for all resources and certain resources i.e. Pod that fully makes use of the Create YAML Editor code implementation in - https://github.com/openshift/console/blob/master/frontend/public/components/edit-yaml.jsx.

After:

Scenario 1: Screenshot 2024-04-01 at 2 29 53 PM Screenshot 2024-04-01 at 2 30 02 PM

Scenario 2: Screenshot 2024-04-01 at 2 34 47 PM Screenshot 2024-04-01 at 2 34 57 PM

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 25 '24 03:04 openshift-ci-robot

/label docs-approved

opayne1 avatar Apr 26 '24 14:04 opayne1