Skip to content

Commit 957e18c

Browse files
authored
Merge pull request #319 from cs-pvyas/iar-1.1.10-helm-updates
v1.1.10 helm updates for flag for klogs + autodiscovery
2 parents 6731e7b + 0c9e7d9 commit 957e18c

File tree

6 files changed

+72
-52
lines changed

6 files changed

+72
-52
lines changed

helm-charts/falcon-image-analyzer/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.9
18+
version: 1.1.10
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.0.15"
24+
appVersion: "1.0.16"

helm-charts/falcon-image-analyzer/README.md

+56-44
Large diffs are not rendered by default.

helm-charts/falcon-image-analyzer/templates/_helpers.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ runAsGroup: {{ .Values.securityContext.runAsGroup | default 0 }}
174174

175175
{{- define "falcon-image-analyzer.imagePullSecret" }}
176176
{{- with .Values.crowdstrikeConfig }}
177-
{{- if eq .agentRegion "us-gov-1" }}
177+
{{- if or (eq .agentRegion "us-gov-1") (eq .agentRegion "usgov1") (eq .agentRegion "us-gov1") (eq .agentRegion "gov1") (eq .agentRegion "gov-1") }}
178178
{{- printf "{\"auths\":{\"registry.laggar.gcw.crowdstrike.com\":{\"username\":\"fc-%s\",\"password\":\"%s\",\"email\":\"image-assessment@crowdstrike.com\",\"auth\":\"%s\"}}}" (first (regexSplit "-" (lower .cid) -1)) .dockerAPIToken (printf "fc-%s:%s" (first (regexSplit "-" (lower .cid) -1)) .dockerAPIToken | b64enc) | b64enc }}
179-
{{- else if eq .agentRegion "us-gov-2" }}
179+
{{- else if or (eq .agentRegion "us-gov-2") (eq .agentRegion "usgov2") (eq .agentRegion "us-gov2") (eq .agentRegion "gov2") (eq .agentRegion "gov-2") }}
180180
{{- printf "{\"auths\":{\"registry.us-gov-2.crowdstrike.mil\":{\"username\":\"fc-%s\",\"password\":\"%s\",\"email\":\"image-assessment@crowdstrike.com\",\"auth\":\"%s\"}}}" (first (regexSplit "-" (lower .cid) -1)) .dockerAPIToken (printf "fc-%s:%s" (first (regexSplit "-" (lower .cid) -1)) .dockerAPIToken | b64enc) | b64enc }}
181181
{{- else }}
182182
{{- printf "{\"auths\":{\"registry.crowdstrike.com\":{\"username\":\"fc-%s\",\"password\":\"%s\",\"email\":\"image-assessment@crowdstrike.com\",\"auth\":\"%s\"}}}" (first (regexSplit "-" (lower .cid) -1)) .dockerAPIToken (printf "fc-%s:%s" (first (regexSplit "-" (lower .cid) -1)) .dockerAPIToken | b64enc) | b64enc }}

helm-charts/falcon-image-analyzer/templates/configmap.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ data:
1717
AGENT_NAMESPACE_EXCLUSIONS: {{ .Values.exclusions.namespace | quote }}
1818
AGENT_REGISTRY_EXCLUSIONS: {{ .Values.exclusions.registry | quote }}
1919
AGENT_DEBUG: {{ .Values.crowdstrikeConfig.enableDebug | quote }}
20+
ENABLE_KLOGS: {{ .Values.crowdstrikeConfig.enableKlogs | quote }}
2021
AGENT_RUNMODE: {{ include "falcon-image-analyzer.agentrunmode" . | quote }}
2122
AGENT_REGION: {{ .Values.crowdstrikeConfig.agentRegion | quote }}
2223
AGENT_TEMP_MOUNT_SIZE: {{ include "falcon-image-analyzer.tempvolsize" . | quote }}

helm-charts/falcon-image-analyzer/values.schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@
165165
},
166166
"agentRegion": {
167167
"type": "string",
168-
"pattern": "^(us-|eu-|us-gov-)[1-2]+$",
168+
"pattern": "^(us-1|us-2|eu-1|us-gov-1|us-gov-2|gov-1|gov-2|gov1|gov2|auto|autodiscovery|autodiscover)$",
169169
"description": "CrowdStrike Cloud Region",
170-
"default": "us-1"
170+
"default": "autodiscovery"
171171
},
172172
"agentRuntime": {
173173
"type": "string",

helm-charts/falcon-image-analyzer/values.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ deployment:
99
enabled: false
1010

1111
# override this value if needed
12+
# default to 500 as kubectl
1213
watcher:
13-
listPageSize: 100
14+
listPageSize: 500
1415

1516
# Do not override anywhere in values - Always 1 for Deployment. NA for daemonset
1617
replicaCount: 1
@@ -154,6 +155,12 @@ scanStats:
154155

155156
crowdstrikeConfig:
156157
clusterName: ""
158+
159+
# These are special Kubernetes SDK Verbose Logs. Helpful for troubleshooting kube API.
160+
# Only Enable for extreme troubleshooting.
161+
enableKlogs: "false"
162+
163+
157164
enableDebug: "false"
158165
clientID: ""
159166
clientSecret: ""
@@ -168,7 +175,7 @@ crowdstrikeConfig:
168175
# defined in your k8s that may contain secrets
169176
# for falcon api client id and pw
170177
existingSecret: ""
171-
agentRegion: "us-1"
178+
agentRegion: "autodiscovery"
172179
agentRuntime: ""
173180
agentRuntimeSocket: ""
174181
agentMaxConsumerThreads: "1"

0 commit comments

Comments
 (0)