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

feat: Adds argo server command. Fixes #1966 #1972

Merged
merged 479 commits into from
Jan 15, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Jan 14, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
  • Optional. I've added My organization is added to the README.
  • I've signed the CLA and required builds are green.


wfList, err := wfClient.ArgoprojV1alpha1().WorkflowTemplates(req.Namespace).List(v1.ListOptions{})
options := v1.ListOptions{}
if req.ListOptions != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug fix

CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -v -i -ldflags '${LDFLAGS}' -o dist/argo-windows-amd64 ./cmd/argo

.PHONY: cli-image
cli-image: dist/argo-linux-amd64
# Create CLI image
ifeq ($(DEV_IMAGE),true)
cp dist/argo-linux-amd64 argo
docker build -t $(IMAGE_NAMESPACE)/argocli:$(IMAGE_TAG) --target argocli -f Dockerfile.dev.
docker build -t $(IMAGE_NAMESPACE)/argocli:$(IMAGE_TAG) --target argocli -f Dockerfile.dev .
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug fix

@@ -191,7 +191,7 @@ func (s *E2ESuite) AfterTest(_, _ string) {

func (s *E2ESuite) printDiagnostics() {
s.Diagnostics.Print()
wfs, err := s.wfClient.List(metav1.ListOptions{FieldSelector: "metadata.namespace=" + Namespace})
wfs, err := s.wfClient.List(metav1.ListOptions{FieldSelector: "metadata.namespace=" + Namespace, LabelSelector: label})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only print diagnostics for test subjects

@@ -16,7 +17,9 @@ type Diagnostics struct {
}

func (d *Diagnostics) Logf(format string, args ...interface{}) {
d.Log(log.Fields{}, fmt.Sprintf(format, args...))
for _, line := range strings.Split(fmt.Sprintf(format, args...), "\n") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prints out HTTP chatter on multiple lines

@alexec alexec changed the title Adds argo server command. Fixes #1966 feat: Adds argo server command. Fixes #1966 Jan 14, 2020
@codecov
Copy link

codecov bot commented Jan 14, 2020

Codecov Report

Merging #1972 into master will increase coverage by <.01%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1972      +/-   ##
=========================================
+ Coverage    8.88%   8.88%   +<.01%     
=========================================
  Files          53      53              
  Lines       33608   33611       +3     
=========================================
+ Hits         2985    2986       +1     
- Misses      30233   30234       +1     
- Partials      390     391       +1
Impacted Files Coverage Δ
...erver/workflowtemplate/workflow_template_server.go 54% <50%> (-1.32%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd704dd...e2190c8. Read the comment docs.

@alexec alexec marked this pull request as ready for review January 14, 2020 18:05
@alexec alexec requested a review from simster7 January 14, 2020 18:06
@alexec alexec changed the base branch from apiserverimpl to master January 15, 2020 20:19
@alexec alexec merged commit 51dab8a into argoproj:master Jan 15, 2020
@alexec alexec deleted the argo-server branch January 15, 2020 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants