Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#4973 from KnVerey/remove-inventory…
Browse files Browse the repository at this point in the history
…-field

Remove long-ignored Inventory field from Kustomization type
  • Loading branch information
k8s-ci-robot authored Jan 20, 2023
2 parents d858ed8 + d70315f commit 89d3ca1
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 89d3ca1

Please sign in to comment.