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

Fix generating null resource #165

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions component/log_forwarder.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ local rbac = [
namespace: params.namespace,
} ],
},
if lokiEnabled then kube._Object('rbac.authorization.k8s.io/v1', 'ClusterRoleBinding', 'logcollector-log-writer') {
] + if lokiEnabled then [
kube._Object('rbac.authorization.k8s.io/v1', 'ClusterRoleBinding', 'logcollector-log-writer') {
metadata+: {
annotations+: {
'argocd.argoproj.io/sync-wave': '-50',
Expand All @@ -179,7 +180,7 @@ local rbac = [
namespace: params.namespace,
} ],
},
];
] else [];

// Define outputs below
if forwarderEnabled then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
config:
plugins:
- logging-view-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,3 @@ spec:
name: cluster-logging
source: redhat-operators
sourceNamespace: openshift-operators-redhat
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
annotations:
argocd.argoproj.io/sync-wave: '-80'
labels:
name: loki-operator
name: loki-operator
namespace: openshift-operators-redhat
spec:
channel: stable-6.1
config:
resources:
limits:
memory: 512Mi
requests:
cpu: 50m
memory: 381Mi
installPlanApproval: Automatic
name: loki-operator
source: openshift-operators-redhat
sourceNamespace: openshift-operators-redhat
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
annotations:
argocd.argoproj.io/sync-wave: '-80'
labels:
name: cluster-observability-operator
name: cluster-observability-operator
namespace: openshift-operators-redhat
spec:
channel: development
installPlanApproval: Automatic
name: cluster-observability-operator
source: openshift-operators-redhat
sourceNamespace: openshift-operators-redhat

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,21 @@ spec:
tolerations:
- key: storagenode
operator: Exists
filters:
- name: detectexception
type: detectMultilineException
- name: labels
openshiftLabels:
foo: bar
type: openshiftLabels
- name: parse-json
type: parse
managementState: Managed
outputs:
- lokiStack:
authentication:
token:
from: serviceAccount
target:
name: loki
namespace: openshift-logging
name: default-lokistack
tls:
ca:
configMapName: openshift-service-ca.crt
key: service-ca.crt
type: lokiStack
pipelines:
- detectMultilineErrors: true
- filterRefs:
- detectexception
- labels
- parse-json
name: application-logs
parse: json
- inputRefs:
- application
- infrastructure
name: default-lokistack
outputRefs:
- default-lokistack
serviceAccount:
name: logcollector
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,3 @@ subjects:
- kind: ServiceAccount
name: logcollector
namespace: openshift-logging
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
argocd.argoproj.io/sync-wave: '-50'
labels:
name: logcollector-log-writer
name: logcollector-log-writer
namespace: openshift-logging
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: logging-collector-logs-writer
subjects:
- kind: ServiceAccount
name: logcollector
namespace: openshift-logging

This file was deleted.

Loading
Loading