Skip to content

Commit fb3f92f

Browse files
authoredJan 31, 2025
add secrets template (#5454)
1 parent 39c7aaa commit fb3f92f

File tree

3 files changed

+56
-8
lines changed

3 files changed

+56
-8
lines changed
 

‎dev/config.yaml.github-example

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ apps:
2424
ref: main
2525
parameters:
2626
IMAGE_TAG: 3.1.2-metastore-006
27-
S3_BUCKET_NAME: koku-eph-s3
27+
S3_BUCKET_NAME: hccm-eph-s3
2828
- name: trino
2929
host: github
3030
repo: redhatinsights/ubi-trino
3131
path: deploy/clowdapp.yaml
3232
ref: main
3333
parameters:
3434
IMAGE_TAG: 371-001
35-
S3_BUCKET_NAME: koku-eph-s3
35+
S3_BUCKET_NAME: hccm-eph-s3
3636
S3_SSE_ENABLED: false
3737
S3_SELECT_PUSHDOWN_ENABLED: false

‎dev/config.yaml.local-example

+3-6
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ apps:
3434
WORKER_HCS_MIN_REPLICAS: 1
3535
TRINO_PORT: 8000
3636
TRINO_HOST: trino-coordinator
37-
S3_BUCKET_NAME: koku-eph-s3
38-
AWS_ACCESS_KEY_ID_EPH: <insert-base64-encoded-value>
39-
AWS_SECRET_ACCESS_KEY_EPH: <insert-base64-encoded-value>
40-
GCP_CREDENTIALS_EPH: <insert-base64-encoded-value>
37+
S3_BUCKET_NAME: hccm-eph-s3
4138

4239
- name: hive-metastore
4340
host: github
@@ -46,14 +43,14 @@ apps:
4643
ref: main
4744
parameters:
4845
IMAGE_TAG: 3.1.2-metastore-009
49-
S3_BUCKET_NAME: koku-eph-s3
46+
S3_BUCKET_NAME: hccm-eph-s3
5047
- name: trino
5148
host: github
5249
repo: redhatinsights/ubi-trino
5350
path: deploy/clowdapp.yaml
5451
ref: main
5552
parameters:
5653
IMAGE_TAG: 405-002
57-
S3_BUCKET_NAME: koku-eph-s3
54+
S3_BUCKET_NAME: hccm-eph-s3
5855
S3_SSE_ENABLED: false
5956
S3_SELECT_PUSHDOWN_ENABLED: false

‎dev/secrets-template.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apiVersion: template.openshift.io/v1
2+
kind: Template
3+
metadata:
4+
name: koku-secrets
5+
objects:
6+
- apiVersion: v1
7+
data:
8+
aws-credentials: ${AWS_CREDENTIALS_EPH}
9+
kind: Secret
10+
metadata:
11+
name: koku-aws
12+
stringData:
13+
aws-access-key-id: ${AWS_ACCESS_KEY_ID_EPH}
14+
aws-secret-access-key: ${AWS_SECRET_ACCESS_KEY_EPH}
15+
- apiVersion: v1
16+
data:
17+
gcp-credentials: ${GCP_CREDENTIALS_EPH}
18+
kind: Secret
19+
metadata:
20+
name: koku-gcp
21+
- apiVersion: v1
22+
data:
23+
oci-config: ${OCI_CONFIG_EPH}
24+
oci-credentials: ${OCI_CREDENTIALS_EPH}
25+
kind: Secret
26+
metadata:
27+
name: koku-oci
28+
29+
parameters:
30+
- name: AWS_CREDENTIALS_EPH
31+
description: base64 encoded value containing the [default] profile with aws_access_key_id and aws_secret_access_key
32+
displayName: AWS credentials file
33+
required: true
34+
- name: AWS_ACCESS_KEY_ID_EPH
35+
description: plaintext aws_access_key_id
36+
required: true
37+
- name: AWS_SECRET_ACCESS_KEY_EPH
38+
description: plaintext aws_secret_access_key
39+
required: true
40+
- name: GCP_CREDENTIALS_EPH
41+
description: base64 encoded json containing GCP creds
42+
displayName: GCP Credentials
43+
required: true
44+
- name: OCI_CREDENTIALS_EPH
45+
description: base64 encoded oci credentials
46+
displayName: OCI Credentials
47+
required: true
48+
- name: OCI_CONFIG_EPH
49+
description: base64 encoded oci config
50+
displayName: OCI Config
51+
required: true

0 commit comments

Comments
 (0)