Skip to content

Commit

Permalink
fix(dash): detach nats service roles from other templates
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Sep 8, 2024
1 parent 8bd5677 commit 56a2447
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 114 deletions.
16 changes: 0 additions & 16 deletions templates/dash/dash-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,3 @@ subjects:
kind: ServiceAccount
name: dash-system
namespace: dash
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: dash-system
namespace: dash
labels:
nats_cluster: nats
nats_service_account: dash-system
spec:
permissions:
publish:
- dash.optimize.>
subscribe:
- _inbox.>
- _INBOX.>
113 changes: 113 additions & 0 deletions templates/dash/dash-natsservicerole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-collector
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-collector
spec:
permissions:
publish:
- dash.collector
- dash.collector.>
subscribe:
- _inbox.*
- _INBOX.>
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-dash-network
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-network
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network
spec:
permissions:
publish:
- _inbox.*
- _INBOX.>
- dash.network.>
subscribe:
- _inbox.*
- _INBOX.>
- dash.collector
- dash.collector.>
- dash.network.>
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-dash-network-agent
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-agent
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-network-agent
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-agent
spec:
permissions:
publish:
- _inbox.*
- _INBOX.>
- dash.network.manage
subscribe:
- _inbox.*
- _INBOX.>
- dash.network.alert
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-dash-network-connect
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-connect
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-network-connect
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-connect
spec:
permissions:
publish:
- dash.network.connect
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: dash-system
namespace: dash
labels:
nats_cluster: nats
nats_service_account: dash-system
spec:
permissions:
publish:
- dash.optimize.>
subscribe:
- _inbox.>
- _INBOX.>
2 changes: 1 addition & 1 deletion templates/dash/dash-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
- name: nats-token
secret:
secretName: dash-system-nats-bound-token
optional: false
optional: true
items:
- key: token
path: token
97 changes: 0 additions & 97 deletions templates/dash/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,100 +15,3 @@ metadata:
labels:
nats_cluster: nats
nats_service_account: nats-dash-collector
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-collector
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-collector
spec:
permissions:
publish:
- dash.collector
- dash.collector.>
subscribe:
- _inbox.*
- _INBOX.>
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-dash-network
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-network
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network
spec:
permissions:
publish:
- _inbox.*
- _INBOX.>
- dash.network.>
subscribe:
- _inbox.*
- _INBOX.>
- dash.collector
- dash.collector.>
- dash.network.>
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-dash-network-agent
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-agent
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-network-agent
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-agent
spec:
permissions:
publish:
- _inbox.*
- _INBOX.>
- dash.network.manage
subscribe:
- _inbox.*
- _INBOX.>
- dash.network.alert
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-dash-network-connect
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-connect
---
apiVersion: nats.io/v1alpha2
kind: NatsServiceRole
metadata:
name: nats-dash-network-connect
namespace: dash
labels:
nats_cluster: nats
nats_service_account: nats-dash-network-connect
spec:
permissions:
publish:
- dash.network.connect

0 comments on commit 56a2447

Please sign in to comment.