mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
commit
fd67c5cd6f
2
Makefile
2
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
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -2,3 +2,4 @@ resources:
|
||||
- role.yaml
|
||||
- role_binding.yaml
|
||||
- intel-fpga-plugin-daemonset.yaml
|
||||
- namespace.yaml
|
||||
|
4
deployments/fpga_plugin/base/namespace.yaml
Normal file
4
deployments/fpga_plugin/base/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: system
|
@ -1,6 +1,6 @@
|
||||
namespace: intelfpgaplugin-system
|
||||
namePrefix: intelfpgaplugin-
|
||||
|
||||
bases:
|
||||
resources:
|
||||
- ../../base
|
||||
- ../../../fpga_admissionwebhook/base
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace: intelfpgaplugin-system
|
||||
namePrefix: intelfpgaplugin-
|
||||
|
||||
bases:
|
||||
resources:
|
||||
- ../../base
|
||||
- ../../../fpga_admissionwebhook/base
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user