File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
pkg/patterns/declarative/pkg/applier Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -95,21 +95,8 @@ func (d *DirectApplier) Apply(ctx context.Context, opt ApplierOptions) error {
95
95
}
96
96
97
97
if opt .Validate {
98
- // validation likely makes redundant apiserver requests and is less optimized than the non-validation case,
99
- // but validation isn't the common path
100
-
101
- dynamicClient , err := f .DynamicClient ()
102
- if err != nil {
103
- return err
104
- }
105
- nqpv := resource .NewQueryParamVerifier (dynamicClient , f .OpenAPIGetter (), resource .QueryParamFieldValidation )
106
-
107
- v , err := d .inner .NewFactory (opt ).Validator (metav1 .FieldValidationStrict , nqpv )
108
-
109
- if err != nil {
110
- return err
111
- }
112
- b .Schema (v )
98
+ // client-side validation is no longer recommended, in favor of server-side apply/validation
99
+ return fmt .Errorf ("client-side validation is no longer supported" )
113
100
}
114
101
115
102
var errs []error
You can’t perform that action at this time.
0 commit comments