Skip to content
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: add expose service entry for internal cluster traffic #356

Merged
merged 31 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a5a1dd0
feat: add a keycloak service entry for internal cluster traffic
Racer159 Apr 19, 2024
7b21a94
add cap check
Racer159 Apr 19, 2024
91f0c12
Merge branch 'main' into add-keycloak-service-entry
Racer159 Apr 19, 2024
4820555
Merge branch 'main' into add-keycloak-service-entry
UnicornChance Apr 24, 2024
ac90288
Merge branch 'main' into add-keycloak-service-entry
UnicornChance Apr 24, 2024
6711f4e
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 2, 2024
ebe2755
Merge branch 'main' into add-keycloak-service-entry
UnicornChance May 3, 2024
6ffa236
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 6, 2024
fde7b14
this should work :fingers-crossed:
Racer159 May 6, 2024
759b141
remove service entry
Racer159 May 6, 2024
2ebbc86
fix linting
Racer159 May 6, 2024
90705d5
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 6, 2024
948c259
fix plural and names
Racer159 May 7, 2024
67c9cd1
fix dev
Racer159 May 7, 2024
7d89156
remove vs
Racer159 May 7, 2024
21729e0
fix the feedback - refactor the codes
Racer159 May 9, 2024
23c3981
add a comment
Racer159 May 9, 2024
0531a3c
add a comment2
Racer159 May 9, 2024
a8f2838
add tests
Racer159 May 9, 2024
3ff3482
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 9, 2024
10a0c7e
fix lint
Racer159 May 9, 2024
4393b62
fix other pkg name
Racer159 May 9, 2024
01fe692
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 10, 2024
7721df3
update docs
Racer159 May 10, 2024
3a17981
update docs
Racer159 May 10, 2024
1fe059a
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 10, 2024
28fc988
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 10, 2024
482760c
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 13, 2024
f165219
Update src/pepr/operator/controllers/istio/istio-resources.ts
Racer159 May 14, 2024
8712757
Update src/pepr/operator/controllers/istio/istio-resources.ts
Racer159 May 14, 2024
fff964e
Merge branch 'main' into add-keycloak-service-entry
Racer159 May 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/keycloak/chart/templates/istio-service-entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Capabilities.APIVersions.Has "networking.istio.io/v1beta1" }}
apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: {{ include "keycloak.fullname" . }}-internal-service-entry
namespace: {{ .Release.Namespace }}
spec:
hosts:
- sso.{{ .Values.domain }}
location: MESH_INTERNAL
ports:
- number: 443
name: https
protocol: HTTPS
resolution: DNS
endpoints:
- address: tenant-ingressgateway.istio-tenant-gateway.svc.cluster.local
{{- end }}
2 changes: 1 addition & 1 deletion src/keycloak/chart/templates/secret-admin-password.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ $secretName }}
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "keycloak.labels" . | nindent 4 }}
type: Opaque
Expand Down
2 changes: 1 addition & 1 deletion src/keycloak/chart/templates/secret-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "keycloak.fullname" . }}-postgresql
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "keycloak.labels" . | nindent 4 }}
type: Opaque
Expand Down