Skip to content

Commit ff5d926

Browse files
committed
feat: Move config.hcl to values.yaml
1 parent 5a2c0e7 commit ff5d926

File tree

5 files changed

+52
-46
lines changed

5 files changed

+52
-46
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'charts/cloudquery/Chart.yaml'
79

810
jobs:
911
release:

charts/cloudquery/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ maintainers:
1717
# This is the chart version. This version number should be incremented each time you make changes
1818
# to the chart and its templates, including the app version.
1919
# Versions are expected to follow Semantic Versioning (https://semver.org/)
20-
version: 0.1.3
20+
version: 0.1.4
2121

2222
# This is the version number of the application being deployed.This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to

charts/cloudquery/config.hcl

-40
This file was deleted.

charts/cloudquery/templates/configmap.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ metadata:
66
{{- include "cloudquery.labels" . | nindent 4 }}
77
data:
88
config.hcl: |-
9-
{{ .Files.Get "config.hcl" | nindent 4 }}
9+
{{ .Values.config | nindent 4 }}

charts/cloudquery/values.yaml

+48-4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,54 @@ envRenderSecret:
8989

9090
# For any other provider checkout https://hub.cloudquery.io/providers
9191

92+
# Every day at 00:00.
93+
# More information at: https://crontab.guru/#0_0_*_*_*
94+
schedule: "0 0 * * *"
95+
96+
config: |
97+
// Configuration AutoGenerated by CloudQuery CLI
98+
// This is a default config.hcl for cloudquery with aws provider.
99+
// Change this to the needed config.hcl
100+
cloudquery {
101+
plugin_directory = "./cq/providers"
102+
policy_directory = "./cq/policies"
103+
104+
provider "aws" {
105+
version = "latest"
106+
}
107+
108+
connection {
109+
dsn = "${DSN}"
110+
}
111+
}
112+
113+
// All Provider Configurations
114+
115+
provider "aws" {
116+
configuration {
117+
// Optional. if you want to assume role to multiple account and fetch data from them
118+
// accounts "<UNIQUE ACCOUNT IDENTIFIER>" {
119+
// Optional. Role ARN we want to assume when accessing this account
120+
// role_arn = < YOUR_ROLE_ARN >
121+
// Optional. Named profile in config or credential file from where CQ should grab credentials
122+
// LocalProfile = < PROFILE_NAME >
123+
// }
124+
// Optional. by default assumes all regions
125+
// regions = ["us-east-1", "us-west-2"]
126+
// Optional. Enable AWS SDK debug logging.
127+
aws_debug = false
128+
// The maximum number of times that a request will be retried for failures. Defaults to 5 retry attempts.
129+
// max_retries = 5
130+
// The maximum back off delay between attempts. The backoff delays exponentially with a jitter based on the number of attempts. Defaults to 60 seconds.
131+
// max_backoff = 30
132+
}
133+
134+
// list of resources to fetch
135+
resources = [
136+
"*"
137+
]
138+
}
139+
92140
## Configure resource requests and limits
93141
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
94142
## @param resources.requests [object] The requested resources for the container
@@ -97,7 +145,3 @@ envRenderSecret:
97145
# requests:
98146
# memory: 1024Mi
99147
# cpu: 1000m
100-
101-
# Every day at 00:00.
102-
# More information at: https://crontab.guru/#0_0_*_*_*
103-
schedule: "0 0 * * *"

0 commit comments

Comments
 (0)