Skip to content

Commit

Permalink
fix: several issues causing releases to fail (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronattard authored Oct 30, 2024
1 parent fae8373 commit 4cbf6a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions charts/cruise-control/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "cruise-control.labels" . | nindent 4 }}
data:
cruise-control.properties: |
cruisecontrol.properties: |
{{- range $key, $value := .Values.config }}
{{- $valueStr := printf "%v" $value }}
{{- if and (regexMatch "^[0-9]+$" $valueStr) (lt (len $valueStr) 10) }}
Expand All @@ -22,7 +22,7 @@ data:
{{- end }}
capacity.config.file=config/{{ .Values.capacity.type }}.json
clusterConfigs.json:
clusterConfigs.json: |
{{- .Values.cluster | toPrettyJson | nindent 4 }}
{{ .Values.capacity.type }}.json: |
Expand Down
4 changes: 2 additions & 2 deletions charts/cruise-control/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: config-volume
mountPath: /cruise-control/config/cruise-control.properties
subPath: cruise-control.properties
mountPath: /cruise-control/config/cruisecontrol.properties
subPath: cruisecontrol.properties
- name: config-volume
mountPath: /cruise-control/config/{{ .Values.capacity.type }}.json
subPath: {{ .Values.capacity.type }}.json
Expand Down
14 changes: 7 additions & 7 deletions charts/cruise-control/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ service:
# -- NodePort port (only when type is NodePort)
# nodePort: 32000
# -- Pod expose port
targetPort: 4000
targetPort: 9090

# -- Ingress configuration to expose app
ingress:
Expand Down Expand Up @@ -449,20 +449,20 @@ log4j:
# Loggers
logger.cruisecontrol.name: com.linkedin.kafka.cruisecontrol
logger.cruisecontrol.level: info
logger.cruisecontrol.appenderRef.kafkaCruiseControlAppender.Ref: kafkaCruiseControlFile
logger.cruisecontrol.appenderRef.kafkaCruiseControlAppender.ref: kafkaCruiseControlFile

logger.detector.name: com.linkedin.kafka.cruisecontrol.detector
logger.detector.level: info
logger.detector.appenderRef.kafkaCruiseControlAppender.Ref: kafkaCruiseControlFile
logger.detector.appenderRef.kafkaCruiseControlAppender.ref: kafkaCruiseControlFile

logger.operationLogger.name: operationLogger
logger.operationLogger.level: info
logger.operationLogger.appenderRef.operationAppender.Ref: operationFile
logger.operationLogger.appenderRef.operationAppender.ref: operationFile

logger.CruiseControlPublicAccessLogger.name: CruiseControlPublicAccessLogger
logger.CruiseControlPublicAccessLogger.level: info
logger.CruiseControlPublicAccessLogger.appenderRef.requestAppender.Ref: requestFile
logger.CruiseControlPublicAccessLogger.appenderRef.requestAppender.ref: requestFile

rootLogger.appenderRefs: console, kafkaCruiseControlAppender
rootLogger.appenderRef.console.Ref: STDOUT
rootLogger.appenderRef.kafkaCruiseControlAppender.Ref: kafkaCruiseControlFile
rootLogger.appenderRef.console.ref: STDOUT
rootLogger.appenderRef.kafkaCruiseControlAppender.ref: kafkaCruiseControlFile

0 comments on commit 4cbf6a3

Please sign in to comment.