-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: create config url should be stored in /flat TDE-1321 #841
base: master
Are you sure you want to change the base?
Conversation
workflows/raster/standardising.yaml
Outdated
@@ -650,7 +650,7 @@ spec: | |||
path: '/tmp/cogify/config-url' | |||
s3: | |||
bucket: '{{inputs.parameters.bucket}}' | |||
key: '{{inputs.parameters.key}}flat/config-url' | |||
key: '{{inputs.parameters.key}}/flat/config-url' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this other part of the code change too?
- 'config'
- '{{ inputs.parameters.location }}flat/'
how many other places are expecting this key to be a folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ inputs.parameters.location }}
is already having a trailing /
. I think "location" speaks well by itself being a path and should have a trailing /
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you, we need a something to parse and concatenate paths withing workflow files. This looks like doing what we want: https://masterminds.github.io/sprig/url.html - maybe we can try work with it if it's available within Argo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did few tests using a couple of sprig
functions:
{{=sprig.clean(sprig.join("/", [tasks[get-location].outputs.parameters.location, "flat/"]))}}
Problem is that the path we're trying to clean is a URL and is not handled properly by the clean
function which removes the double /
in s3://
-> s3:/
@schmidtnz suggested to |
Motivation
The key output by get-location does not end with a trailing
/
. The create-config task should manage the path within the bucket correctly.Modification
Add a
/
between the key and theflat
in the artifact path for the config-url.Checklist