-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
Description
Enabling console plugins via gitops is a real pain. Would an annotation be great?
When a Subscription is added with the annotation.
annotations:
console.openshift.io/enable-plugins: ""
Then the controller would parse the packagemanifest for the operator and if there are any plugins, then it would patch the cluster console.
console.openshift.io/plugins: ["the-plugin"]
oc patch consoles.operator.openshift.io cluster --type=json --patch '[{"op": "add", "path": "/spec/plugins/-", "value": "the-plugin"}]'
and then if the Subscription is deleted, the finalizer would remove it from the plugins array.
full Subscription example.
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: odf-operator-subscription
namespace: openshift-storage
annotations:
console.openshift.io/enable-plugins: ""
spec:
channel: stable-4.18
installPlanApproval: Automatic
name: odf-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
therevoman and dlbewley
Metadata
Metadata
Assignees
Labels
lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.