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

feat: add handling for ssh authMode #1776

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open

Conversation

AbhishekA1509
Copy link
Member

@AbhishekA1509 AbhishekA1509 commented May 23, 2024

Description

This PR intends to bring following changes:

  • Add handling for SSH authMode in global configurations (Gitops) page.
  • Add handling for SSH authMode in app config and chart store.
  • Mark the areas for improvements in global configurations (Gitops) page.

Fixes devtron-labs/devtron#5140

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@AbhishekA1509 AbhishekA1509 self-assigned this May 23, 2024
@github-actions github-actions bot added the PR:Issue-verification-failed PR:Issue-verification-failed label May 23, 2024
@@ -24,7 +24,7 @@ export const DefaultGitOpsConfig = {
active: true,
}

export const DefaultShortGitOps = {
export const DefaultShortGitOps: GitOpsState['isError'] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please create separate type for this.

AWS_CODE_COMMIT = 'AWS_CODE_COMMIT',
}

export type GitProviderType =
Copy link
Contributor

Choose a reason for hiding this comment

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

Infer this from GitProvider

@@ -51,15 +58,32 @@ const GitProviderTabIcons: React.FC<{ gitops: string }> = ({ gitops }) => {
case 'Bitbucket Cloud':
case 'Bitbucket':
return <Bitbucket />
case 'AWS Code Commit':
return <ICAwsCodeCommit className="dc__no-shrink" />
}
}

const GitProviderTab: React.FC<{
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this to types file

Copy link
Member Author

@AbhishekA1509 AbhishekA1509 left a comment

Choose a reason for hiding this comment

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

Have to add url in git account selector

@github-actions github-actions bot added PR:Ready-to-Review PR:Ready-to-Review and removed PR:Issue-verification-failed PR:Issue-verification-failed labels May 24, 2024
src/components/common/helpers/Helpers.tsx Dismissed Show dismissed Hide dismissed
Copy link

sonarcloud bot commented Jun 19, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR:Ready-to-Review PR:Ready-to-Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: AWS Code commit support in Git account
2 participants