Skip to content

Commit 6a0e018

Browse files
authored
Merge pull request kubernetes#91194 from wawa0210/update-envvarsource-doc
Update env varsource api documentation
2 parents 78f2c8f + 097c226 commit 6a0e018

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

api/openapi-spec/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/core/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ type EnvVar struct {
17741774
// EnvVarSource represents a source for the value of an EnvVar.
17751775
// Only one of its fields may be set.
17761776
type EnvVarSource struct {
1777-
// Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations,
1777+
// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
17781778
// metadata.uid, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
17791779
// +optional
17801780
FieldRef *ObjectFieldSelector

staging/src/k8s.io/api/core/v1/generated.proto

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/core/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ type EnvVar struct {
18571857

18581858
// EnvVarSource represents a source for the value of an EnvVar.
18591859
type EnvVarSource struct {
1860-
// Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations,
1860+
// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
18611861
// spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
18621862
// +optional
18631863
FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,1,opt,name=fieldRef"`

staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)