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

Allow ClusterOutput and ClusterFlow resources defined in arbitrary namespaces #499

Merged
merged 1 commit into from Jun 15, 2020

Conversation

pepov
Copy link
Member

@pepov pepov commented Jun 15, 2020

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets #497
License Apache 2.0

What's in this PR?

Adds an optional, backwards compatible flag to allow using ClusterOutput and ClusterFlow resources in arbitrary namespaces. Administrators will still be able to control who has the ability to create such resources through RBAC.

Why?

To support use cases where a development team has ownership over logs coming from multiple namespaces but they can only deploy resources into their own namespace and cannot access the logging's control namespace.

@pepov pepov changed the title allow ClusterOutput and ClusterFlow resources defined in arbitrary namespaces Allow ClusterOutput and ClusterFlow resources defined in arbitrary namespaces Jun 15, 2020
@pepov pepov requested a review from tarokkk June 15, 2020 09:30
@pepov pepov force-pushed the cluster-resource-ns-arbitrary branch from 21d00b3 to 60dedd9 Compare June 15, 2020 09:33
@pepov pepov force-pushed the cluster-resource-ns-arbitrary branch from 32a6c19 to 7fa4f18 Compare June 15, 2020 09:53
Copy link
Contributor

@ahma ahma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pepov LGMT

@ahma ahma merged commit e5d2d29 into master Jun 15, 2020
@ahma ahma deleted the cluster-resource-ns-arbitrary branch June 15, 2020 11:09
@@ -263,8 +263,14 @@ func (r *LoggingReconciler) GetResources(logging *loggingv1beta1.Logging) (*mode
loggingResources := model.NewLoggingResources(logging, r.Client, r.Log)
var err error

listOptsForClusterResources := []client.ListOption{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
listOptsForClusterResources := []client.ListOption{}
var listOptsForClusterResources []client.ListOption

Could save an unnecessary allocation.

simonkey007 pushed a commit to simonkey007/logging-operator that referenced this pull request Mar 11, 2021
EppO pushed a commit to EppO/logging-operator that referenced this pull request Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants