Skip to content

Commit

Permalink
ocp-test: add missing kubevirt manifests
Browse files Browse the repository at this point in the history
The default install of the kubevirt/cnv operator seems to be missing
several manifests that should be in the default namespace. Adding them
to the nerc-ocp-test overlay for now until we hear back from RH support
on whether these should come out of the box or if we're expected to
configure these ourselves.
  • Loading branch information
jtriley committed Sep 9, 2024
1 parent 0352f0c commit cbea925
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kubevirt-ui-features
namespace: default
data:
autocomputeCPULimitsEnabled: "false"
autocomputeCPULimitsPreviewEnabled: "false"
automaticSubscriptionActivationKey: ""
automaticSubscriptionOrganizationId: ""
disabledGuestSystemLogsAccess: "false"
kubevirtApiserverProxy: "true"
loadBalancerEnabled: "false"
nodePortAddress: ""
nodePortEnabled: "false"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kubevirt-user-settings
namespace: default
data:
ignored_placeholder: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap-ui-settings.yaml
- configmap-user-settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- rolebinding-kubevirt-ui-features-reader.yaml
- rolebinding-kubevirt-user-settings-reader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubevirt-ui-features-reader-binding
namespace: default
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: 'system:authenticated'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kubevirt-ui-features-reader
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubevirt-user-settings-reader-binding
namespace: default
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: 'system:authenticated'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kubevirt-user-settings-reader
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- role-kubevirt-ui-features-reader.yaml
- role-kubevirt-user-settings-reader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubevirt-ui-features-reader
namespace: default
rules:
- verbs:
- list
- get
- watch
apiGroups:
- ''
resources:
- configmaps
resourceNames:
- kubevirt-ui-features
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubevirt-user-settings-reader
namespace: default
rules:
- verbs:
- list
- get
- update
- patch
apiGroups:
- ''
resources:
- configmaps
resourceNames:
- kubevirt-user-settings
3 changes: 3 additions & 0 deletions cluster-scope/bundles/virt/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ resources:
- ../../base/core/namespaces/openshift-cnv
- ../../base/operators.coreos.com/operatorgroups/kubevirt-hyperconverged-group
- ../../base/operators.coreos.com/subscriptions/hco-operatorhub
- ../../base/core/configmaps/kubevirt
- ../../base/rbac.authorization.k8s.io/roles/kubevirt
- ../../base/rbac.authorization.k8s.io/rolebindings/kubevirt

0 comments on commit cbea925

Please sign in to comment.