Skip to content

Commit

Permalink
Merge pull request #165 from appuio/fix/rbac-null-resource
Browse files Browse the repository at this point in the history
Fix generating null resource
  • Loading branch information
DebakelOrakel authored Jan 15, 2025
2 parents 551d932 + 13f1ff3 commit f80661a
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 672 deletions.
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

0 comments on commit f80661a

Please sign in to comment.