diff --git a/Makefile b/Makefile index 8885c4f4..5e27d608 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ BUILDER ?= "docker" EXTRA_BUILD_ARGS ?= "" CERT_MANAGER_VERSION ?= v1.11.0 -CONTROLLER_GEN_VERSION ?= v0.11.1 +CONTROLLER_GEN_VERSION ?= v0.11.3 GOLANGCI_LINT_VERSION ?= v1.50.1 KIND_VERSION ?= v0.17.0 GOLICENSES_VERSION ?= v1.6.0 diff --git a/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_acceleratorfunctions.yaml b/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_acceleratorfunctions.yaml index 716acdee..429d5c28 100644 --- a/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_acceleratorfunctions.yaml +++ b/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_acceleratorfunctions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: acceleratorfunctions.fpga.intel.com spec: diff --git a/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_fpgaregions.yaml b/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_fpgaregions.yaml index 170bc10f..b1334193 100644 --- a/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_fpgaregions.yaml +++ b/deployments/fpga_admissionwebhook/crd/bases/fpga.intel.com_fpgaregions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: fpgaregions.fpga.intel.com spec: diff --git a/deployments/fpga_plugin/base/kustomization.yaml b/deployments/fpga_plugin/base/kustomization.yaml index a232c8fa..b4f55254 100644 --- a/deployments/fpga_plugin/base/kustomization.yaml +++ b/deployments/fpga_plugin/base/kustomization.yaml @@ -2,3 +2,4 @@ resources: - role.yaml - role_binding.yaml - intel-fpga-plugin-daemonset.yaml + - namespace.yaml diff --git a/deployments/fpga_plugin/base/namespace.yaml b/deployments/fpga_plugin/base/namespace.yaml new file mode 100644 index 00000000..1ab3a725 --- /dev/null +++ b/deployments/fpga_plugin/base/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: system diff --git a/deployments/fpga_plugin/overlays/af/kustomization.yaml b/deployments/fpga_plugin/overlays/af/kustomization.yaml index 31db918e..c45bea89 100644 --- a/deployments/fpga_plugin/overlays/af/kustomization.yaml +++ b/deployments/fpga_plugin/overlays/af/kustomization.yaml @@ -1,6 +1,6 @@ namespace: intelfpgaplugin-system namePrefix: intelfpgaplugin- -bases: +resources: - ../../base - ../../../fpga_admissionwebhook/base diff --git a/deployments/fpga_plugin/overlays/region/kustomization.yaml b/deployments/fpga_plugin/overlays/region/kustomization.yaml index f3b847c4..55ab43ba 100644 --- a/deployments/fpga_plugin/overlays/region/kustomization.yaml +++ b/deployments/fpga_plugin/overlays/region/kustomization.yaml @@ -1,7 +1,7 @@ namespace: intelfpgaplugin-system namePrefix: intelfpgaplugin- -bases: +resources: - ../../base - ../../../fpga_admissionwebhook/base diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_dlbdeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_dlbdeviceplugins.yaml index a18a9cdf..181781d1 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_dlbdeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_dlbdeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: dlbdeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_dsadeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_dsadeviceplugins.yaml index 084a5f52..c5c34c13 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_dsadeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_dsadeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: dsadeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_fpgadeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_fpgadeviceplugins.yaml index e7b6a574..4613262a 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_fpgadeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_fpgadeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: fpgadeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_gpudeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_gpudeviceplugins.yaml index 6fc07cff..bba1051b 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_gpudeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_gpudeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: gpudeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_iaadeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_iaadeviceplugins.yaml index b684fbd3..8fff0262 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_iaadeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_iaadeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: iaadeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_qatdeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_qatdeviceplugins.yaml index 7143d313..7b04fe02 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_qatdeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_qatdeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: qatdeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/deviceplugin.intel.com_sgxdeviceplugins.yaml b/deployments/operator/crd/bases/deviceplugin.intel.com_sgxdeviceplugins.yaml index be2c62f6..b1de4946 100644 --- a/deployments/operator/crd/bases/deviceplugin.intel.com_sgxdeviceplugins.yaml +++ b/deployments/operator/crd/bases/deviceplugin.intel.com_sgxdeviceplugins.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: sgxdeviceplugins.deviceplugin.intel.com spec: diff --git a/deployments/operator/crd/bases/fpga.intel.com_acceleratorfunctions.yaml b/deployments/operator/crd/bases/fpga.intel.com_acceleratorfunctions.yaml index 716acdee..429d5c28 100644 --- a/deployments/operator/crd/bases/fpga.intel.com_acceleratorfunctions.yaml +++ b/deployments/operator/crd/bases/fpga.intel.com_acceleratorfunctions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: acceleratorfunctions.fpga.intel.com spec: diff --git a/deployments/operator/crd/bases/fpga.intel.com_fpgaregions.yaml b/deployments/operator/crd/bases/fpga.intel.com_fpgaregions.yaml index 170bc10f..b1334193 100644 --- a/deployments/operator/crd/bases/fpga.intel.com_fpgaregions.yaml +++ b/deployments/operator/crd/bases/fpga.intel.com_fpgaregions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.10.0 + controller-gen.kubebuilder.io/version: v0.11.3 creationTimestamp: null name: fpgaregions.fpga.intel.com spec: diff --git a/deployments/operator/rbac/fpgadeviceplugin_editor_role.yaml b/deployments/operator/rbac/fpgadeviceplugin_editor_role.yaml deleted file mode 100644 index d3a8beca..00000000 --- a/deployments/operator/rbac/fpgadeviceplugin_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit fpgadeviceplugins. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: fpgadeviceplugin-editor-role -rules: -- apiGroups: - - deviceplugin.intel.com - resources: - - fpgadeviceplugins - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - deviceplugin.intel.com - resources: - - fpgadeviceplugins/status - verbs: - - get diff --git a/deployments/operator/rbac/fpgadeviceplugin_viewer_role.yaml b/deployments/operator/rbac/fpgadeviceplugin_viewer_role.yaml deleted file mode 100644 index ee4bbd80..00000000 --- a/deployments/operator/rbac/fpgadeviceplugin_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view fpgadeviceplugins. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: fpgadeviceplugin-viewer-role -rules: -- apiGroups: - - deviceplugin.intel.com - resources: - - fpgadeviceplugins - verbs: - - get - - list - - watch -- apiGroups: - - deviceplugin.intel.com - resources: - - fpgadeviceplugins/status - verbs: - - get diff --git a/deployments/operator/rbac/gpudeviceplugin_editor_role.yaml b/deployments/operator/rbac/gpudeviceplugin_editor_role.yaml deleted file mode 100644 index 3a188116..00000000 --- a/deployments/operator/rbac/gpudeviceplugin_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit gpudeviceplugins. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: gpudeviceplugin-editor-role -rules: -- apiGroups: - - deviceplugin.intel.com - resources: - - gpudeviceplugins - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - deviceplugin.intel.com - resources: - - gpudeviceplugins/status - verbs: - - get diff --git a/deployments/operator/rbac/gpudeviceplugin_viewer_role.yaml b/deployments/operator/rbac/gpudeviceplugin_viewer_role.yaml deleted file mode 100644 index 6d719503..00000000 --- a/deployments/operator/rbac/gpudeviceplugin_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view gpudeviceplugins. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: gpudeviceplugin-viewer-role -rules: -- apiGroups: - - deviceplugin.intel.com - resources: - - gpudeviceplugins - verbs: - - get - - list - - watch -- apiGroups: - - deviceplugin.intel.com - resources: - - gpudeviceplugins/status - verbs: - - get diff --git a/deployments/operator/rbac/qatdeviceplugin_editor_role.yaml b/deployments/operator/rbac/qatdeviceplugin_editor_role.yaml deleted file mode 100644 index 3c01ae1c..00000000 --- a/deployments/operator/rbac/qatdeviceplugin_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit qatdeviceplugins. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: qatdeviceplugin-editor-role -rules: -- apiGroups: - - deviceplugin.intel.com - resources: - - qatdeviceplugins - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - deviceplugin.intel.com - resources: - - qatdeviceplugins/status - verbs: - - get diff --git a/deployments/operator/rbac/qatdeviceplugin_viewer_role.yaml b/deployments/operator/rbac/qatdeviceplugin_viewer_role.yaml deleted file mode 100644 index 1b73c40b..00000000 --- a/deployments/operator/rbac/qatdeviceplugin_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view qatdeviceplugins. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: qatdeviceplugin-viewer-role -rules: -- apiGroups: - - deviceplugin.intel.com - resources: - - qatdeviceplugins - verbs: - - get - - list - - watch -- apiGroups: - - deviceplugin.intel.com - resources: - - qatdeviceplugins/status - verbs: - - get diff --git a/test/e2e/utils/utils.go b/test/e2e/utils/utils.go index 20eee861..66fdd1e7 100644 --- a/test/e2e/utils/utils.go +++ b/test/e2e/utils/utils.go @@ -126,7 +126,7 @@ func CreateKustomizationOverlay(namespace, base, overlay string) error { } relPath = relPath + base[1:] - content := fmt.Sprintf("namespace: %s\nbases:\n - %s", namespace, relPath) + content := fmt.Sprintf("namespace: %s\nresources:\n - %s", namespace, relPath) return os.WriteFile(overlay+"/kustomization.yaml", []byte(content), 0600) }