Skip to content

Commit

Permalink
fix(oncall): set required Shift fields to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-bauer committed Jan 27, 2025
1 parent a1bf217 commit 077d65e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion grafanaplane/oncall/shift.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ local forProvider = shift.spec.parameters.forProvider;
shift.new(xtd.ascii.stringToRFC1123(name))
+ forProvider.withName(name)
+ forProvider.withStart(start)
+ forProvider.withDuration(duration),
+ forProvider.withDuration(duration)
+ forProvider.withInterval(1) // default value upstream, still required by crossplane
+ forProvider.withWeekStart('SU') // default value upstream, still required by crossplane
,

'#withId':: d.func.new(
'`withId` sets the resource name for a Shift',
Expand Down

0 comments on commit 077d65e

Please sign in to comment.