Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Feb 23, 2024
1 parent be53836 commit 19dbb53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/resources/attachedcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion e2e/resources/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion e2e/resources/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 19dbb53

Please sign in to comment.