Skip to content

Commit

Permalink
Removed not used field
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Jan 23, 2024
1 parent 3a2821b commit 5d02438
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions api/jobs/models/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ type Job struct {
// items:
// "$ref": "#/definitions/ComponentSummary"
Components []*deploymentModels.ComponentSummary `json:"components,omitempty"`

// ComponentsToDeploy List of components to deploy
// OPTIONAL If specified, only these components are deployed
//
// required: false
ComponentsToDeploy []string `json:"componentsToDeploy,omitempty"`
}

// GetJobFromRadixJob Gets job from a radix job
Expand Down Expand Up @@ -167,7 +161,6 @@ func GetJobFromRadixJob(job *radixv1.RadixJob, jobDeployments []*deploymentModel
case radixv1.Deploy:
jobModel.ImageTagNames = job.Spec.Deploy.ImageTagNames
jobModel.CommitID = job.Spec.Deploy.CommitID
jobModel.ComponentsToDeploy = job.Spec.Deploy.ComponentsToDeploy
case radixv1.Promote:
jobModel.PromotedFromDeployment = job.Spec.Promote.DeploymentName
jobModel.PromotedFromEnvironment = job.Spec.Promote.FromEnvironment
Expand Down
8 changes: 0 additions & 8 deletions swaggerui/html/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6310,14 +6310,6 @@
},
"x-go-name": "Components"
},
"componentsToDeploy": {
"description": "ComponentsToDeploy List of components to deploy\nOPTIONAL If specified, only these components are deployed",
"type": "array",
"items": {
"type": "string"
},
"x-go-name": "ComponentsToDeploy"
},
"created": {
"description": "Created timestamp",
"type": "string",
Expand Down

0 comments on commit 5d02438

Please sign in to comment.