File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def run(
3232 max_cpu = POSTGRES_MAX_CPU ,
3333 min_memory = POSTGRES_MIN_MEMORY ,
3434 max_memory = POSTGRES_MAX_MEMORY ,
35- node_selectors = {} ,
35+ node_selectors = None ,
3636):
3737 """Launches a Postgresql database instance, optionally seeding it with a SQL file script
3838
@@ -53,6 +53,7 @@ def run(
5353 max_cpu (int): Define how much CPU millicores the service should be assign max.
5454 min_memory (int): Define how much MB of memory the service should be assigned at least.
5555 max_memory (int): Define how much MB of memory the service should be assigned max.
56+ node_selectors (dict): Define a dict of node selectors - only works in kubernetes example: {"kubernetes.io/hostname": node-name-01}
5657 Returns:
5758 An object containing useful information about the Postgres database running inside the enclave:
5859 ```
@@ -96,7 +97,8 @@ def run(
9697 persistent_key = "data-{0}" .format (service_name ),
9798 )
9899 env_vars ["PGDATA" ] = DATA_DIRECTORY_PATH + "/pgdata"
99-
100+ if node_selectors == None :
101+ node_selectors = {}
100102 if config_file_artifact_name != "" :
101103 config_filepath = CONFIG_FILE_MOUNT_DIRPATH + "/" + CONFIG_FILENAME
102104 cmd += ["-c" , "config_file=" + config_filepath ]
You can’t perform that action at this time.
0 commit comments