-
Notifications
You must be signed in to change notification settings - Fork 3
chore(internal/provider): refactor cached_image_resource #46
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
Conversation
"CODER_AGENT_SUBSYSTEM": "one,two", | ||
"CODER_AGENT_TOKEN": "string", | ||
"CODER_AGENT_URL": "string", |
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.
These can simply be handled via extra_env
. We don't need to test for them here.
"CODER_AGENT_TOKEN", "some-token", | ||
"CODER_AGENT_URL", "https://coder.example.com", |
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.
making sure the coder args still make their way into computed env.
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.
A few nits but otherwise looks good 👍🏻
val = strings.Join(sa.GetSlice(), ",") | ||
} else { | ||
val = opt.Value.String() | ||
} |
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.
What separation does this use by default? I had assumed it would already be comma separated and we can just .String()
🤔
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.
It uses CSV format by default. Calling the String()
method didn't work for me. This may be a bug in coder/serpent
but I haven't looked too much closer.
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.
Is it possible to lookup the inputs that you had when it failed? I'd be happy to file the issue upstream, if there is one.
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'll try to create a minimal example and file a PR in coder/serpent
.
Addresses some non-blocking comments from #44:
cached_image_resource.go
to separate internal packagestfutil
andimgutil
.helpers.go
.