Skip to content

Commit af7ef29

Browse files
authored
Merge pull request #10297 from fabriziopandini/add-namespaces-to-fake-API-server
🌱 Add namespaces to the list of resource handled by the in-memory API server
2 parents fe7847b + d616d52 commit af7ef29

File tree

1 file changed

+19
-0
lines changed
  • test/infrastructure/inmemory/pkg/server/api

1 file changed

+19
-0
lines changed

test/infrastructure/inmemory/pkg/server/api/const.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,25 @@ var (
142142
},
143143
StorageVersionHash: "",
144144
},
145+
{
146+
Name: "namespaces",
147+
SingularName: "namespace",
148+
Namespaced: false,
149+
Kind: "Namespace",
150+
Verbs: []string{
151+
"create",
152+
"delete",
153+
"get",
154+
"list",
155+
"patch",
156+
"update",
157+
"watch",
158+
},
159+
ShortNames: []string{
160+
"ns",
161+
},
162+
StorageVersionHash: "",
163+
},
145164
},
146165
}
147166

0 commit comments

Comments
 (0)