mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
Remove Inventory field from Kustomization
This field has not done anything since v3.5.5. It was missed in the cleanup in https://github.com/kubernetes-sigs/kustomize/pull/2421
This commit is contained in:
@@ -43,9 +43,6 @@ type Options struct {
|
|||||||
// See type definition.
|
// See type definition.
|
||||||
LoadRestrictions types.LoadRestrictions
|
LoadRestrictions types.LoadRestrictions
|
||||||
|
|
||||||
// Create an inventory object for pruning.
|
|
||||||
DoPrune bool
|
|
||||||
|
|
||||||
// Options related to kustomize plugins.
|
// Options related to kustomize plugins.
|
||||||
PluginConfig *types.PluginConfig
|
PluginConfig *types.PluginConfig
|
||||||
}
|
}
|
||||||
@@ -56,7 +53,6 @@ func MakeDefaultOptions() *Options {
|
|||||||
Reorder: ReorderOptionNone,
|
Reorder: ReorderOptionNone,
|
||||||
AddManagedbyLabel: false,
|
AddManagedbyLabel: false,
|
||||||
LoadRestrictions: types.LoadRestrictionsRootOnly,
|
LoadRestrictions: types.LoadRestrictionsRootOnly,
|
||||||
DoPrune: false,
|
|
||||||
PluginConfig: types.DisabledPluginConfig(),
|
PluginConfig: types.DisabledPluginConfig(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"`
|
|
||||||
}
|
|
||||||
@@ -171,10 +171,6 @@ type Kustomization struct {
|
|||||||
// Validators is a list of files containing validators
|
// Validators is a list of files containing validators
|
||||||
Validators []string `json:"validators,omitempty" yaml:"validators,omitempty"`
|
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 is a list of strings used to toggle different build options
|
||||||
BuildMetadata []string `json:"buildMetadata,omitempty" yaml:"buildMetadata,omitempty"`
|
BuildMetadata []string `json:"buildMetadata,omitempty" yaml:"buildMetadata,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ func determineFieldOrder() []string {
|
|||||||
"Configurations",
|
"Configurations",
|
||||||
"Generators",
|
"Generators",
|
||||||
"Transformers",
|
"Transformers",
|
||||||
"Inventory",
|
|
||||||
"Components",
|
"Components",
|
||||||
"OpenAPI",
|
"OpenAPI",
|
||||||
"BuildMetadata",
|
"BuildMetadata",
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ func TestFieldOrder(t *testing.T) {
|
|||||||
"Configurations",
|
"Configurations",
|
||||||
"Generators",
|
"Generators",
|
||||||
"Transformers",
|
"Transformers",
|
||||||
"Inventory",
|
|
||||||
"Components",
|
"Components",
|
||||||
"OpenAPI",
|
"OpenAPI",
|
||||||
"BuildMetadata",
|
"BuildMetadata",
|
||||||
|
|||||||
Reference in New Issue
Block a user