-
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
feat: Introduces Server-Side Apply as sync option #9711
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9711 +/- ##
==========================================
+ Coverage 45.87% 45.96% +0.09%
==========================================
Files 227 226 -1
Lines 27373 27382 +9
==========================================
+ Hits 12556 12586 +30
+ Misses 13113 13086 -27
- Partials 1704 1710 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I enabled server side apply at the app level right now like below:
I also tried our service port case mentioned in #8812 (comment) but unfortunately, it doesn't work and threw error during diff phase. The error is: Hopefully, the error would be helpful for you to troubleshoot. Thanks for the great work so far! |
Hi @yeya24, I created a test with your service example as part of argoproj/gitops-engine#418 and the test is passing. From the error message, it seems that there is something duplicated in your ports list. Can you please double check if you have duplicated ports with the same name? |
I was using the same manifest but I still got this error. No duplicate port name. apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- name: rtmpk
port: 1986
protocol: UDP
targetPort: 1986
- name: rtmp
port: 1935
targetPort: 1935
- name: rtmpq
port: 1935
protocol: UDP
targetPort: 1935
- name: https
port: 443
targetPort: 443
- name: http3
port: 443
protocol: UDP
targetPort: 443 |
Can you pls try applying this manifest and provide me the results? apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- name: rtmpk
port: 1986
protocol: UDP
targetPort: 1986
- name: rtmp
port: 1935
protocol: TCP
targetPort: 1935
- name: rtmpq
port: 1935
protocol: UDP
targetPort: 1935
- name: https
port: 443
protocol: TCP
targetPort: 443
- name: http3
port: 443
protocol: UDP
targetPort: 443 |
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
@yeya24 I rebased this branch with master, deployed locally and tested with #8812 (comment) and confirm that its working as expected. Can you please try again with this updated branch? Btw, added an additional unit test to validate this exact case: |
Signed-off-by: Leonardo Luz Almeida <[email protected]>
go.mod
Outdated
@@ -253,6 +253,9 @@ require ( | |||
) | |||
|
|||
replace ( | |||
// TODO release gitops-engine and remove the line bellow | |||
github.com/argoproj/gitops-engine => github.com/leoluz/gitops-engine v0.4.1-0.20220725160058-77142a1d6e59 |
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.
This can be updated now right? argoproj/gitops-engine#418
quite excited for this thanks for the awesome work @leoluz
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.
@FabioAntunes Tks!
I just updated this branch to point to gitops-engine master.
It would be awesome if you can give this a try and provide us feedback.
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
* feat: Introduces Server-Side Apply as sync option Signed-off-by: Leonardo Luz Almeida <[email protected]> * add docs Signed-off-by: Leonardo Luz Almeida <[email protected]> * Implement the structured-merge diff when ssa is enabled Signed-off-by: Leonardo Luz Almeida <[email protected]> * update gitops-engine Signed-off-by: Leonardo Luz Almeida <[email protected]> * update gitops-engine Signed-off-by: Leonardo Luz Almeida <[email protected]> * go mod tidy Signed-off-by: Leonardo Luz Almeida <[email protected]> * Add server-side apply option to the UI Signed-off-by: Leonardo Luz Almeida <[email protected]> * update gitops-engine to master Signed-off-by: Leonardo Luz Almeida <[email protected]> * fix live default values Signed-off-by: Leonardo Luz Almeida <[email protected]>
This PR implements the Server-Side Apply proposal.
Achieved goals:
Fix #2267
Fix #2268
Checklist:
Signed-off-by: Leonardo Luz Almeida [email protected]