Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate NMState to use kubernetes-nmstate-operator if available (#815)
This patch make CNAO use the kubernetes-nmstate-operator if it is running and available. The only prereq for this is to have the operator pod running. If that's detected via the app=kubernetes-nmstate-operator label on a Deployment, then CNAO will only render an nmstates.nmstate.io CR to kick off the handler and webhook from the operator. If the operator is added, it also has upgrade logic to move to using the operator instead of installing kubernetes-nmstate directly. It will remove the old instance. Signed-off-by: Brad P. Crochet <brad@redhat.com>
- Loading branch information
Showing
19 changed files
with
333 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ whitespace-check | |
|
||
# Goland IDE folder | ||
.idea/ | ||
# VS Code IDE folder | ||
.vscode/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: nmstate.io/v1beta1 | ||
kind: NMState | ||
metadata: | ||
name: nmstate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package network | ||
|
||
type ClusterInfo struct { | ||
SCCAvailable bool | ||
OpenShift4 bool | ||
SCCAvailable bool | ||
OpenShift4 bool | ||
NmstateOperator bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.