Skip to content

Commit

Permalink
feat: define pod volume devices/mounts field spec
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Sep 14, 2023
1 parent f93fb38 commit acc15bc
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 2 deletions.
28 changes: 28 additions & 0 deletions deploy_config_generator/output/kube_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,38 @@
volume_devices=dict(
type='list',
subtype='dict',
fields=dict(
device_path=dict(
type='str',
),
name=dict(
type='str',
),
),
),
volume_mounts=dict(
type='list',
subtype='dict',
fields=dict(
mount_path=dict(
type='str',
),
mount_propagation=dict(
type='str',
),
name=dict(
type='str',
),
read_only=dict(
type='bool',
),
sub_path=dict(
type='str',
),
sub_path_expr=dict(
type='str',
),
),
),
working_dir=dict(
type='str',
Expand Down
16 changes: 16 additions & 0 deletions docs/plugin_kube_cronjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,15 @@ Name | Type | Required | Default | Description
`spec . job_template . spec . template . spec . containers . termination_message_policy`|`str`|no||
`spec . job_template . spec . template . spec . containers . tty`|`bool`|no||
`spec . job_template . spec . template . spec . containers . volume_devices`|`list` (of `dict`)|no||
`spec . job_template . spec . template . spec . containers . volume_devices . device_path`|`str`|no||
`spec . job_template . spec . template . spec . containers . volume_devices . name`|`str`|no||
`spec . job_template . spec . template . spec . containers . volume_mounts`|`list` (of `dict`)|no||
`spec . job_template . spec . template . spec . containers . volume_mounts . mount_path`|`str`|no||
`spec . job_template . spec . template . spec . containers . volume_mounts . mount_propagation`|`str`|no||
`spec . job_template . spec . template . spec . containers . volume_mounts . name`|`str`|no||
`spec . job_template . spec . template . spec . containers . volume_mounts . read_only`|`bool`|no||
`spec . job_template . spec . template . spec . containers . volume_mounts . sub_path`|`str`|no||
`spec . job_template . spec . template . spec . containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . job_template . spec . template . spec . containers . working_dir`|`str`|no||
`spec . job_template . spec . template . spec . dns_config`|`dict`|no||
`spec . job_template . spec . template . spec . dns_policy`|`str`|no||
Expand Down Expand Up @@ -374,7 +382,15 @@ Name | Type | Required | Default | Description
`spec . job_template . spec . template . spec . init_containers . termination_message_policy`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . tty`|`bool`|no||
`spec . job_template . spec . template . spec . init_containers . volume_devices`|`list` (of `dict`)|no||
`spec . job_template . spec . template . spec . init_containers . volume_devices . device_path`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . volume_devices . name`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts`|`list` (of `dict`)|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts . mount_path`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts . mount_propagation`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts . name`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts . read_only`|`bool`|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts . sub_path`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . job_template . spec . template . spec . init_containers . working_dir`|`str`|no||
`spec . job_template . spec . template . spec . node_name`|`str`|no||
`spec . job_template . spec . template . spec . node_selector`|`dict`|no||
Expand Down
16 changes: 16 additions & 0 deletions docs/plugin_kube_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,15 @@ Name | Type | Required | Default | Description
`spec . template . spec . containers . termination_message_policy`|`str`|no||
`spec . template . spec . containers . tty`|`bool`|no||
`spec . template . spec . containers . volume_devices`|`list` (of `dict`)|no||
`spec . template . spec . containers . volume_devices . device_path`|`str`|no||
`spec . template . spec . containers . volume_devices . name`|`str`|no||
`spec . template . spec . containers . volume_mounts`|`list` (of `dict`)|no||
`spec . template . spec . containers . volume_mounts . mount_path`|`str`|no||
`spec . template . spec . containers . volume_mounts . mount_propagation`|`str`|no||
`spec . template . spec . containers . volume_mounts . name`|`str`|no||
`spec . template . spec . containers . volume_mounts . read_only`|`bool`|no||
`spec . template . spec . containers . volume_mounts . sub_path`|`str`|no||
`spec . template . spec . containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . template . spec . containers . working_dir`|`str`|no||
`spec . template . spec . dns_config`|`dict`|no||
`spec . template . spec . dns_policy`|`str`|no||
Expand Down Expand Up @@ -370,7 +378,15 @@ Name | Type | Required | Default | Description
`spec . template . spec . init_containers . termination_message_policy`|`str`|no||
`spec . template . spec . init_containers . tty`|`bool`|no||
`spec . template . spec . init_containers . volume_devices`|`list` (of `dict`)|no||
`spec . template . spec . init_containers . volume_devices . device_path`|`str`|no||
`spec . template . spec . init_containers . volume_devices . name`|`str`|no||
`spec . template . spec . init_containers . volume_mounts`|`list` (of `dict`)|no||
`spec . template . spec . init_containers . volume_mounts . mount_path`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . mount_propagation`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . name`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . read_only`|`bool`|no||
`spec . template . spec . init_containers . volume_mounts . sub_path`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . template . spec . init_containers . working_dir`|`str`|no||
`spec . template . spec . node_name`|`str`|no||
`spec . template . spec . node_selector`|`dict`|no||
Expand Down
16 changes: 16 additions & 0 deletions docs/plugin_kube_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,15 @@ Name | Type | Required | Default | Description
`spec . template . spec . containers . termination_message_policy`|`str`|no||
`spec . template . spec . containers . tty`|`bool`|no||
`spec . template . spec . containers . volume_devices`|`list` (of `dict`)|no||
`spec . template . spec . containers . volume_devices . device_path`|`str`|no||
`spec . template . spec . containers . volume_devices . name`|`str`|no||
`spec . template . spec . containers . volume_mounts`|`list` (of `dict`)|no||
`spec . template . spec . containers . volume_mounts . mount_path`|`str`|no||
`spec . template . spec . containers . volume_mounts . mount_propagation`|`str`|no||
`spec . template . spec . containers . volume_mounts . name`|`str`|no||
`spec . template . spec . containers . volume_mounts . read_only`|`bool`|no||
`spec . template . spec . containers . volume_mounts . sub_path`|`str`|no||
`spec . template . spec . containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . template . spec . containers . working_dir`|`str`|no||
`spec . template . spec . dns_config`|`dict`|no||
`spec . template . spec . dns_policy`|`str`|no||
Expand Down Expand Up @@ -365,7 +373,15 @@ Name | Type | Required | Default | Description
`spec . template . spec . init_containers . termination_message_policy`|`str`|no||
`spec . template . spec . init_containers . tty`|`bool`|no||
`spec . template . spec . init_containers . volume_devices`|`list` (of `dict`)|no||
`spec . template . spec . init_containers . volume_devices . device_path`|`str`|no||
`spec . template . spec . init_containers . volume_devices . name`|`str`|no||
`spec . template . spec . init_containers . volume_mounts`|`list` (of `dict`)|no||
`spec . template . spec . init_containers . volume_mounts . mount_path`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . mount_propagation`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . name`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . read_only`|`bool`|no||
`spec . template . spec . init_containers . volume_mounts . sub_path`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . template . spec . init_containers . working_dir`|`str`|no||
`spec . template . spec . node_name`|`str`|no||
`spec . template . spec . node_selector`|`dict`|no||
Expand Down
16 changes: 16 additions & 0 deletions docs/plugin_kube_statefulset.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,15 @@ Name | Type | Required | Default | Description
`spec . template . spec . containers . termination_message_policy`|`str`|no||
`spec . template . spec . containers . tty`|`bool`|no||
`spec . template . spec . containers . volume_devices`|`list` (of `dict`)|no||
`spec . template . spec . containers . volume_devices . device_path`|`str`|no||
`spec . template . spec . containers . volume_devices . name`|`str`|no||
`spec . template . spec . containers . volume_mounts`|`list` (of `dict`)|no||
`spec . template . spec . containers . volume_mounts . mount_path`|`str`|no||
`spec . template . spec . containers . volume_mounts . mount_propagation`|`str`|no||
`spec . template . spec . containers . volume_mounts . name`|`str`|no||
`spec . template . spec . containers . volume_mounts . read_only`|`bool`|no||
`spec . template . spec . containers . volume_mounts . sub_path`|`str`|no||
`spec . template . spec . containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . template . spec . containers . working_dir`|`str`|no||
`spec . template . spec . dns_config`|`dict`|no||
`spec . template . spec . dns_policy`|`str`|no||
Expand Down Expand Up @@ -364,7 +372,15 @@ Name | Type | Required | Default | Description
`spec . template . spec . init_containers . termination_message_policy`|`str`|no||
`spec . template . spec . init_containers . tty`|`bool`|no||
`spec . template . spec . init_containers . volume_devices`|`list` (of `dict`)|no||
`spec . template . spec . init_containers . volume_devices . device_path`|`str`|no||
`spec . template . spec . init_containers . volume_devices . name`|`str`|no||
`spec . template . spec . init_containers . volume_mounts`|`list` (of `dict`)|no||
`spec . template . spec . init_containers . volume_mounts . mount_path`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . mount_propagation`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . name`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . read_only`|`bool`|no||
`spec . template . spec . init_containers . volume_mounts . sub_path`|`str`|no||
`spec . template . spec . init_containers . volume_mounts . sub_path_expr`|`str`|no||
`spec . template . spec . init_containers . working_dir`|`str`|no||
`spec . template . spec . node_name`|`str`|no||
`spec . template . spec . node_selector`|`dict`|no||
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run(self):

setup(
name='deploy-config-generator',
version='2.24.1',
version='2.25.0',
url='https://github.com/ApplauseOSS/deploy-config-generator',
license='MIT',
description='Utility to generate service deploy configurations',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- containerPort: 80
name: web
volumeMounts:
- mount_path: /usr/share/nginx/html
- mountPath: /usr/share/nginx/html
name: www
terminationGracePeriodSeconds: 10
volumeClaimTemplates:
Expand Down

0 comments on commit acc15bc

Please sign in to comment.