Skip to content

Conversation

@josvazg
Copy link
Collaborator

@josvazg josvazg commented Oct 16, 2024

Proposed changes

Jira ticket: CLOUDP-278912

The Atlas CLI Kubernetes config export should not fail when there is no Federated Auth configured.

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@josvazg josvazg requested review from a team as code owners October 16, 2024 09:07
// Gets the FederationAuthSetting
federatedAuthentificationSetting, err := e.dataProvider.FederationSetting(&admin.GetFederationSettingsApiParams{OrgId: e.orgID})
if err != nil {
if isAPIError(err, "RESOURCE_NOT_FOUND") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant new function. Please use admin.IsErrorCode()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@josvazg josvazg requested a review from helderjs October 16, 2024 09:51
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
@josvazg josvazg force-pushed the CLOUDP-278912/fix-no-fed-auth-export branch from e210fb7 to 755a8c8 Compare October 16, 2024 09:57
@josvazg josvazg merged commit 0a9e1ad into master Oct 17, 2024
21 checks passed
@josvazg josvazg deleted the CLOUDP-278912/fix-no-fed-auth-export branch October 17, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants