-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from abhinavdahiya/cvo_overrides
manifests: add cvo-overrides
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package bootkube | ||
|
||
import ( | ||
"text/template" | ||
) | ||
|
||
var ( | ||
// CVOOverrides is the constant to represent contents of cvo-override.yaml file | ||
// This is a gate to prevent CVO from installing these operators which is conflicting | ||
// with already owned resources by tectonic-operators. | ||
// This files can be dropped when the overrides list becomes empty. | ||
CVOOverrides = template.Must(template.New("cvo-override.yaml").Parse(` | ||
apiVersion: clusterversion.openshift.io/v1 | ||
kind: CVOConfig | ||
metadata: | ||
namespace: openshift-cluster-version | ||
name: cluster-version-operator | ||
upstream: http://localhost:8080/graph | ||
channel: fast | ||
clusterID: {{.CVOClusterID}} | ||
overrides: | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-core-operators | ||
name: openshift-cluster-kube-apiserver-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-core-operators | ||
name: openshift-cluster-kube-scheduler-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-core-operators | ||
name: openshift-cluster-kube-controller-manager-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-core-operators | ||
name: openshift-cluster-openshift-apiserver-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-core-operators | ||
name: openshift-cluster-openshift-controller-manager-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-cluster-network-operator | ||
name: cluster-network-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with tectonic-ingress-controller-operator | ||
namespace: openshift-cluster-ingress-operator | ||
name: cluster-ingress-operator | ||
unmanaged: true | ||
- kind: ServiceAccount # missing run level 0 on the namespace and has 0000_08 | ||
namespace: openshift-cluster-dns-operator | ||
name: cluster-dns-operator | ||
unmanaged: true | ||
- kind: Deployment # this conflicts with kube-core-operator | ||
namespace: openshift-cluster-dns-operator | ||
name: cluster-dns-operator | ||
unmanaged: true | ||
`)) | ||
) |
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