gravitee-api-management icon indicating copy to clipboard operation
gravitee-api-management copied to clipboard

fix: configure kubernetes synchronizer to watch All or specifiec name…

Open kamiiiel opened this issue 2 years ago • 2 comments

Description

At the moment Kubernetes synchroniser is watching all namespaces and there is no way to configure it. This PR will make the synchronizer to only watch to the current namespace that the Gateway is running inside it by default but the user can change this behaviour by setting the 'namespace' attribute.

🚀 CI was able to deploy the build of this PR, so you can now try it directly here Notes: The deployed app is linked to the management API of APIM master. (Same login and password as APIM master)


📚  View the storybook of this branch here

kamiiiel avatar Sep 14 '22 16:09 kamiiiel

There will surely be things to change here too. because actually CRD are on default ns and apim on apim-dev ns of k3d

ThibaudAV avatar Sep 16 '22 08:09 ThibaudAV

@brasseld , @ThibaudAV can you please approve this PR if nothing else needs to be modified.

kamiiiel avatar Sep 20 '22 10:09 kamiiiel

@kamiiiel Do we agree that if no namespace is configured, then we are watching all namespaces ?

brasseld avatar Oct 14 '22 15:10 brasseld

@kamiiiel Do we agree that if no namespace is configured, then we are watching all namespaces ?

If we don't provide any namespace, we only listen to the current namespace that the gateway is running inside it. Btw, we will get errors if want to watch different namespaces but we don't use ClusterRole for our service account.

kamiiiel avatar Oct 31 '22 15:10 kamiiiel