diff --git a/cmd/createDeployPipelineJob.go b/cmd/createDeployPipelineJob.go index bb39c71..0db3069 100644 --- a/cmd/createDeployPipelineJob.go +++ b/cmd/createDeployPipelineJob.go @@ -18,7 +18,6 @@ import ( "errors" "fmt" "regexp" - "strings" log "github.com/sirupsen/logrus" @@ -98,13 +97,11 @@ Examples: triggerPipelineParams := application.NewTriggerPipelineDeployParams() triggerPipelineParams.SetAppName(*appName) parametersDeploy := models.PipelineParametersDeploy{ - ToEnvironment: targetEnvironment, - ImageTagNames: imageTagNames, - TriggeredBy: triggeredByUser, - CommitID: commitID, - } - if components := strings.Join(componentsToDeploy, ","); len(components) > 0 { - parametersDeploy.Components = components + ToEnvironment: targetEnvironment, + ImageTagNames: imageTagNames, + TriggeredBy: triggeredByUser, + CommitID: commitID, + ComponentsToDeploy: componentsToDeploy, } triggerPipelineParams.SetPipelineParametersDeploy(¶metersDeploy) diff --git a/generated-client/models/component.go b/generated-client/models/component.go index d1d70e4..d6ea085 100644 --- a/generated-client/models/component.go +++ b/generated-client/models/component.go @@ -21,6 +21,9 @@ import ( // swagger:model Component type Component struct { + // Commit ID for the component. It can be different from the Commit ID, specified in deployment label + CommitID string `json:"CommitID,omitempty"` + // Array of external DNS configurations ExternalDNS []*ExternalDNS `json:"externalDNS"` diff --git a/generated-client/models/job.go b/generated-client/models/job.go index 489e8c6..9f1884a 100644 --- a/generated-client/models/job.go +++ b/generated-client/models/job.go @@ -34,6 +34,10 @@ type Job struct { // Deprecated: Inspect each deployment to get list of components created by the job Components []*ComponentSummary `json:"components"` + // ComponentsToDeploy List of components to deploy + // OPTIONAL If specified, only these components are deployed + ComponentsToDeploy []string `json:"componentsToDeploy"` + // Created timestamp // Example: 2006-01-02T15:04:05Z Created string `json:"created,omitempty"` diff --git a/generated-client/models/pipeline_parameters_deploy.go b/generated-client/models/pipeline_parameters_deploy.go index d7a589e..8ee636f 100644 --- a/generated-client/models/pipeline_parameters_deploy.go +++ b/generated-client/models/pipeline_parameters_deploy.go @@ -22,10 +22,9 @@ type PipelineParametersDeploy struct { // Example: 4faca8595c5283a9d0f17a623b9255a0d9866a2e CommitID string `json:"commitID,omitempty"` - // Components List of components to deploy + // ComponentsToDeploy List of components to deploy // OPTIONAL If specified, only these components are deployed - // Example: component1,component2 - Components string `json:"components,omitempty"` + ComponentsToDeploy []string `json:"componentsToDeploy"` // Image tags names for components // Example: component1=tag1,component2=tag2