Skip to content
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

Allow more flexible way to config the api server addr in persistence agent #867

Merged
merged 2 commits into from
Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove namespace config from persistent-agent
  • Loading branch information
ywskycn committed Apr 7, 2019
commit 01a93830cba238fd152b912d8da67eb23c9bed1e
1 change: 0 additions & 1 deletion backend/src/agent/persistence/client/pipeline_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type PipelineClient struct {
}

func NewPipelineClient(
namespace string,
initializeTimeout time.Duration,
timeout time.Duration,
basePath string,
Expand Down
5 changes: 0 additions & 5 deletions backend/src/agent/persistence/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package main

import (
"flag"
"os"
"time"

workflowclientSet "github.com/argoproj/argo/pkg/client/clientset/versioned"
Expand All @@ -34,7 +33,6 @@ import (
var (
masterURL string
kubeconfig string
namespace string
initializeTimeout time.Duration
timeout time.Duration
mlPipelineAPIServerName string
Expand All @@ -47,7 +45,6 @@ var (
const (
kubeconfigFlagName = "kubeconfig"
masterFlagName = "master"
namespaceFlagName = "namespace"
initializationTimeoutFlagName = "initializeTimeout"
timeoutFlagName = "timeout"
mlPipelineAPIServerBasePathFlagName = "mlPipelineAPIServerBasePath"
Expand Down Expand Up @@ -81,7 +78,6 @@ func main() {
workflowInformerFactory := workflowinformers.NewSharedInformerFactory(workflowClient, time.Second*30)

pipelineClient, err := client.NewPipelineClient(
namespace,
initializeTimeout,
timeout,
mlPipelineAPIServerBasePath,
Expand Down Expand Up @@ -109,7 +105,6 @@ func main() {
func init() {
flag.StringVar(&kubeconfig, kubeconfigFlagName, "", "Path to a kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&masterURL, masterFlagName, "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&namespace, namespaceFlagName, os.Getenv("POD_NAMESPACE"), "The namespace the ML pipeline API server is deployed to")
flag.DurationVar(&initializeTimeout, initializationTimeoutFlagName, 2*time.Minute, "Duration to wait for initialization of the ML pipeline API server.")
flag.DurationVar(&timeout, timeoutFlagName, 1*time.Minute, "Duration to wait for calls to complete.")
flag.StringVar(&mlPipelineAPIServerName, mlPipelineAPIServerNameFlagName, "ml-pipeline", "Name of the ML pipeline API server.")
Expand Down