Skip to content

Commit

Permalink
Fixing missing configurations for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Jan 7, 2025
1 parent f6cbe9d commit 71f16c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 27 deletions.
2 changes: 1 addition & 1 deletion devops/aws/envio-indexer/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ resources:
- service.yaml
- secret-provider.yaml
commonLabels:
component: substreams-sink
component: envio-indexer
2 changes: 1 addition & 1 deletion devops/aws/envio-indexer/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: substreams-data
name: envio-indexer-data
spec:
accessModes:
- ReadWriteOnce
Expand Down
33 changes: 8 additions & 25 deletions devops/aws/envio-indexer/secret-provider.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: substreams-aws-secrets
name: envio-indexer-aws-secrets
namespace: default
spec:
provider: aws
parameters:
objects: |
- objectName: "new-be-secrets"
- objectName: "new-be-secrets-base-sepolia"
objectType: "secretsmanager"
objectVersionLabel: "AWSCURRENT"
jmesPath:
Expand All @@ -17,22 +17,13 @@ spec:
objectAlias: "AWS_SECRET_ACCESS_KEY"
- path: "AWS_REGION"
objectAlias: "AWS_REGION"
- path: "DATABASE_URL"
objectAlias: "DATABASE_URL"
- path: "RAW_CONSUMER_QUEUE_URL"
objectAlias: "RAW_CONSUMER_QUEUE_URL"
- path: "SUBSTREAMS_ENDPOINT"
objectAlias: "SUBSTREAMS_ENDPOINT"
- path: "SUBSTREAMS_PACKAGE"
objectAlias: "SUBSTREAMS_PACKAGE"
- path: "SUBSTREAMS_MODULE"
objectAlias: "SUBSTREAMS_MODULE"
- path: "SUBSTREAMS_START_BLOCK"
objectAlias: "SUBSTREAMS_START_BLOCK"
- path: "SUBSTREAMS_API_TOKEN"
objectAlias: "SUBSTREAMS_API_TOKEN"
- path: "HYPERSYNC_TOKEN"
objectAlias: "HYPERSYNC_TOKEN"
secretObjects:
- secretName: "substreams-aws-secrets" # The name of the Kubernetes secret to create
- secretName: "envio-indexer-aws-secrets" # The name of the Kubernetes secret to create
type: Opaque
data:
- objectName: "AWS_ACCESS_KEY_ID"
Expand All @@ -45,13 +36,5 @@ spec:
key: "DATABASE_URL"
- objectName: "RAW_CONSUMER_QUEUE_URL"
key: "RAW_CONSUMER_QUEUE_URL"
- objectName: "SUBSTREAMS_ENDPOINT"
key: "SUBSTREAMS_ENDPOINT"
- objectName: "SUBSTREAMS_PACKAGE"
key: "SUBSTREAMS_PACKAGE"
- objectName: "SUBSTREAMS_MODULE"
key: "SUBSTREAMS_MODULE"
- objectName: "SUBSTREAMS_START_BLOCK"
key: "SUBSTREAMS_START_BLOCK"
- objectName: "SUBSTREAMS_API_TOKEN"
key: "SUBSTREAMS_API_TOKEN"
- objectName: "HYPERSYNC_TOKEN"
key: "HYPERSYNC_TOKEN"

0 comments on commit 71f16c7

Please sign in to comment.