Skip to content

Commit

Permalink
feat: setup environment for uploading assets to nft storage
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Mar 17, 2023
1 parent ce8a25c commit 202ad06
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/hub-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/hub-ui/templates/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ data:
PORT: {{ .port | quote }}
KRATOS_ENDPOINT: {{ .kratosPublicEndpoint | quote }}
GRAPHQL_ENDPOINT: {{ .internalGraphqlEndpoint | quote }}
IPFS_GATEWAY: {{ .ipfsGateway | quote }}
{{- end }}
13 changes: 13 additions & 0 deletions charts/hub-ui/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- with .Values.secrets }}
{{- if .enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "hub-ui.fullname" $ }}
annotations:
"helm.sh/hook": pre-install
type: Opaque
data:
NFT_STORAGE_TOKEN: {{ required "must set nft storage token" .entries.nftStorageToken | b64enc }}
{{- end }}
{{- end }}
8 changes: 7 additions & 1 deletion charts/hub-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,10 @@ affinity: {}
environment:
port: 3000
kratosPublicEndpoint: http://kratos-public
internalGraphqlEndpoint: http://apisix-gateway-internal.ingress-apisix.svc.cluster.local/graphql
internalGraphqlEndpoint: http://apisix-gateway-internal.ingress-apisix.svc.cluster.local/graphql
ifpsGateway: https://nftstorage.link/ipfs

secrets:
enabled: true
entries:
nftStorageToken:

0 comments on commit 202ad06

Please sign in to comment.