-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
chore: add skaffold dev configuration #11980
chore: add skaffold dev configuration #11980
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11980 +/- ##
==========================================
- Coverage 49.73% 49.46% -0.28%
==========================================
Files 274 274
Lines 48948 48771 -177
==========================================
- Hits 24343 24123 -220
- Misses 22230 22285 +55
+ Partials 2375 2363 -12 ☔ View full report in Codecov by Sentry. |
f14e658
to
7c5d1c1
Compare
7c5d1c1
to
e33a63f
Compare
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've tested it out and it works great. However, I did run into one small issue. It seems that the argocd
namespace needs to be created before running Skaffold.
#41 DONE 2.7s
Build [quay.io/argoproj/argocd] succeeded
Tags used in deployment:
- quay.io/argoproj/argocd -> quay.io/argoproj/argocd:d137b2680f58f7794c3aad39421cd62f49e55fe5ec3cf3e033f954d0be7c3924
Starting deploy...
Loading images into kind cluster nodes...
- quay.io/argoproj/argocd:d137b2680f58f7794c3aad39421cd62f49e55fe5ec3cf3e033f954d0be7c3924 -> Loaded
Images loaded in 26.848 seconds
- customresourcedefinition.apiextensions.k8s.io/applications.argoproj.io created
- customresourcedefinition.apiextensions.k8s.io/applicationsets.argoproj.io created
- customresourcedefinition.apiextensions.k8s.io/appprojects.argoproj.io created
- clusterrole.rbac.authorization.k8s.io/argocd-application-controller created
- clusterrolebinding.rbac.authorization.k8s.io/argocd-application-controller created
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
- Error from server (NotFound): error when creating "STDIN": namespaces "argocd" not found
Cleaning up...
- customresourcedefinition.apiextensions.k8s.io "applications.argoproj.io" deleted
- customresourcedefinition.apiextensions.k8s.io "applicationsets.argoproj.io" deleted
- customresourcedefinition.apiextensions.k8s.io "appprojects.argoproj.io" deleted
- clusterrole.rbac.authorization.k8s.io "argocd-application-controller" deleted
- clusterrolebinding.rbac.authorization.k8s.io "argocd-application-controller" deleted
kubectl apply: exit status 1
To make things even easier, you could either add this information to the documentation or include the creation of the argocd namespace as part of the Skaffold configuration.
Overall, this is fantastic work and I'm excited to see this get merged in. Great job!
@drpaneas I added a |
Good thinking. The next step would be to automate the installation of Skaffold as a binary, but I don't think this is required for this PR. It's already good enough in my opinion. |
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.
/lgtm
@blakepettersson is there anything else needed here or can we merge? I like using this workflow and I think others will benefit as well. It's not breaking anything (no regressions) just adding additional (ease) functionality. |
In the contributors meeting two weeks ago, @crenshaw-dev and @jannfis were concerned about having yet another way of running Argo CD in dev. Before merging the core committers would like to be aligned on how to run Argo in dev, and then commit to it. It could very well be Skaffold; I had promised to give a demo on one of these contributor meetings to show the other committers how nice it is to run but I haven't had the time. I could potentially give a demo tomorrow but I don't think it'll be too likely I'll have the time. If not then, I'll set time for next week's contributor meeting to give this a spin. |
2ec741f
to
c9975db
Compare
4121a26
to
533824f
Compare
d6ef7bb
to
23eac50
Compare
23eac50
to
31dcaa9
Compare
31dcaa9
to
c95fe13
Compare
b48f95a
to
98dc48c
Compare
98dc48c
to
f80c369
Compare
f80c369
to
8735f5b
Compare
7140df4
to
0d4c415
Compare
0d4c415
to
32cbf82
Compare
32cbf82
to
d8b8b54
Compare
cfd1938
to
d5794f8
Compare
d5794f8
to
993169f
Compare
94562a6
to
a93f05d
Compare
a97c383
to
732ac0e
Compare
This adds a Skaffold configuration for quickly standing up an Argo CD for development purposes. Signed-off-by: Blake Pettersson <[email protected]>
This makes sure the argocd-server is running in insecure mode locally. Signed-off-by: Blake Pettersson <[email protected]>
Co-authored-by: Panagiotis Georgiadis <[email protected]> Signed-off-by: Blake Pettersson <[email protected]>
Kustomize doesn't currently (or at least smoothly) create namespaces if one doesn't already exist, so let's add a make task to wrap `skaffold dev` along with creating a namespace if one doesn't already exist. Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
732ac0e
to
083ede0
Compare
This adds a Skaffold configuration for quickly standing up an Argo CD for development purposes.
Signed-off-by: Blake Pettersson [email protected]
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
[ ] I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.[ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.