Skip to content

Commit

Permalink
Merge pull request #955 from Vafilor/feat/add.serving.variables
Browse files Browse the repository at this point in the history
feat: add onepanel serving url to workspaces
  • Loading branch information
Vafilor authored Oct 7, 2021
2 parents f570a71 + 3abdc54 commit 700b3bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ func (c *Client) addRuntimeFieldsToWorkspaceTemplate(t wfv1.Template, workspace
env.PrependEnvVarToContainer(container, "ONEPANEL_FQDN", config["ONEPANEL_FQDN"])
env.PrependEnvVarToContainer(container, "ONEPANEL_DOMAIN", config["ONEPANEL_DOMAIN"])
env.PrependEnvVarToContainer(container, "ONEPANEL_PROVIDER", config["ONEPANEL_PROVIDER"])
env.PrependEnvVarToContainer(container, "ONEPANEL_SERVING_URL", "kfserving-models-web-app.kfserving-system.svc.cluster.local")
env.PrependEnvVarToContainer(container, "ONEPANEL_RESOURCE_NAMESPACE", "{{workflow.namespace}}")
env.PrependEnvVarToContainer(container, "ONEPANEL_RESOURCE_UID", "{{workflow.parameters.sys-uid}}")
}
Expand Down

0 comments on commit 700b3bd

Please sign in to comment.