@@ -62,9 +62,9 @@ type PatchOption interface {
6262 ApplyToPatch (* PatchOptions )
6363}
6464
65- // ApplyOption is some configuration that modifies options for a apply request.
65+ // ApplyOption is some configuration that modifies options for an apply request.
6666type ApplyOption interface {
67- // A ApplyToApply applies this configuration to the given apply options.
67+ // ApplyToApply applies this configuration to the given apply options.
6868 ApplyToApply (* ApplyOptions )
6969}
7070
@@ -122,11 +122,12 @@ func (dryRunAll) ApplyToPatch(opts *PatchOptions) {
122122 opts .DryRun = []string {metav1 .DryRunAll }
123123}
124124
125- func (drun dryRunAll ) ApplyToApply (opts * ApplyOptions ) {
125+ // ApplyToApply applies this configuration to the given apply options.
126+ func (dryRunAll ) ApplyToApply (opts * ApplyOptions ) {
126127 opts .DryRun = []string {metav1 .DryRunAll }
127128}
128129
129- // ApplyToPatch applies this configuration to the given delete options.
130+ // ApplyToDelete applies this configuration to the given delete options.
130131func (dryRunAll ) ApplyToDelete (opts * DeleteOptions ) {
131132 opts .DryRun = []string {metav1 .DryRunAll }
132133}
@@ -981,20 +982,20 @@ type ApplyOptions struct {
981982 // result in an error response and no further processing of the
982983 // request. Valid values are:
983984 // - 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
987986
988987 // Force is going to "force" Apply requests. It means user will
989988 // re-acquire conflicting fields owned by other people.
990- Force * bool `json:"force" protobuf:"varint,2,opt,name=force"`
989+ Force * bool
991990
992991 // fieldManager is a name associated with the actor or entity
993992 // that is making these changes. The value must be less than or
994993 // 128 characters long, and only contain printable characters,
995994 // as defined by https://golang.org/pkg/unicode/#IsPrint. This
996995 // field is required.
997- FieldManager string `json:"fieldManager" protobuf:"bytes,3,name=fieldManager"`
996+ //
997+ // +required
998+ FieldManager string
998999}
9991000
10001001// ApplyOptions applies the given opts onto the ApplyOptions
0 commit comments