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

support target CLI #4465

Merged
merged 4 commits into from
Mar 28, 2024
Merged

support target CLI #4465

merged 4 commits into from
Mar 28, 2024

Conversation

d-g-town
Copy link
Collaborator

@d-g-town d-g-town commented Mar 28, 2024

Screenshot 2024-03-28 at 2 18 20 PM

Screenshot 2024-03-28 at 2 18 34 PM

cli/cmd/commands/target.go Outdated Show resolved Hide resolved
@@ -22,8 +22,13 @@ func (repo *DeploymentTargetRepository) DeploymentTargetBySelectorAndSelectorTyp
return nil, errors.New("cannot read database")
}

// ListForCluster returns all deployment targets for a project
func (repo *DeploymentTargetRepository) ListForCluster(projectID uint, clusterID uint, preview bool) ([]*models.DeploymentTarget, error) {

Choose a reason for hiding this comment

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

would be nice to make cluster id and preview functional arguments

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for sure, will add

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually the interface logic and gorm made this annoying: honestly the fix is to move this logic to CCP. Will do later

@d-g-town d-g-town force-pushed the dgtown/support-target-cli branch from 13c48e1 to eb48c88 Compare March 28, 2024 20:12
@d-g-town d-g-town merged commit 52808da into master Mar 28, 2024
9 checks passed
@d-g-town d-g-town deleted the dgtown/support-target-cli branch March 28, 2024 20:35
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