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: Use goreman for starting locally. #3074

Merged
merged 3 commits into from
May 21, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented May 21, 2020

Fixes: #2965

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've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Changes

argo-server and workflow-controller and started using goreman same as Argo CD, which foreground them and logs which prepend the app name:

goreman-logs

We label resources and can prune resources not needed.

This can be merged as soon as green.

@alexec alexec requested a review from simster7 May 21, 2020 17:07
- run:
name: Install and start K3S v1.0.1
command: curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.0.1 INSTALL_K3S_EXEC=--docker K3S_KUBECONFIG_MODE=644 sh -
background: true
- restore_go_cache
- install_golang
- run:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix regular failing builds (due to Golang not being installed)

kubectl -n argo apply -f dist/no-db.yaml
endif
endif
kubectl -n argo apply -l app.kubernetes.io/part-of=argo --prune --force -f dist/$(DB).yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will delete mysql if you run postgres and vice-versa, but not delete workflows

Copy link
Member

Choose a reason for hiding this comment

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

Great, thanks for fitting my use case.

@alexec alexec marked this pull request as ready for review May 21, 2020 17:11
Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

kubectl -n argo apply -f dist/no-db.yaml
endif
endif
kubectl -n argo apply -l app.kubernetes.io/part-of=argo --prune --force -f dist/$(DB).yaml
Copy link
Member

Choose a reason for hiding this comment

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

Great, thanks for fitting my use case.

@@ -2,6 +2,8 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
labels:
app.kubernetes.io/part-of: argo
Copy link
Member

Choose a reason for hiding this comment

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

Good add

@simster7
Copy link
Member

Linked #2965 to this

@sonarcloud
Copy link

sonarcloud bot commented May 21, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@alexec alexec merged commit 784c138 into argoproj:master May 21, 2020
@alexec alexec deleted the build-goreman branch May 21, 2020 17:36
@alexec
Copy link
Contributor Author

alexec commented May 21, 2020

@simster7 thank you

@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a "start foreground" option to Makefile
3 participants