bitnami-containers/.vib/kafka/goss/kafka.yaml

36 lines
902 B
YAML

# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
file:
# Checks specific files are no longer present
/opt/bitnami/kafka/configtmp:
exists: false
/opt/bitnami/kafka/conf:
exists: false
{{ if regexMatch "^4.+" .Env.APP_VERSION }}
/opt/bitnami/kafka/config/log4j2.yaml:
exists: true
filetype: file
{{ else }}
/opt/bitnami/kafka/config/log4j.properties:
exists: true
filetype: file
contents:
- "log4j.appender.stdout.Threshold=OFF"
- "!DailyRollingFileAppender"
- "ConsoleAppender"
- "!DatePattern"
- "!Appender.File"
{{ end }}
/opt/bitnami/kafka/bin/kafka-server-start.sh:
exists: true
filetype: file
contents:
- "![-]loggc"
{{ if not (regexMatch "^4.+" .Env.APP_VERSION) }}
command:
check-wait-for-port-binary:
exec: which wait-for-port
exit-status: 0
{{ end }}