-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsecrets.yaml
More file actions
49 lines (49 loc) · 2.89 KB
/
Copy pathsecrets.yaml
File metadata and controls
49 lines (49 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: v1
kind: Secret
metadata:
name: {{ include "portkey.gatewaySecretsName" .}}
labels:
{{- include "portkey.labels" . | nindent 4 }}
annotations:
{{- include "portkey.annotations" . | nindent 4 }}
type: Opaque
data:
{{- if not .Values.logStorage.existingSecretName }}
{{- if .Values.logStorage.s3Compat.enabled}}
logStore: {{ .Values.logStorage.logStore | b64enc | quote }}
logStoreAccessKey: {{ .Values.logStorage.s3Compat.LOG_STORE_ACCESS_KEY | b64enc | quote }}
logStoreSecretKey: {{ .Values.logStorage.s3Compat.LOG_STORE_SECRET_KEY | b64enc | quote }}
logStoreRegion: {{ .Values.logStorage.s3Compat.LOG_STORE_REGION | b64enc | quote }}
logStoreGenerationsBucket: {{ .Values.logStorage.s3Compat.LOG_STORE_GENERATIONS_BUCKET | b64enc | quote }}
logStoreBasePath: {{ .Values.logStorage.s3Compat.LOG_STORE_BASEPATH | b64enc | quote }}
{{- end }}
{{- if .Values.logStorage.mongo.enabled}}
logStore: {{ "mongo" | b64enc }}
mongoConnectionUrl: {{ .Values.logStorage.mongo.MONGO_DB_CONNECTION_URL | b64enc | quote }}
mongoDatabase: {{ .Values.logStorage.mongo.MONGO_DATABASE | b64enc | quote }}
mongoGenerationsCollection: {{ .Values.logStorage.mongo.MONGO_COLLECTION_NAME | b64enc | quote }}
mongoHooksCollection: {{ .Values.logStorage.mongo.MONGO_GENERATION_HOOKS_COLLECTION_NAME | b64enc | quote }}
{{- end }}
{{- if .Values.logStorage.s3Assume.enabled}}
logStore: {{ "s3_assume" | b64enc | quote }}
logStoreAccessKey: {{ .Values.logStorage.s3Assume.LOG_STORE_ACCESS_KEY | b64enc | quote }}
logStoreSecretKey: {{ .Values.logStorage.s3Assume.LOG_STORE_SECRET_KEY | b64enc | quote }}
logStoreRegion: {{ .Values.logStorage.s3Assume.LOG_STORE_REGION | b64enc | quote }}
logStoreGenerationsBucket: {{ .Values.logStorage.s3Assume.LOG_STORE_GENERATIONS_BUCKET | b64enc | quote }}
logStoreAwsRoleArn: {{ .Values.logStorage.s3Assume.LOG_STORE_AWS_ROLE_ARN | b64enc | quote }}
logStoreExternalId: {{ .Values.logStorage.s3Assume.LOG_STORE_AWS_EXTERNAL_ID | b64enc | quote }}
{{- end }}
{{- if .Values.logStorage.azure.enabled}}
logStore: {{ "azure" | b64enc }}
azureAuthMode: {{ .Values.logStorage.azure.AZURE_AUTH_MODE | b64enc | quote }}
azureManagedClientId: {{ .Values.logStorage.azure.AZURE_MANAGED_CLIENT_ID | b64enc | quote }}
azureStorageAccount: {{ .Values.logStorage.azure.AZURE_STORAGE_ACCOUNT | b64enc | quote }}
azureStorageKey: {{ .Values.logStorage.azure.AZURE_STORAGE_KEY | b64enc | quote }}
azureStorageContainer: {{ .Values.logStorage.azure.AZURE_STORAGE_CONTAINER | b64enc | quote }}
{{- end }}
{{- end }}
{{- if .Values.bedrockAssumed.enabled}}
bedrockAssumedAccessKey: {{ .Values.bedrockAssumed.AWS_ASSUME_ROLE_ACCESS_KEY_ID | b64enc | quote }}
bedrockAssumedSecretKey: {{ .Values.bedrockAssumed.AWS_ASSUME_ROLE_SECRET_ACCESS_KEY | b64enc | quote }}
bedrockAssumedRegion: {{ .Values.bedrockAssumed.AWS_ASSUME_ROLE_REGION | b64enc | quote }}
{{- end }}