You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main function should build a Set populated with all the namespaces to be ignored, and then use the ignoredNamespacesSet.Contains function to quickly determine whether a namespace has to be ignored.
As bonus points, using a Set built in a dynamic fashion would allow the code to be extended to allow the user to provide his own list of namespaces to ignore
The text was updated successfully, but these errors were encountered:
For the users own list of namespaces, a label instead of name of the namespaces could be implemented.
meaning that the user could purposely label the namespace and match that label in the manifest for exclusion.
sounds good?
For the users own list of namespaces, a label instead of name of the namespaces could be implemented.
meaning that the user could purposely label the namespace and match that label in the manifest for exclusion.
sounds good?
Yes and no... someone could abuse this system to have his namespace unrestricted. It's all up to you how to implement that.
You could just start with an environment variable that takes a comma separated list of names
The code currently handling the ignored namespaces can be improved by using a Set.
The Go SDK doesn't offer this type yet, but there's this library that does that: https://github.com/deckarep/golang-set
The
main
function should build a Set populated with all the namespaces to be ignored, and then use theignoredNamespacesSet.Contains
function to quickly determine whether a namespace has to be ignored.As bonus points, using a Set built in a dynamic fashion would allow the code to be extended to allow the user to provide his own list of namespaces to ignore
The text was updated successfully, but these errors were encountered: