- 
                Notifications
    You must be signed in to change notification settings 
- Fork 554
feat: Rotate pods feature #3420
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
Conversation
| resourceResponse.ErrorResponse = "restarting not supported" | ||
| } else { | ||
| activitySnapshot := time.Now().Format(time.RFC3339) | ||
| data := fmt.Sprintf(`{"metadata": {"annotations": {"devtron.ai/restartedAt": "%s"}},"spec": {"template": {"metadata": {"annotations": {"devtron.ai/activity": "%s"}}}}}`, activitySnapshot, activitySnapshot) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can make const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is required.
        
          
                util/k8s/k8sApplicationService.go
              
                Outdated
          
        
      | if resourceKind != kube.DeploymentKind && resourceKind != kube.StatefulSetKind && resourceKind != kube.DaemonSetKind && resourceKind != util.K8sClusterResourceRolloutKind { | ||
| impl.logger.Errorf("restarting not supported for kind %s name %s", resourceKind, resourceIdentifier.Name) | ||
| containsError = true | ||
| resourceResponse.ErrorResponse = "restarting not supported" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can make const
| Kudos, SonarCloud Quality Gate passed!     
 
 | 








Description
Fixes #3276
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:
Does this PR introduce a user-facing change?