@@ -39,7 +39,7 @@ import (
39
39
40
40
// ResourceOperations provides methods to manage k8s resources
41
41
type ResourceOperations interface {
42
- ApplyResource (ctx context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy , force bool , validate bool , serverSideApply bool , manager string ) (string , error )
42
+ ApplyResource (ctx context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy , force , validate , serverSideApply bool , manager string ) (string , error )
43
43
ReplaceResource (ctx context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy , force bool ) (string , error )
44
44
CreateResource (ctx context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy , validate bool ) (string , error )
45
45
UpdateResource (ctx context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy ) (* unstructured.Unstructured , error )
@@ -302,7 +302,7 @@ func (k *kubectlResourceOperations) UpdateResource(ctx context.Context, obj *uns
302
302
}
303
303
304
304
// ApplyResource performs an apply of a unstructured resource
305
- func (k * kubectlServerSideDiffDryRunApplier ) ApplyResource (_ context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy , force bool , validate bool , serverSideApply bool , manager string ) (string , error ) {
305
+ func (k * kubectlServerSideDiffDryRunApplier ) ApplyResource (_ context.Context , obj * unstructured.Unstructured , dryRunStrategy cmdutil.DryRunStrategy , force , validate , serverSideApply bool , manager string ) (string , error ) {
306
306
span := k .tracer .StartSpan ("ApplyResource" )
307
307
span .SetBaggageItem ("kind" , obj .GetKind ())
308
308
span .SetBaggageItem ("name" , obj .GetName ())
@@ -358,7 +358,7 @@ func (k *kubectlResourceOperations) ApplyResource(ctx context.Context, obj *unst
358
358
})
359
359
}
360
360
361
- func newApplyOptionsCommon (config * rest.Config , fact cmdutil.Factory , ioStreams genericclioptions.IOStreams , obj * unstructured.Unstructured , fileName string , validate bool , force bool , serverSideApply bool , dryRunStrategy cmdutil.DryRunStrategy , manager string ) (* apply.ApplyOptions , error ) {
361
+ func newApplyOptionsCommon (config * rest.Config , fact cmdutil.Factory , ioStreams genericclioptions.IOStreams , obj * unstructured.Unstructured , fileName string , validate bool , force , serverSideApply bool , dryRunStrategy cmdutil.DryRunStrategy , manager string ) (* apply.ApplyOptions , error ) {
362
362
flags := apply .NewApplyFlags (ioStreams )
363
363
o := & apply.ApplyOptions {
364
364
IOStreams : ioStreams ,
0 commit comments