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

build: adds make env to make testing easier #2087

Merged
merged 3 commits into from
Jan 29, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Jan 28, 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.

@@ -30,6 +30,7 @@ STATIC_BUILD ?= true
CI ?= false
DB ?= postgres
K3D := $(shell if [ "`kubectl config current-context`" = "k3s-default" ]; then echo true; else echo false; fi)
ARGO_TOKEN = $(shell kubectl -n argo get secret -o name | grep argo-server | xargs kubectl -n argo get -o jsonpath='{.data.token}' | base64 --decode)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there are big differences between :=, ?= and = in Makefiles

Copy link
Member

Choose a reason for hiding this comment

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

kubectl -nargo get sa argo-server -o jsonpath='{.secrets[0].name}' | xargs kubectl -n argo get secret -o jsonpath='{.data.token}' | base64 --decode might be more accurate, but this is okay.

@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

Merging #2087 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2087   +/-   ##
======================================
  Coverage    8.89%   8.89%           
======================================
  Files          61      61           
  Lines       34597   34597           
======================================
  Hits         3077    3077           
  Misses      31132   31132           
  Partials      388     388

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 7b99ef7...f10b91a. Read the comment docs.

@alexec alexec marked this pull request as ready for review January 28, 2020 21:50
@@ -30,6 +30,7 @@ STATIC_BUILD ?= true
CI ?= false
DB ?= postgres
K3D := $(shell if [ "`kubectl config current-context`" = "k3s-default" ]; then echo true; else echo false; fi)
ARGO_TOKEN = $(shell kubectl -n argo get secret -o name | grep argo-server | xargs kubectl -n argo get -o jsonpath='{.data.token}' | base64 --decode)
Copy link
Member

Choose a reason for hiding this comment

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

kubectl -nargo get sa argo-server -o jsonpath='{.secrets[0].name}' | xargs kubectl -n argo get secret -o jsonpath='{.data.token}' | base64 --decode might be more accurate, but this is okay.

@alexec alexec merged commit 01d8cae into argoproj:master Jan 29, 2020
@alexec alexec deleted the argo-env branch January 29, 2020 22:12
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.

2 participants