-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(expose): override public service port (#210)
* fix(expose): override service port if 'expose.service.overrides.{service}.publicPort' is defined. * fix(expose): avoid to override patches. * fix(expose): cleanup code. * fix(expose): add unit test. * fix(expose): add unit test. * fix(expose): add unit test.
- Loading branch information
Cristhian Castaneda
authored
Jan 28, 2021
1 parent
138344d
commit c183db0
Showing
6 changed files
with
110 additions
and
17 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
30 changes: 30 additions & 0 deletions
30
pkg/deploy/spindeploy/expose_service/testdata/spinsvc_expose_publicPort.yml
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: spinnaker.io/v1alpha2 | ||
kind: SpinnakerService | ||
metadata: | ||
name: spinnaker | ||
namespace: ns1 | ||
spec: | ||
spinnakerConfig: | ||
config: | ||
version: 1.15.1 | ||
persistentStorage: | ||
persistentStoreType: s3 | ||
s3: | ||
bucket: my-bucket | ||
region: us-west-2 | ||
rootFolder: front50 | ||
profiles: | ||
gate: | ||
default: | ||
apiPort: 8085 | ||
expose: | ||
type: service | ||
service: | ||
type: LoadBalancer | ||
publicPort: 80 | ||
annotations: | ||
"service.beta.kubernetes.io/aws-load-balancer-backend-protocol": "http" | ||
overrides: {} | ||
status: | ||
apiUrl: http://acme.com | ||
uiUrl: http://acme.com |
34 changes: 34 additions & 0 deletions
34
pkg/deploy/spindeploy/expose_service/testdata/spinsvc_override_port.yml
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: spinnaker.io/v1alpha2 | ||
kind: SpinnakerService | ||
metadata: | ||
name: spinnaker | ||
namespace: ns1 | ||
spec: | ||
spinnakerConfig: | ||
config: | ||
version: 1.23.3 | ||
persistentStorage: | ||
persistentStoreType: s3 | ||
s3: | ||
bucket: my-bucket | ||
region: us-west-2 | ||
rootFolder: front50 | ||
security: | ||
apiSecurity: | ||
overrideBaseUrl: http://acme.com | ||
ssl: | ||
enabled: false | ||
uiSecurity: | ||
overrideBaseUrl: http://acme.com | ||
ssl: | ||
enabled: false | ||
expose: | ||
type: service | ||
service: | ||
type: LoadBalancer | ||
annotations: | ||
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http | ||
overrides: | ||
gate: | ||
type: ClusterIP | ||
publicPort: 8089 |
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