-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supports enabling namespaced ClusterLogForwarder resources. Enabling the feature requires redeploying the Cluster Logging Operator.
- Loading branch information
1 parent
742ce51
commit 4720fc3
Showing
10 changed files
with
276 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
tests/golden/master/openshift4-logging/openshift4-logging/32_namespace_logforwarding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: logging.openshift.io/v1 | ||
kind: ClusterLogForwarder | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: bar | ||
name: bar | ||
namespace: foo | ||
spec: | ||
inputs: | ||
- application: | ||
namespaces: | ||
- app-one | ||
- app-two | ||
name: my-apps | ||
outputs: | ||
- name: custom-forwarder | ||
type: syslog | ||
pipelines: | ||
- inputRefs: | ||
- my-apps | ||
name: my-apps | ||
outputRefs: | ||
- custom-forwarder | ||
serviceAccountName: ueli | ||
--- | ||
apiVersion: logging.openshift.io/v1 | ||
kind: ClusterLogForwarder | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: hands | ||
name: hands | ||
namespace: jazz | ||
spec: | ||
outputs: | ||
- name: splunk-forwarder | ||
secret: | ||
name: splunk-forwarder | ||
type: fluentdForward | ||
url: tls://splunk-forwarder:24224 | ||
pipelines: | ||
- inputRefs: | ||
- application | ||
name: application-logs | ||
outputRefs: | ||
- splunk-forwarder | ||
serviceAccountName: hands |
33 changes: 33 additions & 0 deletions
33
tests/golden/master/openshift4-logging/openshift4-logging/32_namespace_rolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: ueli | ||
name: ueli | ||
namespace: foo | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: collect-application-logs | ||
subjects: | ||
- kind: ServiceAccount | ||
name: ueli | ||
namespace: foo | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: hands | ||
name: hands | ||
namespace: jazz | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: collect-application-logs | ||
subjects: | ||
- kind: ServiceAccount | ||
name: hands | ||
namespace: jazz |
19 changes: 19 additions & 0 deletions
19
tests/golden/master/openshift4-logging/openshift4-logging/32_namespace_serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: ueli | ||
name: ueli | ||
namespace: foo | ||
spec: {} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: hands | ||
name: hands | ||
namespace: jazz | ||
spec: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters