You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @lonelyCZ, do you have some time to help my question?
pkg/karmadactl/register/register.go:375
// preflight checks the deployment environment of the member clusterfunc (o*CommandRegisterOption) preflight() []error {
varerrlist []error// check if the given file already existerrlist=appendError(errlist, checkFileIfExist(filepath.Join(KarmadaDir, KarmadaAgentBootstrapKubeConfigFileName)))
errlist=appendError(errlist, checkFileIfExist(filepath.Join(KarmadaDir, KarmadaAgentKubeConfigFileName)))
errlist=appendError(errlist, checkFileIfExist(CACertPath))
In above code, CACertPath is just a default const value /etc/karmada/pki/ca.crt, why if this local path exist should directly return error?
I mean, if I specified --ca-cert-path=/etc/karmada/pki/other-ca.crt, why if /etc/karmada/pki/ca.crt exist shall return error? May be is a small bug?
Much appreciate your help!
Environment:
Karmada version:
Kubernetes version:
Others:
The text was updated successfully, but these errors were encountered:
Please provide an in-depth description of the question you have:
What do you think about this question?:
Hello @lonelyCZ, do you have some time to help my question?
pkg/karmadactl/register/register.go:375
In above code,
CACertPath
is just a default const value/etc/karmada/pki/ca.crt
, why if this local path exist should directly return error?I mean, if I specified
--ca-cert-path=/etc/karmada/pki/other-ca.crt
, why if/etc/karmada/pki/ca.crt
exist shall return error? May be is a small bug?Much appreciate your help!
Environment:
The text was updated successfully, but these errors were encountered: