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 11, 2023
1 parent da5d572 commit 8ffca46
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 16 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
6 changes: 0 additions & 6 deletions api/types/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

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"`
Expand Down
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 8ffca46

Please sign in to comment.