Skip to content

Commit

Permalink
Merge pull request #1338 from mythi/PR-2023-011
Browse files Browse the repository at this point in the history
deployment fixes
  • Loading branch information
tkatila committed Feb 22, 2023
2 parents 5912669 + 3dc815c commit fd67c5c
Show file tree
Hide file tree
Showing 23 changed files with 20 additions and 147 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions deployments/fpga_plugin/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ resources:
- role.yaml
- role_binding.yaml
- intel-fpga-plugin-daemonset.yaml
- namespace.yaml
4 changes: 4 additions & 0 deletions deployments/fpga_plugin/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: system
2 changes: 1 addition & 1 deletion deployments/fpga_plugin/overlays/af/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: intelfpgaplugin-system
namePrefix: intelfpgaplugin-

bases:
resources:
- ../../base
- ../../../fpga_admissionwebhook/base
2 changes: 1 addition & 1 deletion deployments/fpga_plugin/overlays/region/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace: intelfpgaplugin-system
namePrefix: intelfpgaplugin-

bases:
resources:
- ../../base
- ../../../fpga_admissionwebhook/base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 0 additions & 24 deletions deployments/operator/rbac/fpgadeviceplugin_editor_role.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions deployments/operator/rbac/fpgadeviceplugin_viewer_role.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions deployments/operator/rbac/gpudeviceplugin_editor_role.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions deployments/operator/rbac/gpudeviceplugin_viewer_role.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions deployments/operator/rbac/qatdeviceplugin_editor_role.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions deployments/operator/rbac/qatdeviceplugin_viewer_role.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion test/e2e/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fd67c5c

Please sign in to comment.