Skip to content

Commit 5d15d7c

Browse files
committed
env: helm
1 parent b50b761 commit 5d15d7c

3 files changed

+156
-0
lines changed

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,56 @@ spec:
640640
!!merge <<: *TypeStringBool
641641
description: |
642642
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
643+
hooks: &TypeReconcileHooks
644+
type: object
645+
description: "hooks to execute before and after host reconcile"
646+
properties:
647+
pre:
648+
type: array
649+
description: "actions to execute before reconcile"
650+
nullable: true
651+
items: &TypeHookAction
652+
type: object
653+
properties:
654+
sql:
655+
type: object
656+
properties:
657+
queries:
658+
type: array
659+
nullable: true
660+
items:
661+
type: string
662+
shell:
663+
type: object
664+
properties:
665+
command:
666+
type: array
667+
nullable: true
668+
items:
669+
type: string
670+
container:
671+
type: string
672+
http:
673+
type: object
674+
properties:
675+
url:
676+
type: string
677+
method:
678+
type: string
679+
target:
680+
type: string
681+
description: "where to execute hook for cluster-level hooks: firstHost (default), allHosts, allShards"
682+
enum:
683+
- ""
684+
- "firstHost"
685+
- "allHosts"
686+
- "allShards"
687+
post:
688+
type: array
689+
description: "actions to execute after reconcile"
690+
nullable: true
691+
items:
692+
!!merge <<: *TypeHookAction
643693
reconcile:
644694
!!merge <<: *TypeReconcile
645695
description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"
@@ -977,6 +1027,9 @@ spec:
9771027
!!merge <<: *TypeReconcileRuntime
9781028
host:
9791029
!!merge <<: *TypeReconcileHost
1030+
hooks:
1031+
!!merge <<: *TypeReconcileHooks
1032+
description: "cluster-level hooks to execute before and after cluster reconcile"
9801033
layout:
9811034
type: object
9821035
description: |

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,56 @@ spec:
640640
!!merge <<: *TypeStringBool
641641
description: |
642642
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
643+
hooks: &TypeReconcileHooks
644+
type: object
645+
description: "hooks to execute before and after host reconcile"
646+
properties:
647+
pre:
648+
type: array
649+
description: "actions to execute before reconcile"
650+
nullable: true
651+
items: &TypeHookAction
652+
type: object
653+
properties:
654+
sql:
655+
type: object
656+
properties:
657+
queries:
658+
type: array
659+
nullable: true
660+
items:
661+
type: string
662+
shell:
663+
type: object
664+
properties:
665+
command:
666+
type: array
667+
nullable: true
668+
items:
669+
type: string
670+
container:
671+
type: string
672+
http:
673+
type: object
674+
properties:
675+
url:
676+
type: string
677+
method:
678+
type: string
679+
target:
680+
type: string
681+
description: "where to execute hook for cluster-level hooks: firstHost (default), allHosts, allShards"
682+
enum:
683+
- ""
684+
- "firstHost"
685+
- "allHosts"
686+
- "allShards"
687+
post:
688+
type: array
689+
description: "actions to execute after reconcile"
690+
nullable: true
691+
items:
692+
!!merge <<: *TypeHookAction
643693
reconcile:
644694
!!merge <<: *TypeReconcile
645695
description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"
@@ -977,6 +1027,9 @@ spec:
9771027
!!merge <<: *TypeReconcileRuntime
9781028
host:
9791029
!!merge <<: *TypeReconcileHost
1030+
hooks:
1031+
!!merge <<: *TypeReconcileHooks
1032+
description: "cluster-level hooks to execute before and after cluster reconcile"
9801033
layout:
9811034
type: object
9821035
description: |

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,56 @@ spec:
437437
!!merge <<: *TypeStringBool
438438
description: |
439439
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
440+
hooks:
441+
type: object
442+
description: "default host-level hooks to execute before and after host reconcile"
443+
properties:
444+
pre:
445+
type: array
446+
description: "actions to execute before host reconcile"
447+
nullable: true
448+
items: &TypeHookActionChop
449+
type: object
450+
properties:
451+
sql:
452+
type: object
453+
properties:
454+
queries:
455+
type: array
456+
nullable: true
457+
items:
458+
type: string
459+
shell:
460+
type: object
461+
properties:
462+
command:
463+
type: array
464+
nullable: true
465+
items:
466+
type: string
467+
container:
468+
type: string
469+
http:
470+
type: object
471+
properties:
472+
url:
473+
type: string
474+
method:
475+
type: string
476+
target:
477+
type: string
478+
description: "where to execute hook: firstHost (default), allHosts, allShards"
479+
enum:
480+
- ""
481+
- "firstHost"
482+
- "allHosts"
483+
- "allShards"
484+
post:
485+
type: array
486+
description: "actions to execute after host reconcile"
487+
nullable: true
488+
items:
489+
!!merge <<: *TypeHookActionChop
440490
annotation:
441491
type: object
442492
description: "defines which metadata.annotations items will include or exclude during render StatefulSet, Pod, PVC resources"

0 commit comments

Comments
 (0)