Skip to content

Commit

Permalink
Added batchId field to the radixbatch (#1183)
Browse files Browse the repository at this point in the history
* Added batchId field to the radixbatch

* Removed batchId field from status

* Added unit-test

* Removed unit-test

* Removed unit-test
  • Loading branch information
satr authored Aug 30, 2024
1 parent b6eb860 commit 671bb5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/radix-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: radix-operator
version: 1.38.0
appVersion: 1.58.0
version: 1.38.1
appVersion: 1.58.1
kubeVersion: ">=1.24.0"
description: Radix Operator
keywords:
Expand Down
3 changes: 3 additions & 0 deletions charts/radix-operator/templates/radixbatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ spec:
spec:
description: RadixBatchSpec is the specification of batch jobs.
properties:
batchId:
description: Defines a user defined ID of the batch.
type: string
jobs:
description: List of batch jobs to run.
items:
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/radix/v1/radixbatchtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ type RadixBatchSpec struct {
// Reference to the RadixDeployment containing the job component spec.
RadixDeploymentJobRef RadixDeploymentJobComponentSelector `json:"radixDeploymentJobRef"`

// Defines a user defined ID of the batch.
// +optional
BatchId string `json:"batchId,omitempty"`

// List of batch jobs to run.
// +listType:=map
// +listMapKey:=name
Expand Down

0 comments on commit 671bb5c

Please sign in to comment.