Merge pull request #265 from Liujingfang1/metadata

add typemeta to kustomization
This commit is contained in:
Jeff Regan
2018-08-20 13:59:43 -07:00
committed by GitHub
3 changed files with 52 additions and 12 deletions

View File

@@ -17,8 +17,14 @@ limitations under the License.
// Package types holds struct definitions that should find a better home.
package types
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Kustomization holds the information needed to generate customized k8s api resources.
type Kustomization struct {
metav1.TypeMeta `json:",inline" yaml:",inline"`
// NamePrefix will prefix the names of all resources mentioned in the kustomization
// file including generated configmaps and secrets.
NamePrefix string `json:"namePrefix,omitempty" yaml:"namePrefix,omitempty"`