Skip to content

Commit 1b5748c

Browse files
authored
Merge pull request #343 from PrefectHQ/update-metadata-01-23-2024
Update metadata for collection releases
2 parents 6165891 + 5a962a8 commit 1b5748c

File tree

11 files changed

+2062
-14
lines changed

11 files changed

+2062
-14
lines changed

collections/prefect-aws/blocks/v0.4.8.json

+1,007
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"prefect-aws": {}
3+
}

collections/prefect-aws/workers/v0.4.8.json

+306
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"prefect-docker": {
3+
"block_types": {
4+
"docker-host": {
5+
"name": "Docker Host",
6+
"slug": "docker-host",
7+
"logo_url": "https://cdn.sanity.io/images/3ugk85nk/production/14a315b79990200db7341e42553e23650b34bb96-250x250.png",
8+
"documentation_url": null,
9+
"description": "Store settings for interacting with a Docker host. This block is part of the prefect-docker collection. Install prefect-docker with `pip install prefect-docker` to use this block.",
10+
"code_example": "Get a Docker Host client.\n```python\nfrom prefect_docker import DockerHost\n\ndocker_host = DockerHost(\nbase_url=\"tcp://127.0.0.1:1234\",\n max_pool_size=4\n)\nwith docker_host.get_client() as client:\n ... # Use the client for Docker operations\n```",
11+
"block_schema": {
12+
"checksum": "sha256:bf0961e9f2d88fd81bca2c7b78c025bd289776ad84ae8ef22d8f3db8b9561478",
13+
"fields": {
14+
"title": "DockerHost",
15+
"description": "Store settings for interacting with a Docker host.",
16+
"type": "object",
17+
"properties": {
18+
"base_url": {
19+
"title": "Base URL",
20+
"description": "URL to the Docker host.",
21+
"example": "unix:///var/run/docker.sock",
22+
"type": "string"
23+
},
24+
"version": {
25+
"title": "Version",
26+
"description": "The version of the API to use",
27+
"default": "auto",
28+
"type": "string"
29+
},
30+
"timeout": {
31+
"title": "Timeout",
32+
"description": "Default timeout for API calls, in seconds.",
33+
"type": "integer"
34+
},
35+
"max_pool_size": {
36+
"title": "Max Pool Size",
37+
"description": "The maximum number of connections to save in the pool.",
38+
"type": "integer"
39+
},
40+
"client_kwargs": {
41+
"title": "Additional Configuration",
42+
"description": "Additional keyword arguments to pass to `docker.from_env()` or `DockerClient`.",
43+
"type": "object"
44+
}
45+
},
46+
"block_type_slug": "docker-host",
47+
"secret_fields": [],
48+
"block_schema_references": {}
49+
},
50+
"capabilities": [],
51+
"version": "0.4.4"
52+
}
53+
},
54+
"docker-registry-credentials": {
55+
"name": "Docker Registry Credentials",
56+
"slug": "docker-registry-credentials",
57+
"logo_url": "https://cdn.sanity.io/images/3ugk85nk/production/14a315b79990200db7341e42553e23650b34bb96-250x250.png",
58+
"documentation_url": null,
59+
"description": "Store credentials for interacting with a Docker Registry. This block is part of the prefect-docker collection. Install prefect-docker with `pip install prefect-docker` to use this block.",
60+
"code_example": "Log into Docker Registry.\n```python\nfrom prefect_docker import DockerHost, DockerRegistryCredentials\n\ndocker_host = DockerHost()\ndocker_registry_credentials = DockerRegistryCredentials(\n username=\"my_username\",\n password=\"my_password\",\n registry_url=\"registry.hub.docker.com\",\n)\nwith docker_host.get_client() as client:\n docker_registry_credentials.login(client)\n```",
61+
"block_schema": {
62+
"checksum": "sha256:d5cbcfdf092e1f904ea26c274fcd0f23d86ecbbd0afae0f254f575ac3e40915d",
63+
"fields": {
64+
"title": "DockerRegistryCredentials",
65+
"description": "Store credentials for interacting with a Docker Registry.",
66+
"type": "object",
67+
"properties": {
68+
"username": {
69+
"title": "Username",
70+
"description": "The username to log into the registry with.",
71+
"type": "string"
72+
},
73+
"password": {
74+
"title": "Password",
75+
"description": "The password to log into the registry with.",
76+
"type": "string",
77+
"writeOnly": true,
78+
"format": "password"
79+
},
80+
"registry_url": {
81+
"title": "Registry Url",
82+
"description": "The URL to the registry. Generally, \"http\" or \"https\" can be omitted.",
83+
"example": "index.docker.io",
84+
"type": "string"
85+
},
86+
"reauth": {
87+
"title": "Reauth",
88+
"description": "Whether or not to reauthenticate on each interaction.",
89+
"default": true,
90+
"type": "boolean"
91+
}
92+
},
93+
"required": [
94+
"username",
95+
"password",
96+
"registry_url"
97+
],
98+
"block_type_slug": "docker-registry-credentials",
99+
"secret_fields": [
100+
"password"
101+
],
102+
"block_schema_references": {}
103+
},
104+
"capabilities": [],
105+
"version": "0.4.4"
106+
}
107+
}
108+
}
109+
}
110+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"prefect-docker": {}
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
{
2+
"prefect-docker": {
3+
"docker": {
4+
"default_base_job_configuration": {
5+
"job_configuration": {
6+
"command": "{{ command }}",
7+
"env": "{{ env }}",
8+
"labels": "{{ labels }}",
9+
"name": "{{ name }}",
10+
"image": "{{ image }}",
11+
"registry_credentials": "{{ registry_credentials }}",
12+
"image_pull_policy": "{{ image_pull_policy }}",
13+
"networks": "{{ networks }}",
14+
"network_mode": "{{ network_mode }}",
15+
"auto_remove": "{{ auto_remove }}",
16+
"volumes": "{{ volumes }}",
17+
"stream_output": "{{ stream_output }}",
18+
"mem_limit": "{{ mem_limit }}",
19+
"memswap_limit": "{{ memswap_limit }}",
20+
"privileged": "{{ privileged }}"
21+
},
22+
"variables": {
23+
"description": "Configuration class used by the Docker worker.\n\nAn instance of this class is passed to the Docker worker's `run` method\nfor each flow run. It contains all the information necessary to execute the\nflow run as a Docker container.\n\nAttributes:\n name: The name to give to created Docker containers.\n command: The command executed in created Docker containers to kick off\n flow run execution.\n env: The environment variables to set in created Docker containers.\n labels: The labels to set on created Docker containers.\n image: The image reference of a container image to use for created jobs.\n If not set, the latest Prefect image will be used.\n image_pull_policy: The image pull policy to use when pulling images.\n networks: Docker networks that created containers should be connected to.\n network_mode: The network mode for the created containers (e.g. host, bridge).\n If 'networks' is set, this cannot be set.\n auto_remove: If set, containers will be deleted on completion.\n volumes: Docker volumes that should be mounted in created containers.\n stream_output: If set, the output from created containers will be streamed\n to local standard output.\n mem_limit: Memory limit of created containers. Accepts a value\n with a unit identifier (e.g. 100000b, 1000k, 128m, 1g.) If a value is\n given without a unit, bytes are assumed.\n memswap_limit: Total memory (memory + swap), -1 to disable swap. Should only be\n set if `mem_limit` is also set. If `mem_limit` is set, this defaults to\n allowing the container to use as much swap as memory. For example, if\n `mem_limit` is 300m and `memswap_limit` is not set, containers can use\n 600m in total of memory and swap.\n privileged: Give extended privileges to created containers.",
24+
"type": "object",
25+
"properties": {
26+
"command": {
27+
"title": "Command",
28+
"description": "The command to use when starting a flow run. In most cases, this should be left blank and the command will be automatically generated by the worker.",
29+
"type": "string"
30+
},
31+
"env": {
32+
"title": "Environment Variables",
33+
"description": "Environment variables to set when starting a flow run.",
34+
"type": "object",
35+
"additionalProperties": {
36+
"type": "string"
37+
}
38+
},
39+
"labels": {
40+
"title": "Labels",
41+
"description": "Labels applied to infrastructure created by the worker using this job configuration.",
42+
"type": "object",
43+
"additionalProperties": {
44+
"type": "string"
45+
}
46+
},
47+
"name": {
48+
"title": "Name",
49+
"description": "Name given to infrastructure created by the worker using this job configuration.",
50+
"type": "string"
51+
},
52+
"image": {
53+
"title": "Image",
54+
"description": "The image reference of a container image to use for created jobs. If not set, the latest Prefect image will be used.",
55+
"example": "docker.io/prefecthq/prefect:2-latest",
56+
"type": "string"
57+
},
58+
"registry_credentials": {
59+
"title": "Registry Credentials",
60+
"description": "Credentials for logging into a Docker registry to pull images from.",
61+
"allOf": [
62+
{
63+
"$ref": "#/definitions/DockerRegistryCredentials"
64+
}
65+
]
66+
},
67+
"image_pull_policy": {
68+
"title": "Image Pull Policy",
69+
"description": "The image pull policy to use when pulling images.",
70+
"enum": [
71+
"IfNotPresent",
72+
"Always",
73+
"Never"
74+
],
75+
"type": "string"
76+
},
77+
"networks": {
78+
"title": "Networks",
79+
"description": "Docker networks that created containers should be connected to.",
80+
"type": "array",
81+
"items": {
82+
"type": "string"
83+
}
84+
},
85+
"network_mode": {
86+
"title": "Network Mode",
87+
"description": "The network mode for the created containers (e.g. host, bridge). If 'networks' is set, this cannot be set.",
88+
"type": "string"
89+
},
90+
"auto_remove": {
91+
"title": "Auto Remove",
92+
"description": "If set, containers will be deleted on completion.",
93+
"default": false,
94+
"type": "boolean"
95+
},
96+
"volumes": {
97+
"title": "Volumes",
98+
"description": "A list of volume to mount into created containers.",
99+
"example": [
100+
"/my/local/path:/path/in/container"
101+
],
102+
"type": "array",
103+
"items": {
104+
"type": "string"
105+
}
106+
},
107+
"stream_output": {
108+
"title": "Stream Output",
109+
"description": "If set, the output from created containers will be streamed to local standard output.",
110+
"default": true,
111+
"type": "boolean"
112+
},
113+
"mem_limit": {
114+
"title": "Memory Limit",
115+
"description": "Memory limit of created containers. Accepts a value with a unit identifier (e.g. 100000b, 1000k, 128m, 1g.) If a value is given without a unit, bytes are assumed.",
116+
"type": "string"
117+
},
118+
"memswap_limit": {
119+
"title": "Memory Swap Limit",
120+
"description": "Total memory (memory + swap), -1 to disable swap. Should only be set if `mem_limit` is also set. If `mem_limit` is set, this defaults toallowing the container to use as much swap as memory. For example, if `mem_limit` is 300m and `memswap_limit` is not set, containers can use 600m in total of memory and swap.",
121+
"type": "string"
122+
},
123+
"privileged": {
124+
"title": "Privileged",
125+
"description": "Give extended privileges to created container.",
126+
"default": false,
127+
"type": "boolean"
128+
}
129+
},
130+
"definitions": {
131+
"DockerRegistryCredentials": {
132+
"title": "DockerRegistryCredentials",
133+
"description": "Store credentials for interacting with a Docker Registry.",
134+
"type": "object",
135+
"properties": {
136+
"username": {
137+
"title": "Username",
138+
"description": "The username to log into the registry with.",
139+
"type": "string"
140+
},
141+
"password": {
142+
"title": "Password",
143+
"description": "The password to log into the registry with.",
144+
"type": "string",
145+
"writeOnly": true,
146+
"format": "password"
147+
},
148+
"registry_url": {
149+
"title": "Registry Url",
150+
"description": "The URL to the registry. Generally, \"http\" or \"https\" can be omitted.",
151+
"example": "index.docker.io",
152+
"type": "string"
153+
},
154+
"reauth": {
155+
"title": "Reauth",
156+
"description": "Whether or not to reauthenticate on each interaction.",
157+
"default": true,
158+
"type": "boolean"
159+
}
160+
},
161+
"required": [
162+
"username",
163+
"password",
164+
"registry_url"
165+
],
166+
"block_type_slug": "docker-registry-credentials",
167+
"secret_fields": [
168+
"password"
169+
],
170+
"block_schema_references": {}
171+
}
172+
}
173+
}
174+
},
175+
"description": "Execute flow runs within Docker containers. Works well for managing flow execution environments via Docker images. Requires access to a running Docker daemon.",
176+
"display_name": "Docker",
177+
"documentation_url": "https://prefecthq.github.io/prefect-docker/worker/",
178+
"install_command": "pip install prefect-docker",
179+
"is_beta": false,
180+
"logo_url": "https://images.ctfassets.net/gm98wzqotmnx/2IfXXfMq66mrzJBDFFCHTp/6d8f320d9e4fc4393f045673d61ab612/Moby-logo.png?h=250",
181+
"type": "docker"
182+
}
183+
}
184+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"prefect-kubernetes": {
3+
"block_types": {
4+
"kubernetes-credentials": {
5+
"name": "Kubernetes Credentials",
6+
"slug": "kubernetes-credentials",
7+
"logo_url": "https://cdn.sanity.io/images/3ugk85nk/production/2d0b896006ad463b49c28aaac14f31e00e32cfab-250x250.png",
8+
"documentation_url": "https://prefecthq.github.io/prefect-kubernetes/credentials/#prefect_kubernetes.credentials.KubernetesCredentials",
9+
"description": "Credentials block for generating configured Kubernetes API clients. This block is part of the prefect-kubernetes collection. Install prefect-kubernetes with `pip install prefect-kubernetes` to use this block.",
10+
"code_example": "Load stored Kubernetes credentials:\n```python\nfrom prefect_kubernetes.credentials import KubernetesCredentials\n\nkubernetes_credentials = KubernetesCredentials.load(\"BLOCK_NAME\")\n```",
11+
"block_schema": {
12+
"checksum": "sha256:957fa8dca90bd1b5fb9c575ee09e80b454116c0b134287fbc2eff47a72564c3b",
13+
"fields": {
14+
"title": "KubernetesCredentials",
15+
"description": "Credentials block for generating configured Kubernetes API clients.",
16+
"type": "object",
17+
"properties": {
18+
"cluster_config": {
19+
"$ref": "#/definitions/KubernetesClusterConfig"
20+
}
21+
},
22+
"block_type_slug": "kubernetes-credentials",
23+
"secret_fields": [],
24+
"block_schema_references": {
25+
"cluster_config": {
26+
"block_type_slug": "kubernetes-cluster-config",
27+
"block_schema_checksum": "sha256:90d421e948bfbe4cdc98b124995f0edd0f84b0837549ad1390423bad8e31cf3b"
28+
}
29+
},
30+
"definitions": {
31+
"KubernetesClusterConfig": {
32+
"title": "KubernetesClusterConfig",
33+
"description": "Stores configuration for interaction with Kubernetes clusters.\n\nSee `from_file` for creation.",
34+
"type": "object",
35+
"properties": {
36+
"config": {
37+
"title": "Config",
38+
"description": "The entire contents of a kubectl config file.",
39+
"type": "object"
40+
},
41+
"context_name": {
42+
"title": "Context Name",
43+
"description": "The name of the kubectl context to use.",
44+
"type": "string"
45+
}
46+
},
47+
"required": [
48+
"config",
49+
"context_name"
50+
],
51+
"block_type_slug": "kubernetes-cluster-config",
52+
"secret_fields": [],
53+
"block_schema_references": {}
54+
}
55+
}
56+
},
57+
"capabilities": [],
58+
"version": "0.3.3"
59+
}
60+
}
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)