Skip to content

Commit 5b587d9

Browse files
Merge pull request #28435 from soltysh/etcd_storage_test
OCPNODE-1892: Update ETCD storage data for k8s 1.29
2 parents 80b0ef7 + 1d4e013 commit 5b587d9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ build-docs:
3737
hack/generate-docs.sh
3838
.PHONY: build-docs
3939

40+
openshift-tests: GO_BUILD_PACKAGES :=./cmd/openshift-tests
41+
openshift-tests: build
42+
.PHONY: openshift-tests
43+
4044
# run repo-specific checks.
4145
#
4246
# Example:

test/extended/etcd/etcd_storage_path.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,23 @@ func testEtcd3StoragePath(t g.GinkgoTInterface, oc *exutil.CLI, etcdClient3Fn fu
282282
// Apply output of git diff origin/release-1.XY origin/release-1.X(Y+1) test/integration/etcd/data.go. This is needed
283283
// to apply the right data depending on the kube version of the running server. Replace this with the next current
284284
// and rebase version next time. Don't pile them up.
285-
if strings.HasPrefix(version.Minor, "27") {
285+
if strings.HasPrefix(version.Minor, "29") {
286286
for k, a := range map[schema.GroupVersionResource]etcddata.StorageData{
287287
// Added etcd data.
288288
// TODO: When rebase has started, add etcd storage data has been added to
289289
// k8s.io/kubernetes/test/integration/etcd/data.go in the 1.27 release.
290+
291+
// compare https://github.com/kubernetes/kubernetes/pull/121089
292+
gvr("flowcontrol.apiserver.k8s.io", "v1", "flowschemas"): {
293+
Stub: `{"metadata": {"name": "fs-3"}, "spec": {"priorityLevelConfiguration": {"name": "name1"}}}`,
294+
ExpectedEtcdPath: "/registry/flowschemas/fs-3",
295+
ExpectedGVK: gvkP("flowcontrol.apiserver.k8s.io", "v1beta3", "FlowSchema"),
296+
},
297+
gvr("flowcontrol.apiserver.k8s.io", "v1", "prioritylevelconfigurations"): {
298+
Stub: `{"metadata": {"name": "conf5"}, "spec": {"type": "Limited", "limited": {"nominalConcurrencyShares":3, "limitResponse": {"type": "Reject"}}}}`,
299+
ExpectedEtcdPath: "/registry/prioritylevelconfigurations/conf5",
300+
ExpectedGVK: gvkP("flowcontrol.apiserver.k8s.io", "v1beta3", "PriorityLevelConfiguration"),
301+
},
290302
} {
291303
if _, preexisting := etcdStorageData[k]; preexisting {
292304
t.Errorf("upstream etcd storage data already has data for %v. Update current and rebase version diff to next rebase version", k)

0 commit comments

Comments
 (0)