func IsKubernetes(cm charm.CharmMeta) bool {
	switch charm.MetaFormat(cm) {
	case charm.FormatV2:
		if len(cm.Meta().Containers) > 0 {
			return true
		}
		// TODO (hml) 2021-04-19
		// Enhance with logic around Assumes once that is finalized.
	case charm.FormatV1:
		if set.NewStrings(cm.Meta().Series...).Contains(series.Kubernetes.String()) {
			return true
		}
	}
	return false
}
// IsKubernetes reports whether the given charm should be deployed to
// Kubernetes, that is, a v1 charm with series "kubernetes", or a v2 charm
// with containers specified.
IsKubernetes reports whether the given charm should be deployed to
Kubernetes, that is, a v1 charm with series "kubernetes", or a v2 charm
with containers specified.
// IsKubernetes reports whether the given charm should be deployed to // Kubernetes that is a v1 charm with series " kubernetes " or a v2 charm // with containers specified .
func IsKubernetes(cm charm.CharmMeta) bool {
	switch charm.MetaFormat(cm) {
	case charm.FormatV2:
		if len(cm.Meta().Containers) > 0 {
			return true
		}
	case charm.FormatV1:
		if set.NewStrings(cm.Meta().Series...).Contains(series.Kubernetes.String()) {
			return true
		}
	}
	return false
}
func IsKubernetes ( cm charm . CharmMeta ) bool { switch charm . MetaFormat ( cm ) { case charm . FormatV2 : if len ( cm . Meta ( ) . Containers ) > 0 { return true } case charm . FormatV1 : if set . NewStrings ( cm . Meta ( ) . Series ... ) . Contains ( series . Kubernetes . String ( ) ) { return true } } return false }
IsKubernetes reports whether the given charm should be deployed to
Kubernetes, that is, a v1 charm with series "kubernetes", or a v2 charm
with containers specified.
IsKubernetes reports whether the given charm should be deployed to Kubernetes that is a v1 charm with series " kubernetes " or a v2 charm with containers specified .
// TODO (hml) 2021-04-19 // Enhance with logic around Assumes once that is finalized.