Closed parkedwards closed 1 week ago
thanks for such thorough testing steps and documenting them! you're right - i think we'll need to either (1) document what valid API urls look like (eg. with Cloud, they'll need to include the account/workspace IDs) or (2) expose those as optional values that we'll use to construct the API url for them
that said, would someone use the Operator to deploy a Work Pool if they're using Prefect Cloud
I think they would. for some, I imagine this operator being an alternative to the prefect-helm charts that folks are already using to provision their worker(s) that run jobs against Cloud
@mitchnielsen i just pushed up this change to explicitly expose an accountid and workspaceid - TBD on if we keep this (vs. just documenting and expecting the user to bring their fully formed URL based on the installation type)
i'll give it a more thorough test in the morning
resolves https://linear.app/prefect/issue/PLA-219/support-for-prefectworkpool-pointing-to-external-prefect-servers-and
this PR adds ~3 new fields:
spec.server.remoteApiUrl
=> to be used if theapiKey
is setspec.apiKey.value
=> raw, plaintext API Keyspec.apiKey.valueFrom
=> reference-able secret (via k8s Secret) - uses thecorev1.EnvVarSource
struct as the typeif either
.apiKey
attribute is set, we'll use the.remoteApiUrl
forPREFECT_API_URL
if either
.apiKey
attribute is set, we'll set aPREFECT_API_KEY
env var