Skip to content

Conversation

@rhamilto
Copy link
Member

@rhamilto rhamilto commented May 7, 2019

https://jira.coreos.com/browse/CONSOLE-1452

Differs from #1325 in that there is no dismiss option per @spadgett's desire to keep the initial implementation as simple as possible.

localhost_9000_k8s_cluster_console openshift io_v1_ConsoleNotification_example2

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: consolenotifications.console.openshift.io
  annotations:
    displayName: ConsoleNotification
    description: Extension for configuring openshift web console notifications.
spec:
  scope: Cluster
  group: console.openshift.io
  versions:
  - name: v1
    served: true
    storage: true
  names:
    plural: consolenotifications
    singular: consolenotification
    kind: ConsoleNotification
    listKind: ConsoleNotificationList
  additionalPrinterColumns:
  - name: Text
    type: string
    JSONPath: .spec.text
  - name: Location
    type: string
    JSONPath: .spec.location
  - name: Age
    type: date
    JSONPath: .metadata.creationTimestamp
  subresources:
    status: {}
  validation:
    openAPIV3Schema:
      properties:
        spec:
          type: object
          description: Represents console notification spec
          required:
          - text
          - location
          properties:
            text:
              type: string
              description: Text of the notification
            location:
              type: string
              description: The location of the notification (BannerTop, BannerBottom, BannerTopBottom)
              pattern: '^(BannerTop|BannerBottom|BannerTopBottom)$'
            link:
              type: object
              description: Object that holds notification link details
              required:
              - href
              - text
              properties:
                text:
                  type: string
                  description: Text of the link
                href:
                  type: string
                  description: Absolute secure URL for the link (must use https)
                  pattern: '^https://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$'
            backgroundColor:
              type: string
              description:  The background color for the notification as CSS data type color
            color:
              type: string
              description:  The color of the text for the notification as CSS data type color

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 7, 2019
@rhamilto rhamilto changed the title [WIP] Add ConsoleNotification CRD that can appear above or below the page [WIP] Add ConsoleNotification CRD that can appear above, below, or above and below the page May 7, 2019
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 12, 2019
@rhamilto rhamilto force-pushed the console-notification-crd branch from 6b7a111 to d166bf5 Compare May 13, 2019 14:06
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 13, 2019
@spadgett spadgett changed the base branch from master-next to master May 13, 2019 22:43
@spadgett spadgett added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label May 14, 2019
@rhamilto rhamilto force-pushed the console-notification-crd branch from d166bf5 to 5fff460 Compare May 15, 2019 12:40
@rhamilto rhamilto force-pushed the console-notification-crd branch 2 times, most recently from fec6eb1 to d5d5960 Compare May 15, 2019 14:55
benjaminapetersen added a commit to benjaminapetersen/console-operator that referenced this pull request May 16, 2019
benjaminapetersen added a commit to benjaminapetersen/console-operator that referenced this pull request May 21, 2019
@spadgett spadgett added this to the v4.2 milestone May 27, 2019
@rhamilto rhamilto force-pushed the console-notification-crd branch from d5d5960 to d457716 Compare May 29, 2019 13:16
@rhamilto
Copy link
Member Author

/retest

@rhamilto rhamilto force-pushed the console-notification-crd branch from d457716 to 8eddcba Compare May 29, 2019 15:00
@rhamilto
Copy link
Member Author

/retest

benjaminapetersen added a commit to benjaminapetersen/console-operator that referenced this pull request Jun 4, 2019
@rhamilto rhamilto force-pushed the console-notification-crd branch from 8eddcba to fcb2a00 Compare June 19, 2019 18:02
@rhamilto
Copy link
Member Author

/retest

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

/retest

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

@spadgett
Copy link
Member

/retest

@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.

@spadgett
Copy link
Member

/hold
to avoid retest until rebased

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2019
@rhamilto rhamilto force-pushed the console-notification-crd branch from f827a05 to 7f21e82 Compare June 28, 2019 13:07
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 28, 2019
@rhamilto
Copy link
Member Author

@spadgett, rebased for what I hope is the last time. Please tag.

@spadgett
Copy link
Member

/lgtm
/hold cancel

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jun 28, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhamilto, spadgett

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

The pull request process is described here

Details 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.

@rhamilto
Copy link
Member Author

/retest

1 similar comment
@rhamilto
Copy link
Member Author

/retest

@openshift-bot
Copy link
Contributor

/retest

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

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

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

@spadgett
Copy link
Member

spadgett commented Jun 28, 2019

/hold

level=error msg="Error: [ERR]: Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name='api.ci-op-gm2jltp2-60667.origin-ci-int-aws.dev.rhcloud.com.', type='A'] but it already exists]"

Let's hold the PR to prevent retest until the test namespace is deleted. (Feel free to unhold later.)

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2019
@alecmerdler
Copy link
Contributor

/retest

@spadgett
Copy link
Member

Test completed successfully, but it couldn't get the logs after :(

2019/06/29 06:13:21 Container test in pod e2e-aws completed successfully
2019/06/29 06:13:22 error: unable to gather container logs: [error: Unable to retrieve logs from pod container artifacts: pods "e2e-aws" not found, error: Unable to retrieve logs from pod container setup: pods "e2e-aws" not found, error: Unable to retrieve logs from pod container teardown: pods "e2e-aws" not found, error: Unable to retrieve logs from pod container test: pods "e2e-aws" not found] 

/hold cancel
/retest

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 29, 2019
@openshift-merge-robot openshift-merge-robot merged commit fb86335 into openshift:master Jun 29, 2019
@rhamilto rhamilto deleted the console-notification-crd branch July 1, 2019 12:47
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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants