Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating federated-identity twice causes unexpected error #1428

Open
TheOnlyWei opened this issue Aug 8, 2024 · 0 comments
Open

Creating federated-identity twice causes unexpected error #1428

TheOnlyWei opened this issue Aug 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TheOnlyWei
Copy link

Describe the bug
You get this error if you try to create a federated identity using parameters of an existing federated identity:

Error: failed to run phase federated-identity: failed to add federated credential: parsing time "2024-08-08T02:40:57" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "Z07:00"

Ideally, it should complain it exists already and not throw an unrelated error.

Steps To Reproduce
To reproduce, run this command twice:

azwi serviceaccount create phase federated-identity `
--aad-application-name "${APPLICATION_NAME}" `
--service-account-namespace "${SERVICE_ACCOUNT_NAMESPACE}" `
--service-account-name "${SERVICE_ACCOUNT_NAME}" `
--service-account-issuer-url "${SERVICE_ACCOUNT_ISSUER}"

Expected behavior
Not throw an error.

Logs

Environment

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:
@TheOnlyWei TheOnlyWei added the bug Something isn't working label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant