Skip to content

Commit f183916

Browse files
committed
Mark ttlAfterFinished field as nullable
1 parent e2df158 commit f183916

6 files changed

Lines changed: 6 additions & 0 deletions

operator/apis/execution/v1/parsedefinition_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type ParseDefinitionSpec struct {
3434
// ImagePullSecrets used to access private parser images
3535
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
3636
// TTLSecondsAfterFinished configures the ttlSecondsAfterFinished field for the created parse job
37+
// +nullable
3738
TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
3839
}
3940

operator/apis/execution/v1/scancompletionhook.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type ScanCompletionHookSpec struct {
4747
// ServiceAccountName Name of the serviceAccount Name used. Should only be used if your hook needs specifc RBAC Access. Otherwise the hook is run using a "scan-completion-hook" service account. The service account should have at least "get" rights on scans.execution.securecodebox.io, and "get" & "patch" scans.execution.securecodebox.io/status
4848
ServiceAccountName *string `json:"serviceAccountName,omitempty"`
4949
// TTLSecondsAfterFinished configures the ttlSecondsAfterFinished field for the created hook job
50+
// +nullable
5051
TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
5152
}
5253

operator/config/crd/bases/execution.securecodebox.io_parsedefinitions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ spec:
6060
description: TTLSecondsAfterFinished configures the ttlSecondsAfterFinished
6161
field for the created parse job
6262
format: int32
63+
nullable: true
6364
type: integer
6465
type: object
6566
status:

operator/config/crd/bases/execution.securecodebox.io_scancompletionhooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ spec:
167167
description: TTLSecondsAfterFinished configures the ttlSecondsAfterFinished
168168
field for the created hook job
169169
format: int32
170+
nullable: true
170171
type: integer
171172
type:
172173
description: HookType Defines weather the hook should be able to change

operator/crds/execution.securecodebox.io_parsedefinitions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ spec:
6060
description: TTLSecondsAfterFinished configures the ttlSecondsAfterFinished
6161
field for the created parse job
6262
format: int32
63+
nullable: true
6364
type: integer
6465
type: object
6566
status:

operator/crds/execution.securecodebox.io_scancompletionhooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ spec:
167167
description: TTLSecondsAfterFinished configures the ttlSecondsAfterFinished
168168
field for the created hook job
169169
format: int32
170+
nullable: true
170171
type: integer
171172
type:
172173
description: HookType Defines weather the hook should be able to change

0 commit comments

Comments
 (0)