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: pod manifest edit feature and option to connect session with node debug pod. #3116

Merged
merged 127 commits into from
Jul 5, 2023

Conversation

gireesh-devtron
Copy link
Member

@gireesh-devtron gireesh-devtron commented Mar 15, 2023

Description

Added pod manifest edit feature and option to connect session with node debug pod.

Fixes #3597

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires 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.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


@gitguardian
Copy link

gitguardian bot commented May 19, 2023

⚠️ GitGuardian has uncovered 4 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
141558 Generic High Entropy Secret fde8a1e scripts/devtron-reference-helm-charts/statefulset-chart_4-18-0/env-values.yaml View secret
2763127 Generic High Entropy Secret fde8a1e scripts/devtron-reference-helm-charts/statefulset-chart_4-18-0/secrets-test-values.yaml View secret
141558 Generic High Entropy Secret ba72399 scripts/devtron-reference-helm-charts/cronjob-chart_1-5-0/env-values.yaml View secret
2763127 Generic High Entropy Secret ba72399 scripts/devtron-reference-helm-charts/cronjob-chart_1-5-0/secrets-test-values.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

deleteOptions := metav1.DeleteOptions{}
if request.ForceDelete {
var gracePeriodSeconds int64 = 0
deleteOptions.GracePeriodSeconds = &gracePeriodSeconds
Copy link
Contributor

Choose a reason for hiding this comment

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

we can use pointer.Int64Ptr here

Copy link
Member Author

Choose a reason for hiding this comment

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

done

impl.logger.Errorw("error in fetching config", "err", err)
return nil, nil, err
}
impl.logger.Infow("reached getExecutor method call")
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need these, If Yes, then Please change Loglevel to Debug

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@sonarcloud
Copy link

sonarcloud bot commented Jul 5, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 11 Code Smells

No Coverage information No Coverage information
4.3% 4.3% Duplication

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

devtron automation moved this from In progress to Reviewer approved Jul 5, 2023
@gireesh-devtron gireesh-devtron merged commit 9b9bb3b into main Jul 5, 2023
3 of 4 checks passed
devtron automation moved this from Reviewer approved to Done Jul 5, 2023
@gireesh-devtron gireesh-devtron deleted the terminal-v3-node-debug branch July 5, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
devtron
  
Done
Development

Successfully merging this pull request may close these issues.

Feature: Launch node debug pod and manifest edit functionality in cluster terminal pods.
2 participants