-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f4f52d
commit 60d210d
Showing
7 changed files
with
135 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.hub.apimanagement.enabled }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: apiportal | ||
namespace: {{ template "traefik.namespace" . }} | ||
labels: | ||
{{- include "traefik.labels" . | nindent 4 }} | ||
spec: | ||
ports: | ||
- name: apiportal | ||
port: 9903 | ||
protocol: TCP | ||
targetPort: apiportal | ||
selector: | ||
{{- include "traefik.labelselector" . | nindent 4 }} | ||
{{- end -}} | ||
|
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
suite: API Portal configuration with Traefik Hub enabled | ||
templates: | ||
- hub-apiportal.yaml | ||
set: | ||
hub: | ||
token: "xxx" | ||
apimanagement: | ||
enabled: true | ||
tests: | ||
- it: should provide a single service by default | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- it: should not provide api portal service when apimanagement is not enabled | ||
set: | ||
hub: | ||
apimanagement: | ||
enabled: false | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: should expose the required apiportal port on a ClusterIP service | ||
asserts: | ||
- notExists: | ||
path: spec.type | ||
- contains: | ||
path: spec.ports | ||
content: | ||
name: apiportal | ||
port: 9903 | ||
protocol: TCP | ||
targetPort: apiportal |
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