Skip to content

Commit

Permalink
adds cronschedule to JobConfigSpec (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored Aug 31, 2023
1 parent a4525cf commit 7fb3ec0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s-operator/api/v1alpha1/jobconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type JobConfigSpec struct {
// Foo is an example field of JobConfig. Edit jobconfig_types.go to remove/update
Source *JobConfigSource `json:"source"`
Destinations []*JobConfigDestination `json:"destinations"`
CronSchedule *string `json:"cronSchedule,omitempty"`
}

type JobConfigSource struct {
Expand Down
5 changes: 5 additions & 0 deletions k8s-operator/api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions k8s-operator/config/crd/bases/neosync.dev_jobconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
spec:
description: JobConfigSpec defines the desired state of JobConfig
properties:
cronSchedule:
type: string
destinations:
items:
properties:
Expand Down

0 comments on commit 7fb3ec0

Please sign in to comment.