Skip to content

Commit

Permalink
prepush
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Jun 14, 2024
1 parent 92db125 commit 7dcc747
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 3 deletions.
8 changes: 8 additions & 0 deletions api/v1alpha2/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@
"description": "Config map name if the existing volume is a config map You should also define items if you are using this",
"type": "string"
},
"emptyDir": {
"type": "boolean",
"default": false
},
"emptyDirMedium": {
"description": "Add an empty directory custom type",
"type": "string"
},
"hostPath": {
"description": "An existing hostPath to bind to path",
"type": "string"
Expand Down
14 changes: 14 additions & 0 deletions api/v1alpha2/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions chart/templates/minicluster-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ spec:
Config map name if the existing volume is a config map
You should also define items if you are using this
type: string
emptyDir:
default: false
type: boolean
emptyDirMedium:
description: Add an empty directory custom type
type: string
hostPath:
description: An existing hostPath to bind to path
type: string
Expand Down Expand Up @@ -720,6 +726,12 @@ spec:
Config map name if the existing volume is a config map
You should also define items if you are using this
type: string
emptyDir:
default: false
type: boolean
emptyDirMedium:
description: Add an empty directory custom type
type: string
hostPath:
description: An existing hostPath to bind to path
type: string
Expand Down
1 change: 0 additions & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/flux-framework/flux-operator
newTag: test
12 changes: 12 additions & 0 deletions examples/dist/flux-operator-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ spec:
Config map name if the existing volume is a config map
You should also define items if you are using this
type: string
emptyDir:
default: false
type: boolean
emptyDirMedium:
description: Add an empty directory custom type
type: string
hostPath:
description: An existing hostPath to bind to path
type: string
Expand Down Expand Up @@ -729,6 +735,12 @@ spec:
Config map name if the existing volume is a config map
You should also define items if you are using this
type: string
emptyDir:
default: false
type: boolean
emptyDirMedium:
description: Add an empty directory custom type
type: string
hostPath:
description: An existing hostPath to bind to path
type: string
Expand Down
12 changes: 12 additions & 0 deletions examples/dist/flux-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ spec:
Config map name if the existing volume is a config map
You should also define items if you are using this
type: string
emptyDir:
default: false
type: boolean
emptyDirMedium:
description: Add an empty directory custom type
type: string
hostPath:
description: An existing hostPath to bind to path
type: string
Expand Down Expand Up @@ -729,6 +735,12 @@ spec:
Config map name if the existing volume is a config map
You should also define items if you are using this
type: string
emptyDir:
default: false
type: boolean
emptyDirMedium:
description: Add an empty directory custom type
type: string
hostPath:
description: An existing hostPath to bind to path
type: string
Expand Down
2 changes: 1 addition & 1 deletion examples/tests/emptydir/minicluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
# This is a list because a pod can support multiple containers
containers:
- image: rockylinux:9
command: ls /data
command: cat /proc/meminfo
volumes:
# This must be all lowercase!
my-empty-dir:
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/v1alpha2/docs/ContainerVolume.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**claim_name** | **str** | Claim name if the existing volume is a PVC | [optional]
**config_map_name** | **str** | Config map name if the existing volume is a config map You should also define items if you are using this | [optional]
**empty_dir** | **bool** | | [optional] [default to False]
**empty_dir_medium** | **str** | Add an empty directory custom type | [optional]
**host_path** | **str** | An existing hostPath to bind to path | [optional]
**items** | **dict[str, str]** | Items (key and paths) for the config map | [optional]
**path** | **str** | Path and claim name are always required if a secret isn&#39;t defined | [optional]
Expand Down
56 changes: 55 additions & 1 deletion sdk/python/v1alpha2/fluxoperator/models/container_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class ContainerVolume(object):
openapi_types = {
'claim_name': 'str',
'config_map_name': 'str',
'empty_dir': 'bool',
'empty_dir_medium': 'str',
'host_path': 'str',
'items': 'dict[str, str]',
'path': 'str',
Expand All @@ -48,21 +50,25 @@ class ContainerVolume(object):
attribute_map = {
'claim_name': 'claimName',
'config_map_name': 'configMapName',
'empty_dir': 'emptyDir',
'empty_dir_medium': 'emptyDirMedium',
'host_path': 'hostPath',
'items': 'items',
'path': 'path',
'read_only': 'readOnly',
'secret_name': 'secretName'
}

def __init__(self, claim_name=None, config_map_name=None, host_path=None, items=None, path=None, read_only=False, secret_name=None, local_vars_configuration=None): # noqa: E501
def __init__(self, claim_name=None, config_map_name=None, empty_dir=False, empty_dir_medium=None, host_path=None, items=None, path=None, read_only=False, secret_name=None, local_vars_configuration=None): # noqa: E501
"""ContainerVolume - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
self.local_vars_configuration = local_vars_configuration

self._claim_name = None
self._config_map_name = None
self._empty_dir = None
self._empty_dir_medium = None
self._host_path = None
self._items = None
self._path = None
Expand All @@ -74,6 +80,10 @@ def __init__(self, claim_name=None, config_map_name=None, host_path=None, items=
self.claim_name = claim_name
if config_map_name is not None:
self.config_map_name = config_map_name
if empty_dir is not None:
self.empty_dir = empty_dir
if empty_dir_medium is not None:
self.empty_dir_medium = empty_dir_medium
if host_path is not None:
self.host_path = host_path
if items is not None:
Expand Down Expand Up @@ -131,6 +141,50 @@ def config_map_name(self, config_map_name):

self._config_map_name = config_map_name

@property
def empty_dir(self):
"""Gets the empty_dir of this ContainerVolume. # noqa: E501
:return: The empty_dir of this ContainerVolume. # noqa: E501
:rtype: bool
"""
return self._empty_dir

@empty_dir.setter
def empty_dir(self, empty_dir):
"""Sets the empty_dir of this ContainerVolume.
:param empty_dir: The empty_dir of this ContainerVolume. # noqa: E501
:type empty_dir: bool
"""

self._empty_dir = empty_dir

@property
def empty_dir_medium(self):
"""Gets the empty_dir_medium of this ContainerVolume. # noqa: E501
Add an empty directory custom type # noqa: E501
:return: The empty_dir_medium of this ContainerVolume. # noqa: E501
:rtype: str
"""
return self._empty_dir_medium

@empty_dir_medium.setter
def empty_dir_medium(self, empty_dir_medium):
"""Sets the empty_dir_medium of this ContainerVolume.
Add an empty directory custom type # noqa: E501
:param empty_dir_medium: The empty_dir_medium of this ContainerVolume. # noqa: E501
:type empty_dir_medium: str
"""

self._empty_dir_medium = empty_dir_medium

@property
def host_path(self):
"""Gets the host_path of this ContainerVolume. # noqa: E501
Expand Down

0 comments on commit 7dcc747

Please sign in to comment.