Skip to content

Commit b9ff655

Browse files
authored
Merge pull request #296 from phanimarupaka/RemoveRequiredCheckersCheck
Remove required setters check
2 parents 103e4dc + 10b77d7 commit b9ff655

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

cmd/apply/cmdapply.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ import (
2020
"sigs.k8s.io/cli-utils/pkg/inventory"
2121
"sigs.k8s.io/cli-utils/pkg/manifestreader"
2222
"sigs.k8s.io/cli-utils/pkg/provider"
23-
"sigs.k8s.io/kustomize/kyaml/openapi"
24-
"sigs.k8s.io/kustomize/kyaml/setters2"
2523
)
2624

2725
func GetApplyRunner(provider provider.Provider, loader manifestreader.ManifestLoader, ioStreams genericclioptions.IOStreams) *ApplyRunner {
@@ -85,9 +83,6 @@ type ApplyRunner struct {
8583
}
8684

8785
func (r *ApplyRunner) RunE(cmd *cobra.Command, args []string) error {
88-
if err := setters2.CheckRequiredSettersSet(openapi.Schema()); err != nil {
89-
return err
90-
}
9186
prunePropPolicy, err := convertPropagationPolicy(r.prunePropagationPolicy)
9287
if err != nil {
9388
return err

cmd/preview/cmdpreview.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import (
1919
"sigs.k8s.io/cli-utils/pkg/inventory"
2020
"sigs.k8s.io/cli-utils/pkg/manifestreader"
2121
"sigs.k8s.io/cli-utils/pkg/provider"
22-
"sigs.k8s.io/kustomize/kyaml/openapi"
23-
"sigs.k8s.io/kustomize/kyaml/setters2"
2422
)
2523

2624
var (
@@ -82,10 +80,6 @@ type PreviewRunner struct {
8280

8381
// RunE is the function run from the cobra command.
8482
func (r *PreviewRunner) RunE(cmd *cobra.Command, args []string) error {
85-
err := setters2.CheckRequiredSettersSet(openapi.Schema())
86-
if err != nil {
87-
return err
88-
}
8983
var ch <-chan event.Event
9084

9185
drs := common.DryRunClient

0 commit comments

Comments
 (0)