func (s *StandaloneWorkload) GetDomain() string {
	return s.Spec.API.Domain
}
methods that implement WorkloadInitializer.
package v1
import (
	"errors"
	"fmt"
	"sigs.k8s.io/kubebuilder/v3/pkg/model/resource"
	"github.com/vmware-tanzu-labs/operator-builder/internal/utils"
)
const (
	defaultStandaloneDescription = `Manage %s workload`
)
var ErrNoComponentsOnStandalone = errors.New("cannot set component workloads on a component workload - only on collections")
func (s *StandaloneWorkload) Validate() error {
	missingFields := []string{}
	if s.Name == "" {
		missingFields = append(missingFields, "name")
	}
	if s.Spec.API.Domain == "" {
		missingFields = append(missingFields, "spec.domain")
	}
	if s.Spec.API.Group == "" {
		missingFields = append(missingFields, "spec.api.group")
	}
	if s.Spec.API.Version == "" {
		missingFields = append(missingFields, "spec.api.version")
	}
	if s.Spec.API.Kind == "" {
		missingFields = append(missingFields, "spec.api.kind")
	}
	if len(missingFields) > 0 {
		return fmt.Errorf("%w: %s", ErrMissingRequiredFields, missingFields)
	}
	return nil
}
func (s *StandaloneWorkload) GetWorkloadKind() WorkloadKind {
	return s.Kind
}