We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfbdb51 commit 1330b71Copy full SHA for 1330b71
1 file changed
pkg/datagatherer/k8s/fieldfilter_test.go
@@ -69,6 +69,31 @@ func TestSelect(t *testing.T) {
69
},
70
))
71
72
+ //Confirm select function preserves immutability
73
+ t.Run("secret-immutable", run_TestSelect(
74
+ map[string]interface{}{
75
+ "apiVersion": "v1",
76
+ "kind": "Secret",
77
+ "immutable": true,
78
+ "metadata": map[string]interface{}{
79
+ "name": "with-immutable",
80
+ "namespace": "example",
81
+ },
82
+ "type": "Opaque",
83
84
+ SecretSelectedFields,
85
86
87
88
89
90
91
92
93
94
95
+ ))
96
+
97
t.Run("route", run_TestSelect(
98
map[string]interface{}{
99
"apiVersion": "v1",
0 commit comments