Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
lubronzhan committed Feb 5, 2025
1 parent b6c6a25 commit fd42a66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions controllers/akodeploymentconfig/user/user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package user

import (
"context"
"fmt"

"github.com/go-logr/logr"
"github.com/pkg/errors"
Expand Down Expand Up @@ -302,6 +303,9 @@ func (r *AkoUserReconciler) createOrUpdateAviUser(aviUsername, aviPassword, tena
// Update the password when user found, this is needed when the AVI user was
// created before the mc Secret. And this operation will sync
// the User's password to be the same as mc Secret's
fmt.Println("Updating the AVI User's password")
fmt.Println("avi user is nil????")
fmt.Println(aviUser)
aviUser.Password = &aviPassword
return r.aviClient.UserUpdate(aviUser)
}
Expand Down
8 changes: 0 additions & 8 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,6 @@ function fatal() { error "${@}" || exit "${?}"; }
# safe for linux and darwin
function base64d() { base64 -D 2>/dev/null || base64 -d; }

# safe for linux and darwin
function base64e() { base64 -w0 2>/dev/null || base64; }

function md5safe() { md5sum 2>/dev/null || md5; }

# base64e encodes STDIN to base64

# kubectl_mgc executes kubectl against management cluster.
function kubectl_mgc() { kubectl --context "kind-${KIND_MANAGEMENT_CLUSTER}" "${@}"; }

Expand Down Expand Up @@ -408,4 +401,3 @@ EOF
[[ -n "${E2E_DOWN}" ]] && e2e_down

exit 0

0 comments on commit fd42a66

Please # to comment.