Skip to content

Commit

Permalink
Use release name as prefix instead of suffix for chain-specific resou…
Browse files Browse the repository at this point in the history
…rces (#1)

Co-authored-by: Haild <[email protected]>
  • Loading branch information
HailD and Haild authored Oct 18, 2024
1 parent 9411646 commit db41f2b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions charts/provider/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
name: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
labels:
{{- include "provider.labels" $ | nindent 4 }}
app.lavanet.io/chain: {{ $chain.name | lower }}
Expand Down Expand Up @@ -149,7 +149,7 @@ spec:
{{- if $chain.existingConfigSecret }}
secretName: {{ $chain.existingConfigSecret }}
{{- else }}
secretName: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
secretName: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
{{- end }}
- name: "private-key-volume"
secret:
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
pathType: {{ $.Values.ingressGrpc.pathType }}
backend:
service:
name: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
name: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
port:
name: grpc
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
name: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
labels:
{{- include "provider.labels" $ | nindent 4 }}
app.lavanet.io/chain: {{ $chain.id | lower }}
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
name: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
labels:
{{- include "provider.labels" $ | nindent 4 }}
app.lavanet.io/chain: {{ $chain.id | lower }}
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
name: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
labels:
{{- include "provider.labels" $ | nindent 4 }}
app.lavanet.io/chain: {{ $chain.name | lower }}
Expand Down
6 changes: 3 additions & 3 deletions charts/provider/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
name: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
labels:
{{- include "provider.labels" $ | nindent 4 }}
app.lavanet.io/chain: {{ $chain.name | lower }}
Expand Down Expand Up @@ -153,7 +153,7 @@ spec:
{{- if $chain.existingConfigSecret }}
secretName: {{ $chain.existingConfigSecret }}
{{- else }}
secretName: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
secretName: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
{{- end }}
- name: "private-key-volume"
secret:
Expand All @@ -163,7 +163,7 @@ spec:
{{- if $chain.persistence }}
{{- if $chain.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ $chain.name | lower }}-{{ include "provider.fullname" $ }}
claimName: {{ include "provider.fullname" $ }}-{{ $chain.name | lower }}
{{- else }}
emptyDir: {}
{{- end }}
Expand Down

0 comments on commit db41f2b

Please sign in to comment.