Skip to content

Commit bcb0133

Browse files
committed
deployments: fix FPGA plugin namespace
Signed-off-by: Mikko Ylinen <[email protected]>
1 parent cf2103d commit bcb0133

File tree

7 files changed

+8
-5
lines changed

7 files changed

+8
-5
lines changed

deployments/fpga_plugin/base/intel-fpga-plugin-daemonset.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: DaemonSet
33
metadata:
44
name: intel-fpga-plugin
5-
namespace: system
65
labels:
76
app: intel-fpga-plugin
87
spec:

deployments/fpga_plugin/base/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ resources:
22
- role.yaml
33
- role_binding.yaml
44
- intel-fpga-plugin-daemonset.yaml
5+
- namespace.yaml
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: system
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace: intelfpgaplugin-system
22
namePrefix: intelfpgaplugin-
33

4-
bases:
4+
resources:
55
- ../../base
66
- ../../../fpga_admissionwebhook/base

deployments/fpga_plugin/overlays/region/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace: intelfpgaplugin-system
22
namePrefix: intelfpgaplugin-
33

4-
bases:
4+
resources:
55
- ../../base
66
- ../../../fpga_admissionwebhook/base
77

deployments/fpga_plugin/overlays/region/mode-region.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: DaemonSet
33
metadata:
44
name: intel-fpga-plugin
5-
namespace: system
65
spec:
76
template:
87
spec:

test/e2e/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func CreateKustomizationOverlay(namespace, base, overlay string) error {
126126
}
127127

128128
relPath = relPath + base[1:]
129-
content := fmt.Sprintf("namespace: %s\nbases:\n - %s", namespace, relPath)
129+
content := fmt.Sprintf("namespace: %s\nresources:\n - %s", namespace, relPath)
130130

131131
return os.WriteFile(overlay+"/kustomization.yaml", []byte(content), 0600)
132132
}

0 commit comments

Comments
 (0)