Skip to content

Commit b39ce09

Browse files
committed
Add tags for autogenerating conversions for Option types
1 parent 9b4134a commit b39ce09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4768,6 +4768,7 @@ type Preconditions struct {
47684768
UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
47694769
}
47704770

4771+
// +k8s:conversion-gen:explicit-from=net/url.Values
47714772
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
47724773

47734774
// PodLogOptions is the query options for a Pod's logs REST call.
@@ -4819,6 +4820,7 @@ type PodLogOptions struct {
48194820
InsecureSkipTLSVerifyBackend bool `json:"insecureSkipTLSVerifyBackend,omitempty" protobuf:"varint,9,opt,name=insecureSkipTLSVerifyBackend"`
48204821
}
48214822

4823+
// +k8s:conversion-gen:explicit-from=net/url.Values
48224824
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
48234825

48244826
// PodAttachOptions is the query options to a Pod's remote attach call.
@@ -4856,6 +4858,7 @@ type PodAttachOptions struct {
48564858
Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"`
48574859
}
48584860

4861+
// +k8s:conversion-gen:explicit-from=net/url.Values
48594862
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
48604863

48614864
// PodExecOptions is the query options to a Pod's remote exec call.
@@ -4894,6 +4897,7 @@ type PodExecOptions struct {
48944897
Command []string `json:"command" protobuf:"bytes,6,rep,name=command"`
48954898
}
48964899

4900+
// +k8s:conversion-gen:explicit-from=net/url.Values
48974901
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
48984902

48994903
// PodPortForwardOptions is the query options to a Pod's port forward call

0 commit comments

Comments
 (0)