-
Notifications
You must be signed in to change notification settings - Fork 674
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
[Docs] .hostname is not available in log templates #4750
Comments
🤖 Hey @olyashok! Good to see you back. Hope you're doing well! Thank you for bringing this to our attention. Based on the code in the Flyte repository, the The Later, in the Finally, in the Here is the relevant code: func initDefaultRegexes() templateRegexes {
return templateRegexes{
// ...
MustCreateRegex("hostname"),
// ...
}
}
// ...
func (input Input) templateVarsForScheme(scheme TemplateScheme) TemplateVars {
// ...
case TemplateSchemePod:
// ...
vars = append(
vars,
TemplateVar{defaultRegexes.Hostname, input.HostName},
)
// ...
}
// ...
}
// ...
func (p TemplateLogPlugin) GetTaskLogs(input Input) (Output, error) {
// ...
Uri: replaceAll(templateURI, templateVars),
// ...
} As for the discrepancy between the Flyte documentation and the actual implementation of the If you have more specific information or examples that could help clarify the issue, it would be greatly appreciated. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
I am interested in this issue. |
@novahow , feel free to work on it. Tag me on the PR and I'll gladly review it. |
Description
.hostname is mentioned as variable in several places in docs but actually is not resolveable by code
https://github.com/flyteorg/flyteplugins/blob/b0684d97a1cf240f1a44f310f4a79cc21844caa9/go/tasks/pluginmachinery/tasklog/template.go#L69
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: