@@ -62,9 +62,9 @@ type PatchOption interface {
62
62
ApplyToPatch (* PatchOptions )
63
63
}
64
64
65
- // ApplyOption is some configuration that modifies options for a apply request.
65
+ // ApplyOption is some configuration that modifies options for an apply request.
66
66
type ApplyOption interface {
67
- // A ApplyToApply applies this configuration to the given apply options.
67
+ // ApplyToApply applies this configuration to the given apply options.
68
68
ApplyToApply (* ApplyOptions )
69
69
}
70
70
@@ -122,11 +122,12 @@ func (dryRunAll) ApplyToPatch(opts *PatchOptions) {
122
122
opts .DryRun = []string {metav1 .DryRunAll }
123
123
}
124
124
125
- func (drun dryRunAll ) ApplyToApply (opts * ApplyOptions ) {
125
+ // ApplyToApply applies this configuration to the given apply options.
126
+ func (dryRunAll ) ApplyToApply (opts * ApplyOptions ) {
126
127
opts .DryRun = []string {metav1 .DryRunAll }
127
128
}
128
129
129
- // ApplyToPatch applies this configuration to the given delete options.
130
+ // ApplyToDelete applies this configuration to the given delete options.
130
131
func (dryRunAll ) ApplyToDelete (opts * DeleteOptions ) {
131
132
opts .DryRun = []string {metav1 .DryRunAll }
132
133
}
@@ -981,20 +982,20 @@ type ApplyOptions struct {
981
982
// result in an error response and no further processing of the
982
983
// request. Valid values are:
983
984
// - All: all dry run stages will be processed
984
- // +optional
985
- // +listType=atomic
986
- DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
985
+ DryRun []string
987
986
988
987
// Force is going to "force" Apply requests. It means user will
989
988
// re-acquire conflicting fields owned by other people.
990
- Force * bool `json:"force" protobuf:"varint,2,opt,name=force"`
989
+ Force * bool
991
990
992
991
// fieldManager is a name associated with the actor or entity
993
992
// that is making these changes. The value must be less than or
994
993
// 128 characters long, and only contain printable characters,
995
994
// as defined by https://golang.org/pkg/unicode/#IsPrint. This
996
995
// field is required.
997
- FieldManager string `json:"fieldManager" protobuf:"bytes,3,name=fieldManager"`
996
+ //
997
+ // +required
998
+ FieldManager string
998
999
}
999
1000
1000
1001
// ApplyOptions applies the given opts onto the ApplyOptions
0 commit comments