Bug 2034170

Summary: Use function.knative.dev for Knative Functions related labels
Product: OpenShift Container Platform Reporter: Zbyněk Roubalík <zroubali>
Component: Dev ConsoleAssignee: Aritra Roy <ariroy>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: abhindas, aos-bugs, ariroy, cjerolim, lball, naisingh, nmukherj, zroubali
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2048900 (view as bug list) Environment:
Last Closed: 2022-03-10 16:35:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2036115    

Description Zbyněk Roubalík 2021-12-20 10:12:19 UTC
Description of problem:
Currently Developer Console is using Kubernetes labels "boson.dev/function: true" to determine whether or not the deployed Knative Service is a Function.

We would like to change this label to: "function.knative.dev: true".

The best approach would be to support both type of labels (boson.dev and knative.dev) for some period of time.


Version-Release number of selected component (if applicable):
4.10, 4.9, 4.8

How reproducible:
Always

Steps to Reproduce:
1. Log in to Developer Console on OpenShift with OpenShift Serverless installed.
2. Deploy a function, as per: https://docs.openshift.com/container-platform/4.9/serverless/functions/serverless-functions-getting-started.html
3. The deployed Knative Service is being marked as a function, based on "boson.dev" labels.

Actual results:
"function.knative.dev" labels don't mark the Knative Service as a Function.


Expected results:
Both  "boson.dev/function: true" and "function.knative.dev: true" mark the Knative Service as a Function. 

Additional info:
https://github.com/openshift/console/pull/8233
https://github.com/openshift/console/blob/master/frontend/packages/knative-plugin/src/const.ts#L29
https://github.com/knative-sandbox/kn-plugin-func/pull/717

Comment 2 Christoph Jerolimov 2022-01-04 09:48:39 UTC
Verified on 4.10.0-0.ci-2022-01-04-012641

Comment 4 Aritra Roy 2022-02-01 06:21:38 UTC
Blocks: https://bugzilla.redhat.com/show_bug.cgi?id=2036115

Comment 7 errata-xmlrpc 2022-03-10 16:35:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056