forked from argoproj/argo-rollouts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(controller): don't hardcode experiment ports; always create serv…
…ice (argoproj#2397) * Copy ports from replicaset rather than hardcoding them Fixes: argoproj#2233 Signed-off-by: Alex Eftimie <[email protected]> * Allow user to set the experiment service name. Create a service even though a weight is not set (when the name is provided) Signed-off-by: Alex Eftimie <[email protected]> * Run codegen Signed-off-by: Alex Eftimie <[email protected]> * Run codegen again, service name is optional Signed-off-by: Alex Eftimie <[email protected]> * Fix conversion and tests Signed-off-by: Alex Eftimie <[email protected]> * Fix codegen Signed-off-by: Alex Eftimie <[email protected]> * Fix codegen again Signed-off-by: Alex Eftimie <[email protected]> * white space Signed-off-by: Alex Eftimie <[email protected]> * Extend from corev1.ServiceSpec Signed-off-by: Alex Eftimie <[email protected]> * make lint Signed-off-by: Alex Eftimie <[email protected]> * infer ports from ReplicaSet. this should fix e2e tests Signed-off-by: Alex Eftimie <[email protected]> * fix e2e disable service where service is not needed or expected set ports where service must be created Signed-off-by: Alex Eftimie <[email protected]> * use json inline so that crd reflects ports Signed-off-by: Alex Eftimie <[email protected]> * Add codegen openapi_generated.go Signed-off-by: Alex Eftimie <[email protected]> * fix codegen, protobuf is needed Signed-off-by: Alex Eftimie <[email protected]> * Add unit test Signed-off-by: Alex Eftimie <[email protected]> * Add unit test to new not tested code - copy pods from RS Signed-off-by: Alex Eftimie <[email protected]> * Address PR comment: set entire spec Signed-off-by: Alex Eftimie <[email protected]> * docs: update experiment and rollout spec Signed-off-by: Alex Eftimie <[email protected]> * redo pr. drop spec changes. only inherit ports and always create the service. update docs Signed-off-by: Alex Eftimie <[email protected]> * Ran go fmt Signed-off-by: Alex Eftimie <[email protected]> * revert changes. only enable service if weighted or template service not nil Signed-off-by: Alex Eftimie <[email protected]> * typo in types Signed-off-by: Alex Eftimie <[email protected]> * go fmt. need pre-commit hook Signed-off-by: Alex Eftimie <[email protected]> * no more spec changes Signed-off-by: Alex Eftimie <[email protected]> * drop test which is not relevant any more Signed-off-by: Alex Eftimie <[email protected]> * fix e2e - only generate service if RS has ports Signed-off-by: Alex Eftimie <[email protected]> * fix e2e Signed-off-by: Alex Eftimie <[email protected]> Signed-off-by: Alex Eftimie <[email protected]>
- Loading branch information
1 parent
fb546b7
commit 6320e35
Showing
8 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,6 @@ spec: | |
requests: | ||
memory: 16Mi | ||
cpu: 1m | ||
ports: | ||
- protocol: TCP | ||
containerPort: 8080 |