diff --git a/e2e/resources/attachedcluster.go b/e2e/resources/attachedcluster.go index ef183648..6b64cdb1 100644 --- a/e2e/resources/attachedcluster.go +++ b/e2e/resources/attachedcluster.go @@ -44,7 +44,7 @@ func NewAttachedCluster(namespace string, name string, config clusterv1a1.Secret } } -// CreateAttachedCluster create AttachedCluster. +// CreateAttachedCluster create or update AttachedCluster. func CreateOrUpdateAttachedCluster(client kurator.Interface, attachedCluster *clusterv1a1.AttachedCluster) error { _, createErr := client.ClusterV1alpha1().AttachedClusters(attachedCluster.GetNamespace()).Create(context.TODO(), attachedCluster, metav1.CreateOptions{}) if createErr != nil { diff --git a/e2e/resources/fleet.go b/e2e/resources/fleet.go index 13b29703..60fc367b 100644 --- a/e2e/resources/fleet.go +++ b/e2e/resources/fleet.go @@ -46,7 +46,7 @@ func NewFleet(namespace string, name string, clusters []*corev1.ObjectReference) } } -// CreateAttachedCluster create AttachedCluster. +// CreateAttachedCluster create or update Fleet. func CreateOrUpdateFleet(client kurator.Interface, fleet *fleetv1a1.Fleet) error { _, createErr := client.FleetV1alpha1().Fleets(fleet.GetNamespace()).Create(context.TODO(), fleet, metav1.CreateOptions{}) if createErr != nil { diff --git a/e2e/resources/secret.go b/e2e/resources/secret.go index 113d5e38..221427b5 100644 --- a/e2e/resources/secret.go +++ b/e2e/resources/secret.go @@ -41,7 +41,7 @@ func NewSecret(namespace string, name string, data map[string][]byte) *corev1.Se } } -// CreateSecret create Secret. +// CreateSecret create or update Secret. func CreateOrUpdateSecret(client kubernetes.Interface, secret *corev1.Secret) error { _, createErr := client.CoreV1().Secrets(secret.GetNamespace()).Create(context.TODO(), secret, metav1.CreateOptions{}) if createErr != nil {