INNER CODE UNIT · Go

convertGslbLegacyToIO

k8gb-io/k8gb · controllers/conversion_k8gbio.go:36

func convertGslbLegacyToIO(gslb *k8gbv1beta1.Gslb) *k8gbv1beta1io.Gslb {
	if gslb == nil {
		return &k8gbv1beta1io.Gslb{}
	}

	return &k8gbv1beta1io.Gslb{
		TypeMeta: metav1.TypeMeta{
			APIVersion: k8gbv1beta1io.GroupVersion.String(),
			Kind:       gslbKind,
		},
		ObjectMeta: metav1.ObjectMeta{
			Name:        gslb.Name,
			Namespace:   gslb.Namespace,
			Annotations: maps.Clone(gslb.Annotations),
		},
		Spec: convertSpecLegacyToIO(gslb),
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…