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

add namespace selector #79

Merged
merged 1 commit into from
Feb 29, 2024
Merged

add namespace selector #79

merged 1 commit into from
Feb 29, 2024

Conversation

jgilfoil
Copy link
Owner

No description provided.

Copy link

--- kubernetes/apps Kustomization: flux-system/cluster-apps Namespace: flux-system/testing

+++ kubernetes/apps Kustomization: flux-system/cluster-apps Namespace: flux-system/testing

@@ -2,8 +2,9 @@

 apiVersion: v1
 kind: Namespace
 metadata:
   labels:
     kustomize.toolkit.fluxcd.io/name: cluster-apps
     kustomize.toolkit.fluxcd.io/namespace: flux-system
+    vpn-routed-gateway: 'true'
   name: testing
 
--- kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway HelmRelease: network/vpn-gateway

+++ kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway HelmRelease: network/vpn-gateway

@@ -79,7 +79,9 @@

       gatewayAnnotation: setGateway
       gatewayDefault: false
       gatewayLabel: setGateway
       image:
         repository: ghcr.io/angelnu/gateway-admision-controller
         tag: v3.9.0@sha256:4e169da5af107a9c6c784d3e03c89da07fad45f18358ab5b7177662df12d955a
+      namespaceSelector:
+        label: vpn-routed-gateway
 

Copy link

--- HelmRelease: network/vpn-gateway MutatingWebhookConfiguration: network/vpn-gateway-pod-gateway

+++ HelmRelease: network/vpn-gateway MutatingWebhookConfiguration: network/vpn-gateway-pod-gateway

@@ -10,13 +10,13 @@

   annotations:
     cert-manager.io/inject-ca-from: network/vpn-gateway-pod-gateway-webhook-tls
 webhooks:
 - name: vpn-gateway-pod-gateway.svc.cluster.local
   namespaceSelector:
     matchLabels:
-      routed-gateway: 'true'
+      vpn-routed-gateway: 'true'
   rules:
   - apiGroups:
     - ''
     apiVersions:
     - v1
     operations:

@jgilfoil jgilfoil merged commit 31e813e into main Feb 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant