You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Default variables for the Kubernetes worker.\n\nThe schema for this class is used to populate the `variables` section of the default\nbase job template.",
65
-
"type": "object",
66
-
"properties": {
67
-
"name": {
68
-
"title": "Name",
69
-
"description": "Name given to infrastructure created by a worker.",
70
-
"type": "string"
71
-
},
72
-
"env": {
73
-
"title": "Environment Variables",
74
-
"description": "Environment variables to set when starting a flow run.",
75
-
"type": "object",
76
-
"additionalProperties": {
77
-
"type": "string"
78
-
}
79
-
},
80
-
"labels": {
81
-
"title": "Labels",
82
-
"description": "Labels applied to infrastructure created by a worker.",
83
-
"type": "object",
84
-
"additionalProperties": {
85
-
"type": "string"
86
-
}
87
-
},
88
-
"command": {
89
-
"title": "Command",
90
-
"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.",
91
-
"type": "string"
92
-
},
93
-
"namespace": {
94
-
"title": "Namespace",
95
-
"description": "The Kubernetes namespace to create jobs within.",
"description": "Default variables for the Kubernetes worker.\n\nThe schema for this class is used to populate the `variables` section of the default\nbase job template.",
101
+
"type": "object",
102
+
"properties": {
103
+
"name": {
104
+
"title": "Name",
105
+
"description": "Name given to infrastructure created by a worker.",
106
+
"type": "string"
107
+
},
108
+
"env": {
109
+
"title": "Environment Variables",
110
+
"description": "Environment variables to set when starting a flow run.",
111
+
"type": "object",
112
+
"additionalProperties": {
97
113
"type": "string"
98
-
},
99
-
"image": {
100
-
"title": "Image",
101
-
"description": "The image reference of a container image to use for created jobs. If not set, the latest Prefect image will be used.",
"description": "The Kubernetes service account to use for job creation.",
109
-
"type": "string",
110
-
"default": "prefect-worker"
111
-
},
112
-
"image_pull_policy": {
113
-
"title": "Image Pull Policy",
114
-
"description": "The Kubernetes image pull policy to use for job containers.",
115
-
"default": "Always",
116
-
"enum": [
117
-
"IfNotPresent",
118
-
"Always",
119
-
"Never"
120
-
],
114
+
}
115
+
},
116
+
"labels": {
117
+
"title": "Labels",
118
+
"description": "Labels applied to infrastructure created by a worker.",
119
+
"type": "object",
120
+
"additionalProperties": {
121
121
"type": "string"
122
-
},
123
-
"finished_job_ttl": {
124
-
"title": "Finished Job TTL",
125
-
"description": "The number of seconds to retain jobs after completion. If set, finished jobs will be cleaned up by Kubernetes after the given delay. If not set, jobs will be retained indefinitely.",
126
-
"type": "integer"
127
-
},
128
-
"job_watch_timeout_seconds": {
129
-
"title": "Job Watch Timeout Seconds",
130
-
"description": "Number of seconds to wait for each event emitted by a job before timing out. If not set, the worker will wait for each event indefinitely.",
131
-
"type": "integer"
132
-
},
133
-
"pod_watch_timeout_seconds": {
134
-
"title": "Pod Watch Timeout Seconds",
135
-
"description": "Number of seconds to watch for pod creation before timing out.",
136
-
"default": 60,
137
-
"type": "integer"
138
-
},
139
-
"stream_output": {
140
-
"title": "Stream Output",
141
-
"description": "If set, output will be streamed from the job to local standard output.",
142
-
"default": true,
143
-
"type": "boolean"
144
-
},
145
-
"cluster_config": {
146
-
"title": "Cluster Config",
147
-
"description": "The Kubernetes cluster config to use for job creation.",
148
-
"allOf": [
149
-
{
150
-
"$ref": "#/definitions/KubernetesClusterConfig"
151
-
}
152
-
]
153
122
}
154
123
},
155
-
"definitions": {
156
-
"KubernetesClusterConfig": {
157
-
"title": "KubernetesClusterConfig",
158
-
"description": "Stores configuration for interaction with Kubernetes clusters.\n\nSee `from_file` for creation.",
159
-
"type": "object",
160
-
"properties": {
161
-
"config": {
162
-
"title": "Config",
163
-
"description": "The entire contents of a kubectl config file.",
164
-
"type": "object"
165
-
},
166
-
"context_name": {
167
-
"title": "Context Name",
168
-
"description": "The name of the kubectl context to use.",
169
-
"type": "string"
170
-
}
124
+
"command": {
125
+
"title": "Command",
126
+
"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.",
127
+
"type": "string"
128
+
},
129
+
"namespace": {
130
+
"title": "Namespace",
131
+
"description": "The Kubernetes namespace to create jobs within.",
132
+
"default": "data-pipeline",
133
+
"type": "string"
134
+
},
135
+
"image": {
136
+
"title": "Image",
137
+
"description": "The image reference of a container image to use for created jobs. If not set, the latest Prefect image will be used.",
"description": "The Kubernetes service account to use for job creation.",
145
+
"type": "string",
146
+
"default": "prefect-worker"
147
+
},
148
+
"image_pull_policy": {
149
+
"title": "Image Pull Policy",
150
+
"description": "The Kubernetes image pull policy to use for job containers.",
151
+
"default": "Always",
152
+
"enum": [
153
+
"IfNotPresent",
154
+
"Always",
155
+
"Never"
156
+
],
157
+
"type": "string"
158
+
},
159
+
"finished_job_ttl": {
160
+
"title": "Finished Job TTL",
161
+
"description": "The number of seconds to retain jobs after completion. If set, finished jobs will be cleaned up by Kubernetes after the given delay. If not set, jobs will be retained indefinitely.",
162
+
"type": "integer"
163
+
},
164
+
"job_watch_timeout_seconds": {
165
+
"title": "Job Watch Timeout Seconds",
166
+
"description": "Number of seconds to wait for each event emitted by a job before timing out. If not set, the worker will wait for each event indefinitely.",
167
+
"type": "integer"
168
+
},
169
+
"pod_watch_timeout_seconds": {
170
+
"title": "Pod Watch Timeout Seconds",
171
+
"description": "Number of seconds to watch for pod creation before timing out.",
172
+
"default": 60,
173
+
"type": "integer"
174
+
},
175
+
"stream_output": {
176
+
"title": "Stream Output",
177
+
"description": "If set, output will be streamed from the job to local standard output.",
178
+
"default": true,
179
+
"type": "boolean"
180
+
},
181
+
"cluster_config": {
182
+
"title": "Cluster Config",
183
+
"description": "The Kubernetes cluster config to use for job creation.",
184
+
"allOf": [
185
+
{
186
+
"$ref": "#/definitions/KubernetesClusterConfig"
187
+
}
188
+
]
189
+
}
190
+
},
191
+
"definitions": {
192
+
"KubernetesClusterConfig": {
193
+
"title": "KubernetesClusterConfig",
194
+
"description": "Stores configuration for interaction with Kubernetes clusters.\n\nSee `from_file` for creation.",
195
+
"type": "object",
196
+
"properties": {
197
+
"config": {
198
+
"title": "Config",
199
+
"description": "The entire contents of a kubectl config file.",
200
+
"type": "object"
171
201
},
172
-
"required": [
173
-
"config",
174
-
"context_name"
175
-
],
176
-
"block_type_slug": "kubernetes-cluster-config",
177
-
"secret_fields": [],
178
-
"block_schema_references": {}
179
-
}
202
+
"context_name": {
203
+
"title": "Context Name",
204
+
"description": "The name of the kubectl context to use.",
0 commit comments