From 6cf7d0e39cdd7025f46a65d637da7be1fc99be5f Mon Sep 17 00:00:00 2001 From: Abu Kashem Date: Fri, 16 Sep 2022 08:59:52 -0400 Subject: [PATCH] add testdata for flowcontrol v1beta3 --- staging/src/k8s.io/api/roundtrip_test.go | 2 + ...l.apiserver.k8s.io.v1beta3.FlowSchema.json | 112 ++++++++++++++++++ ...rol.apiserver.k8s.io.v1beta3.FlowSchema.pb | Bin 0 -> 686 bytes ...l.apiserver.k8s.io.v1beta3.FlowSchema.yaml | 72 +++++++++++ ...io.v1beta3.PriorityLevelConfiguration.json | 71 +++++++++++ ...s.io.v1beta3.PriorityLevelConfiguration.pb | Bin 0 -> 537 bytes ...io.v1beta3.PriorityLevelConfiguration.yaml | 51 ++++++++ 7 files changed, 308 insertions(+) create mode 100644 staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json create mode 100644 staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.pb create mode 100644 staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml create mode 100644 staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json create mode 100644 staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.pb create mode 100644 staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.yaml diff --git a/staging/src/k8s.io/api/roundtrip_test.go b/staging/src/k8s.io/api/roundtrip_test.go index 22822b7b663..18e79e75de2 100644 --- a/staging/src/k8s.io/api/roundtrip_test.go +++ b/staging/src/k8s.io/api/roundtrip_test.go @@ -51,6 +51,7 @@ import ( flowcontrolv1alpha1 "k8s.io/api/flowcontrol/v1alpha1" flowcontrolv1beta1 "k8s.io/api/flowcontrol/v1beta1" flowcontrolv1beta2 "k8s.io/api/flowcontrol/v1beta2" + flowcontrolv1beta3 "k8s.io/api/flowcontrol/v1beta3" imagepolicyv1alpha1 "k8s.io/api/imagepolicy/v1alpha1" networkingv1 "k8s.io/api/networking/v1" networkingv1alpha1 "k8s.io/api/networking/v1alpha1" @@ -110,6 +111,7 @@ var groups = []runtime.SchemeBuilder{ flowcontrolv1alpha1.SchemeBuilder, flowcontrolv1beta1.SchemeBuilder, flowcontrolv1beta2.SchemeBuilder, + flowcontrolv1beta3.SchemeBuilder, imagepolicyv1alpha1.SchemeBuilder, networkingv1.SchemeBuilder, networkingv1beta1.SchemeBuilder, diff --git a/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json new file mode 100644 index 00000000000..6ccdcb3c722 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.json @@ -0,0 +1,112 @@ +{ + "kind": "FlowSchema", + "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "priorityLevelConfiguration": { + "name": "nameValue" + }, + "matchingPrecedence": 2, + "distinguisherMethod": { + "type": "typeValue" + }, + "rules": [ + { + "subjects": [ + { + "kind": "kindValue", + "user": { + "name": "nameValue" + }, + "group": { + "name": "nameValue" + }, + "serviceAccount": { + "namespace": "namespaceValue", + "name": "nameValue" + } + } + ], + "resourceRules": [ + { + "verbs": [ + "verbsValue" + ], + "apiGroups": [ + "apiGroupsValue" + ], + "resources": [ + "resourcesValue" + ], + "clusterScope": true, + "namespaces": [ + "namespacesValue" + ] + } + ], + "nonResourceRules": [ + { + "verbs": [ + "verbsValue" + ], + "nonResourceURLs": [ + "nonResourceURLsValue" + ] + } + ] + } + ] + }, + "status": { + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastTransitionTime": "2003-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ] + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.pb b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.pb new file mode 100644 index 0000000000000000000000000000000000000000..29d93b140f2839edb788301299d0cafd92695dc9 GIT binary patch literal 686 zcmZ8f%}OId5T1#FO)5GW8xJyGr16wPT(by45Fv+MP!Vx|4&HiVMQ1bV9=c}~m3@JI zi#;wrf-fL~?;sw$>fM7@dM0u3RzF`=fAxJm>>39;uri3%SzpOitGF$a$e=z&-5z#L zJ5sBsYayoM3xltO`rbdmkzh|%xUWE6iV^-2afWRE7$s_v;@+ebc;l`~L_de{IfL{;ZU1MNn7oH>eXs@{~oWazOzly)$=Vy`*64j^;m=$n;kr7 zjXbmyAqP)LsZx>B65IAmxyAfmhx#y*`NP3Ge?Dc?YLWnDBA?x^tDA#Jia5F;f_Bee zH-y=dkm4A%Eig|dqEzQ+N0hd@zH(H`x{dxgF+*F^|swrd5{YdEiYb<@vJP zYEFGEAiTVwvmli`C=C61uv=iZV6#M>H4M3w6+Kes<>r}`;SG(#6d#~9OTWjEz*gVD G;m#ZRg6l8< literal 0 HcmV?d00001 diff --git a/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml new file mode 100644 index 00000000000..7e5c4329c0f --- /dev/null +++ b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.FlowSchema.yaml @@ -0,0 +1,72 @@ +apiVersion: flowcontrol.apiserver.k8s.io/v1beta3 +kind: FlowSchema +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + distinguisherMethod: + type: typeValue + matchingPrecedence: 2 + priorityLevelConfiguration: + name: nameValue + rules: + - nonResourceRules: + - nonResourceURLs: + - nonResourceURLsValue + verbs: + - verbsValue + resourceRules: + - apiGroups: + - apiGroupsValue + clusterScope: true + namespaces: + - namespacesValue + resources: + - resourcesValue + verbs: + - verbsValue + subjects: + - group: + name: nameValue + kind: kindValue + serviceAccount: + name: nameValue + namespace: namespaceValue + user: + name: nameValue +status: + conditions: + - lastTransitionTime: "2003-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue diff --git a/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json new file mode 100644 index 00000000000..e2f229b3167 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.json @@ -0,0 +1,71 @@ +{ + "kind": "PriorityLevelConfiguration", + "apiVersion": "flowcontrol.apiserver.k8s.io/v1beta3", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "type": "typeValue", + "limited": { + "nominalConcurrencyShares": 1, + "limitResponse": { + "type": "typeValue", + "queuing": { + "queues": 1, + "handSize": 2, + "queueLengthLimit": 3 + } + } + } + }, + "status": { + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastTransitionTime": "2003-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ] + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.pb b/staging/src/k8s.io/api/testdata/HEAD/flowcontrol.apiserver.k8s.io.v1beta3.PriorityLevelConfiguration.pb new file mode 100644 index 0000000000000000000000000000000000000000..3587edd29a176dad0fdee8ab5560fe4f5e3f3fd2 GIT binary patch literal 537 zcmZ9J%TB^T6oy+M+71Y{nn=2ASh2ucOd1nof;%OKg>m6-3a4c3Fhgcq3>sg+w{Yzv z_yUH6cQ7tovv;AxRIqV(=0CUZ{1XS#KyB2BD8K7*mIzK;ctj+KF^EzLAW5vqyuB1XPiZ3kP4g-&fIAcy%&(p@DQ#sO~Kt900WhT%cbO17g;&Ny{yFF zkU*mjVX^LLS}E!4=wMrbN!tl zh$=(O@BoAs+$tX}?qA}2|Ht_1hL72I(J>CxFra;TH5p~j9G6hx;j!(=G+a5MO>H1M zSr)lFmg#Qgg*D4`3iYCQica!!St