From cbd751d8702616bf95c342901ca091ffd81e0f2b Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario Date: Wed, 5 Jun 2024 21:25:11 -0700 Subject: [PATCH] Add ConsoleURL to application_config_provider and DeepCopyInto Signed-off-by: Eduardo Apolinario --- flyteadmin/pkg/runtime/application_config_provider.go | 2 +- flytepropeller/pkg/apis/flyteworkflow/v1alpha1/workflow.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flyteadmin/pkg/runtime/application_config_provider.go b/flyteadmin/pkg/runtime/application_config_provider.go index 4ec48c2056..e754858b3c 100644 --- a/flyteadmin/pkg/runtime/application_config_provider.go +++ b/flyteadmin/pkg/runtime/application_config_provider.go @@ -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{ diff --git a/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/workflow.go b/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/workflow.go index 36b367ab45..69cf061fff 100644 --- a/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/workflow.go +++ b/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/workflow.go @@ -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"` } @@ -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 { @@ -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"` }