Skip to content

Commit f7353b1

Browse files
committed
copy TypeMeta from apimachinery
1 parent 0faef46 commit f7353b1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pkg/types/kustomization.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,21 @@ limitations under the License.
1818
package types
1919

2020
import (
21-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22-
2321
"sigs.k8s.io/kustomize/pkg/patch"
2422
)
2523

24+
// TypeMeta copies apimachinery/pkg/apis/meta/v1.TypeMeta
25+
type TypeMeta struct {
26+
// Kind copies apimachinery/pkg/apis/meta/v1.Typemeta.Kind
27+
Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`
28+
29+
// APIVersion copies apimachinery/pkg/apis/meta/v1.Typemeta.APIVersion
30+
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"`
31+
}
32+
2633
// Kustomization holds the information needed to generate customized k8s api resources.
2734
type Kustomization struct {
28-
metav1.TypeMeta `json:",inline" yaml:",inline"`
35+
TypeMeta `json:",inline" yaml:",inline"`
2936

3037
// NamePrefix will prefix the names of all resources mentioned in the kustomization
3138
// file including generated configmaps and secrets.

0 commit comments

Comments
 (0)