Skip to content

Commit

Permalink
Generate code
Browse files Browse the repository at this point in the history
Kubernetes-commit: cb12a2bc5118fe34e2eb396dc1a3b8e7cc1de9f4
  • Loading branch information
ttakahashi21 authored and k8s-publishing-bot committed Nov 9, 2022
1 parent d8ab3fb commit dfd6ea2
Show file tree
Hide file tree
Showing 67 changed files with 1,354 additions and 949 deletions.
2,118 changes: 1,205 additions & 913 deletions core/v1/generated.pb.go

Large diffs are not rendered by default.

46 changes: 37 additions & 9 deletions core/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions core/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,8 @@ var map_PersistentVolumeClaimSpec = map[string]string{
"volumeName": "volumeName is the binding reference to the PersistentVolume backing this claim.",
"storageClassName": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
"volumeMode": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
"dataSource": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.",
"dataSourceRef": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.",
"dataSource": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.",
"dataSourceRef": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
}

func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string {
Expand Down Expand Up @@ -2437,6 +2437,17 @@ func (TypedLocalObjectReference) SwaggerDoc() map[string]string {
return map_TypedLocalObjectReference
}

var map_TypedObjectReference = map[string]string{
"apiGroup": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
"kind": "Kind is the type of resource being referenced",
"name": "Name is the name of resource being referenced",
"namespace": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
}

func (TypedObjectReference) SwaggerDoc() map[string]string {
return map_TypedObjectReference
}

var map_Volume = map[string]string{
"": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
"name": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
Expand Down
28 changes: 27 additions & 1 deletion core/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1.DaemonSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1.DaemonSet.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1.DaemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1.Deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1.Deployment.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1.Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1.ReplicaSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1.ReplicaSet.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1.ReplicaSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
6 changes: 4 additions & 2 deletions testdata/HEAD/apps.v1.StatefulSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down Expand Up @@ -1716,7 +1717,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
},
"status": {
Expand Down
Binary file modified testdata/HEAD/apps.v1.StatefulSet.pb
Binary file not shown.
2 changes: 2 additions & 0 deletions testdata/HEAD/apps.v1.StatefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down Expand Up @@ -1184,6 +1185,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1beta1.Deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1beta1.Deployment.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1beta1.Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
6 changes: 4 additions & 2 deletions testdata/HEAD/apps.v1beta1.StatefulSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down Expand Up @@ -1716,7 +1717,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
},
"status": {
Expand Down
Binary file modified testdata/HEAD/apps.v1beta1.StatefulSet.pb
Binary file not shown.
2 changes: 2 additions & 0 deletions testdata/HEAD/apps.v1beta1.StatefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down Expand Up @@ -1184,6 +1185,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1beta2.DaemonSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1beta2.DaemonSet.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1beta2.DaemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1beta2.Deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1beta2.Deployment.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1beta2.Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/apps.v1beta2.ReplicaSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/apps.v1beta2.ReplicaSet.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/apps.v1beta2.ReplicaSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
6 changes: 4 additions & 2 deletions testdata/HEAD/apps.v1beta2.StatefulSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down Expand Up @@ -1716,7 +1717,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
},
"status": {
Expand Down
Binary file modified testdata/HEAD/apps.v1beta2.StatefulSet.pb
Binary file not shown.
2 changes: 2 additions & 0 deletions testdata/HEAD/apps.v1beta2.StatefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down Expand Up @@ -1184,6 +1185,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
3 changes: 2 additions & 1 deletion testdata/HEAD/batch.v1.CronJob.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@
"dataSourceRef": {
"apiGroup": "apiGroupValue",
"kind": "kindValue",
"name": "nameValue"
"name": "nameValue",
"namespace": "namespaceValue"
}
}
}
Expand Down
Binary file modified testdata/HEAD/batch.v1.CronJob.pb
Binary file not shown.
1 change: 1 addition & 0 deletions testdata/HEAD/batch.v1.CronJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ spec:
apiGroup: apiGroupValue
kind: kindValue
name: nameValue
namespace: namespaceValue
resources:
limits:
limitsKey: "0"
Expand Down
Loading

0 comments on commit dfd6ea2

Please sign in to comment.