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

Fix deployment name in backup config #2384

Closed
wants to merge 1 commit into from

Conversation

atrivedi-px
Copy link
Collaborator

@atrivedi-px atrivedi-px commented Apr 18, 2024

What this PR does / why we need it:
Fix deployment name in backup config

Which issue(s) this PR fixes (optional)
Closes #DS-9250

Special notes for your reviewer:
https://jenkins.pwx.dev.purestorage.com/job/PDS/job/pds2.0-byoc-branch-build-test/434/console

@atrivedi-px atrivedi-px added the ready-for-review PR is ready for review label Apr 18, 2024
@atrivedi-px atrivedi-px self-assigned this Apr 18, 2024
@atrivedi-px atrivedi-px requested a review from a team as a code owner April 18, 2024 15:42
@@ -139,6 +139,16 @@ func (wfDataService *WorkflowDataService) ValidatePdsDataServiceDeployments(depl
return nil
}

// GetDeploymentPodName gets the pod name for the deployment
func (wfDataService *WorkflowDataService) GetDeploymentPodName(deploymentId string) (string, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method is not requrired, line no #114 returns the deploymentPod Name and deployment

@@ -149,7 +159,12 @@ func (wfDataService *WorkflowDataService) GetDsDeploymentResources(deployment ma
deploymentName, deploymentId := GetDeploymentNameAndId(deployment)
log.Debugf("deployment Name [%s] and Id [%s]", deploymentName, deploymentId)

dbConfig, err = dslibs.GetDeploymentConfigurations(namespace, dataServiceName, deploymentName)
podName, err := wfDataService.GetDeploymentPodName(deploymentId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we directly call _, podName, err := dslibs.GetDeployment(deploymentId) instead of having a seperate workflow only to get GetDeploymentPodName

@atrivedi-px
Copy link
Collaborator Author

Changes are added as part of #2390

@Madanagopal19 Madanagopal19 deleted the topic/atrivedi-px/DS-9250 branch June 7, 2024 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants