func()

in pkg/apis/bundle/v1alpha1/helpers.go [96:112]


func (b *Bundle) ComponentSet() *ComponentSet {
	cset := &ComponentSet{
		TypeMeta: metav1.TypeMeta{
			APIVersion: "bundle.gke.io/v1alpha1",
			Kind:       "ComponentSet",
		},
		Spec: ComponentSetSpec{
			SetName: b.SetName,
			Version: b.Version,
		},
	}
	for _, comp := range b.Components {
		cset.Spec.Components = append(cset.Spec.Components, comp.ComponentReference())
	}
	cset.MakeAndSetName()
	return cset
}