-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add --dry-run option to the submit command #1506
Changes from 14 commits
b0115c8
56062e2
24f3852
c341a86
e32578c
60ece28
cb78bda
7e97f0c
c4dc0ad
8547209
5f1680b
8dc167d
f1eec37
4acc29b
dd613b3
6cd1cd1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ var ( | |
restConfig *rest.Config | ||
clientConfig clientcmd.ClientConfig | ||
clientset *kubernetes.Clientset | ||
wfClientset *wfclientset.Clientset | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a comment for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
wfClient v1alpha1.WorkflowInterface | ||
jobStatusIconMap map[wfv1.NodePhase]string | ||
noColor bool | ||
|
@@ -94,8 +95,8 @@ func InitWorkflowClient(ns ...string) v1alpha1.WorkflowInterface { | |
log.Fatal(err) | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not keep the origin code ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seemed confusing. I can revert the names if that is a problem |
||
wfcs := wfclientset.NewForConfigOrDie(restConfig) | ||
wfClient = wfcs.ArgoprojV1alpha1().Workflows(namespace) | ||
wfClientset = wfclientset.NewForConfigOrDie(restConfig) | ||
wfClient = wfClientset.ArgoprojV1alpha1().Workflows(namespace) | ||
return wfClient | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why now use
wfClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't access the rest client from wfClient in order to make a POST request.