Skip to content

Commit

Permalink
Regenerate for ClusterTrustBundlePEM projected volume API
Browse files Browse the repository at this point in the history
Kubernetes-commit: 599fdb7adde5658dadb6a149c40624b4342fc909
  • Loading branch information
ahmedtd authored and k8s-publishing-bot committed Jan 25, 2023
1 parent ef77d1a commit d23b507
Show file tree
Hide file tree
Showing 62 changed files with 2,313 additions and 1,181 deletions.
2,720 changes: 1,559 additions & 1,161 deletions core/v1/generated.pb.go

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions core/v1/generated.proto

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

2 changes: 1 addition & 1 deletion core/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ type ClusterTrustBundleProjection struct {
// signerName and labelSelector is allowed to match zero
// ClusterTrustBundles.
// +optional
Optional *bool `json:"optional,omitempty"`
Optional *bool `json:"optional,omitempty" protobuf:"varint,5,opt,name=optional"`

// Relative path from the volume root to write the bundle.
Path string `json:"path" protobuf:"bytes,4,rep,name=path"`
Expand Down
14 changes: 14 additions & 0 deletions core/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,19 @@ func (ClientIPConfig) SwaggerDoc() map[string]string {
return map_ClientIPConfig
}

var map_ClusterTrustBundleProjection = map[string]string{
"": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.",
"name": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.",
"signerName": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.",
"labelSelector": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\".",
"optional": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.",
"path": "Relative path from the volume root to write the bundle.",
}

func (ClusterTrustBundleProjection) SwaggerDoc() map[string]string {
return map_ClusterTrustBundleProjection
}

var map_ComponentCondition = map[string]string{
"": "Information about the condition of a component.",
"type": "Type of condition for a component. Valid value: \"Healthy\"",
Expand Down Expand Up @@ -2593,6 +2606,7 @@ var map_VolumeProjection = map[string]string{
"downwardAPI": "downwardAPI information about the downwardAPI data to project",
"configMap": "configMap information about the configMap data to project",
"serviceAccountToken": "serviceAccountToken is information about the serviceAccountToken data to project",
"clusterTrustBundle": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.",
}

func (VolumeProjection) SwaggerDoc() map[string]string {
Expand Down
41 changes: 41 additions & 0 deletions core/v1/zz_generated.deepcopy.go

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

20 changes: 20 additions & 0 deletions testdata/HEAD/apps.v1.DaemonSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,26 @@
"audience": "audienceValue",
"expirationSeconds": 2,
"path": "pathValue"
},
"clusterTrustBundle": {
"name": "nameValue",
"signerName": "signerNameValue",
"labelSelector": {
"matchLabels": {
"matchLabelsKey": "matchLabelsValue"
},
"matchExpressions": [
{
"key": "keyValue",
"operator": "operatorValue",
"values": [
"valuesValue"
]
}
]
},
"optional": true,
"path": "pathValue"
}
}
],
Expand Down
Binary file modified testdata/HEAD/apps.v1.DaemonSet.pb
Binary file not shown.
15 changes: 14 additions & 1 deletion testdata/HEAD/apps.v1.DaemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,20 @@ spec:
projected:
defaultMode: 2
sources:
- configMap:
- clusterTrustBundle:
labelSelector:
matchExpressions:
- key: keyValue
operator: operatorValue
values:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
name: nameValue
optional: true
path: pathValue
signerName: signerNameValue
configMap:
items:
- key: keyValue
mode: 3
Expand Down
20 changes: 20 additions & 0 deletions testdata/HEAD/apps.v1.Deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,26 @@
"audience": "audienceValue",
"expirationSeconds": 2,
"path": "pathValue"
},
"clusterTrustBundle": {
"name": "nameValue",
"signerName": "signerNameValue",
"labelSelector": {
"matchLabels": {
"matchLabelsKey": "matchLabelsValue"
},
"matchExpressions": [
{
"key": "keyValue",
"operator": "operatorValue",
"values": [
"valuesValue"
]
}
]
},
"optional": true,
"path": "pathValue"
}
}
],
Expand Down
Binary file modified testdata/HEAD/apps.v1.Deployment.pb
Binary file not shown.
15 changes: 14 additions & 1 deletion testdata/HEAD/apps.v1.Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,20 @@ spec:
projected:
defaultMode: 2
sources:
- configMap:
- clusterTrustBundle:
labelSelector:
matchExpressions:
- key: keyValue
operator: operatorValue
values:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
name: nameValue
optional: true
path: pathValue
signerName: signerNameValue
configMap:
items:
- key: keyValue
mode: 3
Expand Down
20 changes: 20 additions & 0 deletions testdata/HEAD/apps.v1.ReplicaSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,26 @@
"audience": "audienceValue",
"expirationSeconds": 2,
"path": "pathValue"
},
"clusterTrustBundle": {
"name": "nameValue",
"signerName": "signerNameValue",
"labelSelector": {
"matchLabels": {
"matchLabelsKey": "matchLabelsValue"
},
"matchExpressions": [
{
"key": "keyValue",
"operator": "operatorValue",
"values": [
"valuesValue"
]
}
]
},
"optional": true,
"path": "pathValue"
}
}
],
Expand Down
Binary file modified testdata/HEAD/apps.v1.ReplicaSet.pb
Binary file not shown.
15 changes: 14 additions & 1 deletion testdata/HEAD/apps.v1.ReplicaSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,20 @@ spec:
projected:
defaultMode: 2
sources:
- configMap:
- clusterTrustBundle:
labelSelector:
matchExpressions:
- key: keyValue
operator: operatorValue
values:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
name: nameValue
optional: true
path: pathValue
signerName: signerNameValue
configMap:
items:
- key: keyValue
mode: 3
Expand Down
20 changes: 20 additions & 0 deletions testdata/HEAD/apps.v1.StatefulSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,26 @@
"audience": "audienceValue",
"expirationSeconds": 2,
"path": "pathValue"
},
"clusterTrustBundle": {
"name": "nameValue",
"signerName": "signerNameValue",
"labelSelector": {
"matchLabels": {
"matchLabelsKey": "matchLabelsValue"
},
"matchExpressions": [
{
"key": "keyValue",
"operator": "operatorValue",
"values": [
"valuesValue"
]
}
]
},
"optional": true,
"path": "pathValue"
}
}
],
Expand Down
Binary file modified testdata/HEAD/apps.v1.StatefulSet.pb
Binary file not shown.
15 changes: 14 additions & 1 deletion testdata/HEAD/apps.v1.StatefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,20 @@ spec:
projected:
defaultMode: 2
sources:
- configMap:
- clusterTrustBundle:
labelSelector:
matchExpressions:
- key: keyValue
operator: operatorValue
values:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
name: nameValue
optional: true
path: pathValue
signerName: signerNameValue
configMap:
items:
- key: keyValue
mode: 3
Expand Down
20 changes: 20 additions & 0 deletions testdata/HEAD/apps.v1beta1.Deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,26 @@
"audience": "audienceValue",
"expirationSeconds": 2,
"path": "pathValue"
},
"clusterTrustBundle": {
"name": "nameValue",
"signerName": "signerNameValue",
"labelSelector": {
"matchLabels": {
"matchLabelsKey": "matchLabelsValue"
},
"matchExpressions": [
{
"key": "keyValue",
"operator": "operatorValue",
"values": [
"valuesValue"
]
}
]
},
"optional": true,
"path": "pathValue"
}
}
],
Expand Down
Binary file modified testdata/HEAD/apps.v1beta1.Deployment.pb
Binary file not shown.
Loading

0 comments on commit d23b507

Please sign in to comment.