Skip to content

Commit

Permalink
Remove Inventory field from Kustomization
Browse files Browse the repository at this point in the history
This field has not done anything since v3.5.5. It was missed in the cleanup in #2421
  • Loading branch information
KnVerey committed Jan 13, 2023
1 parent da5d572 commit d70315f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 26 deletions.
4 changes: 0 additions & 4 deletions api/krusty/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -56,7 +53,6 @@ func MakeDefaultOptions() *Options {
Reorder: ReorderOptionNone,
AddManagedbyLabel: false,
LoadRestrictions: types.LoadRestrictionsRootOnly,
DoPrune: false,
PluginConfig: types.DisabledPluginConfig(),
}
}
Expand Down
16 changes: 0 additions & 16 deletions api/types/inventory.go

This file was deleted.

4 changes: 0 additions & 4 deletions api/types/kustomization.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
1 change: 0 additions & 1 deletion kustomize/commands/internal/kustfile/kustomizationfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func determineFieldOrder() []string {
"Configurations",
"Generators",
"Transformers",
"Inventory",
"Components",
"OpenAPI",
"BuildMetadata",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func TestFieldOrder(t *testing.T) {
"Configurations",
"Generators",
"Transformers",
"Inventory",
"Components",
"OpenAPI",
"BuildMetadata",
Expand Down

0 comments on commit d70315f

Please sign in to comment.