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

Add deployment freeze override fields #297

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions pkg/deployments/deploy_release_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ import (

type CreateExecutionAbstractCommandV1 struct {
// also has awkward SpaceIDOrName; see CreateReleaseV1 for explanation
SpaceID string `json:"spaceId"`
ProjectIDOrName string `json:"projectName"`
ForcePackageDownload bool `json:"forcePackageDownload"`
SpecificMachineNames []string `json:"specificMachineNames,omitempty"`
ExcludedMachineNames []string `json:"excludedMachineNames,omitempty"`
SkipStepNames []string `json:"skipStepNames,omitempty"`
UseGuidedFailure *bool `json:"useGuidedFailure"` // note: nil is valid, meaning 'use default'
RunAt string `json:"runAt,omitempty"` // contains a datetimeOffset-parseable value
NoRunAfter string `json:"noRunAfter,omitempty"` // contains a datetimeOffset-parseable value
Variables map[string]string `json:"variables,omitempty"`
SpaceID string `json:"spaceId"`
ProjectIDOrName string `json:"projectName"`
ForcePackageDownload bool `json:"forcePackageDownload"`
SpecificMachineNames []string `json:"specificMachineNames,omitempty"`
ExcludedMachineNames []string `json:"excludedMachineNames,omitempty"`
SkipStepNames []string `json:"skipStepNames,omitempty"`
UseGuidedFailure *bool `json:"useGuidedFailure"` // note: nil is valid, meaning 'use default'
RunAt string `json:"runAt,omitempty"` // contains a datetimeOffset-parseable value
NoRunAfter string `json:"noRunAfter,omitempty"` // contains a datetimeOffset-parseable value
Variables map[string]string `json:"variables,omitempty"`
DeploymentFreezeNames []string `json:"deploymentFreezeNames,omitempty"`
DeploymentFreezeOverrideReason string `json:"deploymentFreezeOverrideReason,omitempty"`
}

type DeploymentServerTask struct {
Expand Down
Loading