Skip to content

Commit 3cb596c

Browse files
Stack track ref for cron runs (#2893)
1 parent dcfc842 commit 3cb596c

File tree

21 files changed

+59
-6
lines changed

21 files changed

+59
-6
lines changed

assets/src/generated/graphql.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11764,6 +11764,8 @@ export type StackCron = {
1176411764
crontab: Scalars['String']['output'];
1176511765
/** configuration overrides for the cron run */
1176611766
overrides?: Maybe<StackOverrides>;
11767+
/** whether to track the stack's ref exactly on cron runs versus the last detected commit */
11768+
trackRef?: Maybe<Scalars['Boolean']['output']>;
1176711769
};
1176811770

1176911771
export type StackCronAttributes = {
@@ -11773,6 +11775,8 @@ export type StackCronAttributes = {
1177311775
crontab: Scalars['String']['input'];
1177411776
/** configuration overrides for the cron run */
1177511777
overrides?: InputMaybe<StackOverridesAttributes>;
11778+
/** whether to track the stack's ref exactly on cron runs versus the last detected commit */
11779+
trackRef?: InputMaybe<Scalars['Boolean']['input']>;
1177611780
};
1177711781

1177811782
export type StackDefinition = {
210 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
-35 Bytes
Binary file not shown.
2 Bytes
Binary file not shown.

charts/controller/crds/deployments.plural.sh_infrastructurestacks.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ spec:
302302
type: boolean
303303
type: object
304304
type: object
305+
trackRef:
306+
description: Whether to track the stack's ref exactly on cron
307+
runs versus the last detected commit. This can theoretically
308+
cause drift between code if referenced via symlinks.
309+
type: boolean
305310
required:
306311
- crontab
307312
type: object

go/client/models_gen.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/controller/api/v1alpha1/infrastructurestack_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ type StackCron struct {
285285
// Overrides for the cron triggered stack run configuration.
286286
// +kubebuilder:validation:Optional
287287
Overrides *StackOverrides `json:"overrides,omitempty"`
288+
289+
// Whether to track the stack's ref exactly on cron runs versus the last detected commit. This can theoretically cause drift between code if referenced via symlinks.
290+
// +kubebuilder:validation:Optional
291+
TrackRef *bool `json:"trackRef,omitempty"`
288292
}
289293

290294
type StackOverrides struct {

go/controller/api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/controller/config/crd/bases/deployments.plural.sh_infrastructurestacks.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ spec:
302302
type: boolean
303303
type: object
304304
type: object
305+
trackRef:
306+
description: Whether to track the stack's ref exactly on cron
307+
runs versus the last detected commit. This can theoretically
308+
cause drift between code if referenced via symlinks.
309+
type: boolean
305310
required:
306311
- crontab
307312
type: object

0 commit comments

Comments
 (0)