diff --git a/api/krusty/options.go b/api/krusty/options.go index d6dcdd72b..086242c8e 100644 --- a/api/krusty/options.go +++ b/api/krusty/options.go @@ -43,9 +43,6 @@ type Options struct { // See type definition. LoadRestrictions types.LoadRestrictions - // Create an inventory object for pruning. - DoPrune bool - // Options related to kustomize plugins. PluginConfig *types.PluginConfig } @@ -56,7 +53,6 @@ func MakeDefaultOptions() *Options { Reorder: ReorderOptionNone, AddManagedbyLabel: false, LoadRestrictions: types.LoadRestrictionsRootOnly, - DoPrune: false, PluginConfig: types.DisabledPluginConfig(), } } diff --git a/api/types/inventory.go b/api/types/inventory.go deleted file mode 100644 index 544deb5e5..000000000 --- a/api/types/inventory.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2019 The Kubernetes Authors. -// SPDX-License-Identifier: Apache-2.0 - -package types - -// Inventory records all objects touched in a build operation. -type Inventory struct { - Type string `json:"type,omitempty" yaml:"type,omitempty"` - ConfigMap NameArgs `json:"configMap,omitempty" yaml:"configMap,omitempty"` -} - -// NameArgs holds both namespace and name. -type NameArgs struct { - Name string `json:"name,omitempty" yaml:"name,omitempty"` - Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` -} diff --git a/api/types/kustomization.go b/api/types/kustomization.go index 055b94c3c..e0dcdcf21 100644 --- a/api/types/kustomization.go +++ b/api/types/kustomization.go @@ -171,10 +171,6 @@ type Kustomization struct { // Validators is a list of files containing validators Validators []string `json:"validators,omitempty" yaml:"validators,omitempty"` - // Inventory appends an object that contains the record - // of all other objects, which can be used in apply, prune and delete - Inventory *Inventory `json:"inventory,omitempty" yaml:"inventory,omitempty"` - // BuildMetadata is a list of strings used to toggle different build options BuildMetadata []string `json:"buildMetadata,omitempty" yaml:"buildMetadata,omitempty"` } diff --git a/kustomize/commands/internal/kustfile/kustomizationfile.go b/kustomize/commands/internal/kustfile/kustomizationfile.go index 90aaec804..4804b5691 100644 --- a/kustomize/commands/internal/kustfile/kustomizationfile.go +++ b/kustomize/commands/internal/kustfile/kustomizationfile.go @@ -65,7 +65,6 @@ func determineFieldOrder() []string { "Configurations", "Generators", "Transformers", - "Inventory", "Components", "OpenAPI", "BuildMetadata", diff --git a/kustomize/commands/internal/kustfile/kustomizationfile_test.go b/kustomize/commands/internal/kustfile/kustomizationfile_test.go index bf0a8be4a..7029aaf6f 100644 --- a/kustomize/commands/internal/kustfile/kustomizationfile_test.go +++ b/kustomize/commands/internal/kustfile/kustomizationfile_test.go @@ -46,7 +46,6 @@ func TestFieldOrder(t *testing.T) { "Configurations", "Generators", "Transformers", - "Inventory", "Components", "OpenAPI", "BuildMetadata",