Skip to content

Commit

Permalink
feat: update inventory operator with simplied role bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
chainzero committed Feb 28, 2024
1 parent bbd8b14 commit f48256e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 47 deletions.
2 changes: 1 addition & 1 deletion charts/akash-hostname-operator/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ spec:
ports:
- name: rest
port: 8080
targetPort: rest
targetPort: rest
4 changes: 2 additions & 2 deletions charts/akash-inventory-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: operator-inventory
name: akash-operator-inventory
labels:
akash.network: "true"
app.kubernetes.io/name: inventory
Expand Down Expand Up @@ -94,7 +94,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: operator-inventory-hardware-discovery
name: akash-operator-inventory-hardware-discovery
labels:
akash.network: "true"
app.kubernetes.io/name: inventory
Expand Down
45 changes: 3 additions & 42 deletions charts/akash-inventory-operator/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: operator-inventory
name: akash-operator-inventory
subjects:
- kind: ServiceAccount
name: operator-inventory
Expand All @@ -31,47 +31,8 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: operator-inventory-hardware-discovery
name: akash-operator-inventory-hardware-discovery
subjects:
- kind: ServiceAccount
name: operator-inventory-hardware-discovery
namespace: akash-services
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: akash-ip-operator-manage-service
subjects:
- kind: ServiceAccount
name: akash-ip-operator
namespace: akash-services
roleRef:
kind: ClusterRole
name: akash-ip-op-manage-service
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: akash-ip-operator-watch-providerleasedip
subjects:
- kind: ServiceAccount
name: akash-ip-operator
namespace: akash-services
roleRef:
kind: ClusterRole
name: akash-ip-op-watch-providerleasedip
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: akash-ip-operator-watch-configmaps
subjects:
- kind: ServiceAccount
name: akash-ip-operator
namespace: akash-services
roleRef:
kind: ClusterRole
name: akash-ip-op-watch-configmaps
apiGroup: rbac.authorization.k8s.io
namespace: akash-services
3 changes: 2 additions & 1 deletion charts/akash-inventory-operator/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:
Expand All @@ -12,7 +13,7 @@ metadata:
spec:
type: ClusterIP
ports:
- name: api
- name: rest
port: 8080
targetPort: rest
appProtocol: http
Expand Down
2 changes: 1 addition & 1 deletion charts/akash-ip-operator/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
ports:
- name: rest
port: 8080
targetPort: rest
targetPort: rest

0 comments on commit f48256e

Please sign in to comment.