Troubleshoot credentials creation¶
If the Credentials
object is in the Error
or Invalid
state,
verify whether the provided credentials are valid and adjust them accordingly.
To adjust the Credentials object:
Verify the
Credentials
object status:kubectl --kubeconfig <pathToKindKubeconfig> \ get <providerName>credentials <credentialsObjectName> -o jsonpath='{.status.valid}{"\n"}'
Replace
<providerName>
with the name of the selected provider. For example,openstackcredentials
orvspherecredentials
.Open the
Credentials
object for editing:kubectl --kubeconfig <pathToKindKubeconfig> \ edit <providerName>credentials <credentialsObjectName>
Adjust the credentials password:
In
password.secret.name
of theCredentials
objectspec
section, obtain the relatedSecret
object.Replace the existing base64-encoded string of the related secret with a new one containing the adjusted password:
apiVersion: v1 kind: Secret data: value: Zm9vYmFyCg==