Skip to content

Commit

Permalink
Merge pull request #45 from holaplex/espi/credentials-kafka-configure
Browse files Browse the repository at this point in the history
Allow hub-credentials to connect to redpanda
  • Loading branch information
kespinola authored Mar 22, 2023
2 parents eedeb24 + 22c3125 commit 1732ab5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/hub-credentials/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
5 changes: 5 additions & 0 deletions charts/hub-credentials/templates/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ data:
ORY_ADMIN_BASE_URL: {{ .oryAdminBaseUrl }}
ORY_PUBLIC_BASE_URL: {{ .oryPublicBaseUrl }}
PORT: {{ .port | quote }}
KAFKA_BROKERS: {{ .kafkaBrokers | quote }}
{{- if .kafkaSsl }}
KAFKA_USERNAME: {{ required "must set kafka username" .kafkaUsername | quote }}
KAFKA_SSL: "true"
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/hub-credentials/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ metadata:
type: Opaque
data:
ORY_AUTH_TOKEN: {{ .entries.oryAuthToken | b64enc }}
KAFKA_PASSWORD: {{ required "must set kafka password" .entries.kafkaPassword | b64enc }}
{{- end }}
{{- end }}
13 changes: 10 additions & 3 deletions charts/hub-credentials/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ serviceAccount:

podAnnotations: {}

podSecurityContext: {}
podSecurityContext:
{}
# fsGroup: 2000

securityContext: {}
securityContext:
{}
# capabilities:
# drop:
# - ALL
Expand All @@ -40,7 +42,8 @@ service:
type: ClusterIP
port: 80

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down Expand Up @@ -69,8 +72,12 @@ secrets:
enabled: true
entries:
oryAuthToken: ""
kafkaPassword:

environment:
port: "80"
kafkaBrokers: "hub-eventbus-cluster-0.hub-eventbus-cluster.default.svc.cluster.local.:9093"
kafkaSsl: false
kafkaUsername: ""
oryAdminBaseUrl: "http://hydra-admin:4445"
oryPublicBaseUrl: "http://hydra-public:4444"

0 comments on commit 1732ab5

Please sign in to comment.