Skip to content

Commit

Permalink
Add ConsoleURL to application_config_provider and DeepCopyInto
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed Jun 6, 2024
1 parent e5b6590 commit cbd751d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flyteadmin/pkg/runtime/application_config_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var flyteAdminConfig = config.MustRegisterSection(flyteAdmin, &interfaces.Applic
MaxParallelism: 25,
K8SServiceAccount: "",
UseOffloadedWorkflowClosure: false,
ConsoleUrl: "",
ConsoleURL: "",
})

var schedulerConfig = config.MustRegisterSection(scheduler, &interfaces.SchedulerConfig{
Expand Down
4 changes: 4 additions & 0 deletions flytepropeller/pkg/apis/flyteworkflow/v1alpha1/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type FlyteWorkflow struct {
// and parse the static data prior to processing.
WorkflowClosureReference DataReference `json:"workflowClosureReference,omitempty"`

// TODO: Add comment
ConsoleURL string `json:"consoleUrl,omitempty"`
}

Expand Down Expand Up @@ -150,6 +151,7 @@ func (in *FlyteWorkflow) DeepCopyInto(out *FlyteWorkflow) {
if in.DataReferenceConstructor != nil {
out.DataReferenceConstructor = in.DataReferenceConstructor
}
out.ConsoleURL = in.ConsoleURL
}

func (in *FlyteWorkflow) GetSecurityContext() core.SecurityContext {
Expand All @@ -175,6 +177,8 @@ func (in *FlyteWorkflow) GetExecutionConfig() ExecutionConfig {
return in.ExecutionConfig
}

func (in *FlyteWorkflow) GetConsoleURL() string { return in.ConsoleURL }

type WorkflowMeta struct {
EventVersion EventVersion `json:"eventVersion,omitempty"`
}
Expand Down

0 comments on commit cbd751d

Please sign in to comment.