Skip to content

Commit

Permalink
UPSTREAM: <carry>: Provide default NMState CR
Browse files Browse the repository at this point in the history
Currently, admins have to install the NMState in two steps.  First they
have to install the operator and then navigate to the operator menu to
create an NMState CR.

With this patch, these two are merged into a single step where while
installing NMState operator, user will be asked to create the CR since
it is required. That then immediatelly triggers deployment of NMState
operands as a part of the NMState operator installation.

Signed-off-by: Petr Horáček <phoracek@redhat.com>
(cherry picked from commit b6dbdf5)
(cherry picked from commit 600c605)
(cherry picked from commit ab635c0)
(cherry picked from commit d395c3d)
  • Loading branch information
phoracek authored and creydr committed May 10, 2022
1 parent 4fe5758 commit f81f823
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
operatorframework.io/initialization-resource: |-
{
"apiVersion": "nmstate.io/v1beta1",
"kind": "NMState",
"metadata": {
"name": "nmstate",
"namespace":"openshift-nmstate"
},
"spec": {
"nodeSelector": {
"beta.kubernetes.io/arch": "amd64"
}
}
}
alm-examples: |-
[{
"apiVersion": "nmstate.io/v1beta1",
Expand Down

0 comments on commit f81f823

Please sign in to comment.