Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
suvajit-sarkar authored Jul 17, 2023
2 parents 0a34e02 + d6f5bf6 commit 706f9dd
Show file tree
Hide file tree
Showing 40 changed files with 122 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ spec:
spec:
restartPolicy: "OnFailure"
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
- name: ca-server-db
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ spec:
name: {{ .Values.metadata.name }}
spec:
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
- name: ca-tools-pv
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ spec:
spec:
restartPolicy: "OnFailure"
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down Expand Up @@ -147,8 +149,8 @@ spec:
mountPath: /secret
containers:
- name: createchannel
image: {{ $.Values.metadata.images.fabrictools }}
imagePullPolicy: IfNotPresent
image: {{ $.Values.metadata.images.fabrictools }}
imagePullPolicy: IfNotPresent
stdin: true
tty: true
command: ["sh", "-c"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
{{ if .Values.chaincode.tls }}
volumes:
{{ if .Values.vault.tls }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ spec:
app: cli
spec:
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
- name: {{ .Values.peer.name }}-cli-pv
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ spec:
spec:
restartPolicy: "OnFailure"
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
- name: certcheck
emptyDir:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ spec:
spec:
restartPolicy: "OnFailure"
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceAccountName: {{ $.Values.service.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.service.imagesecretname }}
{{- end }}
containers:
- name: couchdb
image: {{ $.Values.metadata.images.couchdb }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
- name: certificates
emptyDir:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
initContainers:
- name: certificates-init
image: {{ $.Values.metadata.images.alpineutils}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
restartPolicy: OnFailure
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
serviceAccountName: {{ $.Values.vault.reviewer_service }}
volumes:
{{ if .Values.vault.tls }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ spec:
spec:
restartPolicy: OnFailure
serviceAccountName: {{ $.Values.vault.serviceaccountname }}
{{- if .Values.vault.imagesecretname }}
imagePullSecrets:
- name: {{ $.Values.vault.imagesecretname }}
{{- end }}
volumes:
{{ if .Values.vault.tls }}
- name: vaultca
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ spec:
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_ns }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_ns }}/orderer
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}

channel:
name: {{channel_name}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ spec:
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/orderer
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
tls: false
orderer:
address: {{ participant.ordererAddress }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ spec:
secretkey: {{ vault.secret_path | default('secretsv2') }}/data/crypto/ordererOrganizations/{{ component_name | e }}/ca?{{ component_name | e }}-CA.key
secretadminpass: {{ vault.secret_path | default('secretsv2') }}/data/credentials/{{ component_name | e }}/ca/{{ component }}?user
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
service:
servicetype: ClusterIP
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ spec:
secretkey: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_name | e }}/ca?{{ component_name | e }}-CA.key
secretadminpass: {{ vault.secret_path | default('secretsv2') }}/data/credentials/{{ component_name | e }}/ca/{{ component }}?user
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
service:
servicetype: ClusterIP
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ spec:
secretcouchdb: {{ vault.secret_path | default('secretsv2') }}/data/credentials/{{ component_name }}/couchdb/{{ org_name }}
secretconfigfile: {{ vault.secret_path | default('secretsv2') }}/data/crypto/{{ component_type }}Organizations/{{ component_name | e }}/msp/config
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}

healthcheck:
retries: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ spec:
secretcryptoprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/{{ component_type }}Organizations/{{ component }}-net/ca
secretcredentialsprefix: {{ vault.secret_path | default('secretsv2') }}/data/credentials/{{ component }}-net/ca/{{ component }}
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}

ca:
subject: {{ subject }}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ spec:
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_ns }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_ns }}/orderer
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
tls: false
peer:
name: {{ peer.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ spec:
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/orderer
secretpath: {{ vault.secret_path | default('secretsv2') }}
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
tls: false
orderer:
address: {{ participant.ordererAddress }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ spec:
authpath: {{ network.env.type }}{{ component_ns }}-auth
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_ns }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ component_ns }}/orderer
serviceaccountname: vault-auth
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred

{% else %}
imagesecretname: ""
{% endif %}

channel:
name: {{ component_name }}
orderer:
address: {{ peer.ordererAddress }}
channeltx: |-
{{ channeltx | indent(width=6, first=True) }}
{{ channeltx | indent(width=6, first=True) }}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ spec:
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/orderer
secretgitprivatekey: {{ vault.secret_path | default('secretsv2') }}/data/credentials/{{ namespace }}/git
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
tls: false
orderer:
address: {{ orderer_address }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ spec:
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/orderer
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
secretgitprivatekey: {{ vault.secret_path | default('secretsv2') }}/data/credentials/{{ namespace }}/git?git_password
tls: false
chaincodepackageprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/chaincodes/{{ component_chaincode.name | lower | e }}/package/v{{ component_chaincode.version }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ spec:
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/orderer
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
tls: false
orderer:
address: {{ participant.ordererAddress }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ spec:
adminsecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/users/admin
orderersecretprefix: {{ vault.secret_path | default('secretsv2') }}/data/crypto/peerOrganizations/{{ namespace }}/orderer
serviceaccountname: vault-auth
{% if network.docker.username is defined and network.docker.password is defined %}
imagesecretname: regcred
{% else %}
imagesecretname: ""
{% endif %}
tls: false
orderer:
address: {{ participant.ordererAddress }}
Expand Down
Loading

0 comments on commit 706f9dd

Please sign in to comment.