Skip to content

Commit

Permalink
[Feature] Add preStartScriptLocation field and support in helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: yandongxiao <[email protected]>
  • Loading branch information
yandongxiao committed Apr 22, 2024
1 parent 2829c25 commit 2b77408
Show file tree
Hide file tree
Showing 19 changed files with 612 additions and 15 deletions.
135 changes: 135 additions & 0 deletions config/crd/bases/starrocks.com_starrocksclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,19 @@ spec:
description: annotation for pods. user can config monitor annotation
for collect to monitor system.
type: object
args:
description: |-
Arguments to the entrypoint.
If this is not provided, it will use $(FE_SERVICE_NAME) for all components.
Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
items:
type: string
type: array
beEnvVars:
description: beEnvVars is a slice of environment variables that
are added to the pods, the default is empty.
Expand Down Expand Up @@ -1001,6 +1014,16 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
command:
description: "Entrypoint array. Not executed within a shell.\nIf
this is not provided, it will use default entrypoint for different
components:\n\t1. For FE, it will use /opt/starrocks/fe_entrypoint.sh
as the entrypoint.\n 2. For BE, it will use /opt/starrocks/be_entrypoint.sh
as the entrypoint.\n 3. For CN, it will use /opt/starrocks/cn_entrypoint.sh
as the entrypoint.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"
items:
type: string
type: array
configMapInfo:
description: the reference for configMap which store the config
info to start starrocks. e.g. be.conf, fe.conf, cn.conf.
Expand All @@ -1017,6 +1040,17 @@ spec:
mount any files to container.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down Expand Up @@ -2631,6 +2665,17 @@ spec:
description: the reference for secrets.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down Expand Up @@ -4910,6 +4955,19 @@ spec:
description: annotation for pods. user can config monitor annotation
for collect to monitor system.
type: object
args:
description: |-
Arguments to the entrypoint.
If this is not provided, it will use $(FE_SERVICE_NAME) for all components.
Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
items:
type: string
type: array
autoScalingPolicy:
description: AutoScalingPolicy auto scaling strategy
properties:
Expand Down Expand Up @@ -5691,6 +5749,16 @@ spec:
- name
type: object
type: array
command:
description: "Entrypoint array. Not executed within a shell.\nIf
this is not provided, it will use default entrypoint for different
components:\n\t1. For FE, it will use /opt/starrocks/fe_entrypoint.sh
as the entrypoint.\n 2. For BE, it will use /opt/starrocks/be_entrypoint.sh
as the entrypoint.\n 3. For CN, it will use /opt/starrocks/cn_entrypoint.sh
as the entrypoint.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"
items:
type: string
type: array
configMapInfo:
description: the reference for configMap which store the config
info to start starrocks. e.g. be.conf, fe.conf, cn.conf.
Expand All @@ -5707,6 +5775,17 @@ spec:
mount any files to container.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down Expand Up @@ -7321,6 +7400,17 @@ spec:
description: the reference for secrets.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down Expand Up @@ -10901,6 +10991,19 @@ spec:
description: annotation for pods. user can config monitor annotation
for collect to monitor system.
type: object
args:
description: |-
Arguments to the entrypoint.
If this is not provided, it will use $(FE_SERVICE_NAME) for all components.
Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
items:
type: string
type: array
capabilities:
description: |-
refer to https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-capabilities-for-a-container
Expand Down Expand Up @@ -10946,6 +11049,16 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
command:
description: "Entrypoint array. Not executed within a shell.\nIf
this is not provided, it will use default entrypoint for different
components:\n\t1. For FE, it will use /opt/starrocks/fe_entrypoint.sh
as the entrypoint.\n 2. For BE, it will use /opt/starrocks/be_entrypoint.sh
as the entrypoint.\n 3. For CN, it will use /opt/starrocks/cn_entrypoint.sh
as the entrypoint.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"
items:
type: string
type: array
configMapInfo:
description: the reference for configMap which store the config
info to start starrocks. e.g. be.conf, fe.conf, cn.conf.
Expand All @@ -10962,6 +11075,17 @@ spec:
mount any files to container.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down Expand Up @@ -12691,6 +12815,17 @@ spec:
description: the reference for secrets.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down
45 changes: 45 additions & 0 deletions config/crd/bases/starrocks.com_starrockswarehouses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,19 @@ spec:
description: annotation for pods. user can config monitor annotation
for collect to monitor system.
type: object
args:
description: |-
Arguments to the entrypoint.
If this is not provided, it will use $(FE_SERVICE_NAME) for all components.
Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
items:
type: string
type: array
autoScalingPolicy:
description: AutoScalingPolicy defines auto scaling policy
properties:
Expand Down Expand Up @@ -1497,6 +1510,16 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
command:
description: "Entrypoint array. Not executed within a shell.\nIf
this is not provided, it will use default entrypoint for different
components:\n\t1. For FE, it will use /opt/starrocks/fe_entrypoint.sh
as the entrypoint.\n 2. For BE, it will use /opt/starrocks/be_entrypoint.sh
as the entrypoint.\n 3. For CN, it will use /opt/starrocks/cn_entrypoint.sh
as the entrypoint.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"
items:
type: string
type: array
configMapInfo:
description: the reference for configMap which store the config
info to start starrocks. e.g. be.conf, fe.conf, cn.conf.
Expand All @@ -1513,6 +1536,17 @@ spec:
mount any files to container.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down Expand Up @@ -3242,6 +3276,17 @@ spec:
description: the reference for secrets.
items:
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
format: int32
type: integer
mountPath:
description: |-
Path within the container at which the volume should be mounted. Must
Expand Down
Loading

0 comments on commit 2b77408

Please sign in to comment.