File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,31 @@ func TestSelect(t *testing.T) {
6969 },
7070 ))
7171
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+ map [string ]interface {}{
86+ "apiVersion" : "v1" ,
87+ "kind" : "Secret" ,
88+ "immutable" : true ,
89+ "metadata" : map [string ]interface {}{
90+ "name" : "with-immutable" ,
91+ "namespace" : "example" ,
92+ },
93+ "type" : "Opaque" ,
94+ },
95+ ))
96+
7297 t .Run ("route" , run_TestSelect (
7398 map [string ]interface {}{
7499 "apiVersion" : "v1" ,
You can’t perform that action at this time.
0 commit comments