mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-04 17:18:50 +00:00
Use normalize.UnstructuredList instead of ssa.SetNativeKindsDefaults
Signed-off-by: cappyzawa <cappyzawa@gmail.com>
This commit is contained in:
parent
1757d964c0
commit
5291902fd7
3 changed files with 6 additions and 3 deletions
|
|
@ -33,6 +33,7 @@ import (
|
|||
"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
|
||||
runclient "github.com/fluxcd/pkg/runtime/client"
|
||||
"github.com/fluxcd/pkg/ssa"
|
||||
"github.com/fluxcd/pkg/ssa/normalize"
|
||||
ssautil "github.com/fluxcd/pkg/ssa/utils"
|
||||
|
||||
"github.com/fluxcd/flux2/v2/pkg/manifestgen/kustomization"
|
||||
|
|
@ -50,7 +51,7 @@ func Apply(ctx context.Context, rcg genericclioptions.RESTClientGetter, opts *ru
|
|||
return "", fmt.Errorf("no Kubernetes objects found at: %s", manifestPath)
|
||||
}
|
||||
|
||||
if err := ssa.SetNativeKindsDefaults(objs); err != nil {
|
||||
if err := normalize.UnstructuredList(objs); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue