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)
(cherry picked from commit f81f823)
  • Loading branch information
phoracek authored and creydr committed Jun 30, 2022
1 parent 5c84fd9 commit 464f992
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 464f992

Please sign in to comment.