android-farm icon indicating copy to clipboard operation
android-farm copied to clipboard

Type ingress.annotations as a map

Open GeertJohan opened this issue 4 years ago • 0 comments

Thanks for this awesome project!

By making annotations an empty map, it still clasified as empty in the if/else in ingress.yaml, but allows a user to add values using --set. e.g.:

helm install --namespace openstf --name openstf \
    -f android-farm/openstf/values.yaml \
    --set \
ingress.annotations."nginx\.org/websocket-services"=openstf-openstf-nginx,\
ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-type"=basic,\
ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-secret"=basic-auth,\
ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-realm"="Authentication Required - foo" \
    ./android-farm/openstf

Without the {}, helm fails to parse the --set values for ingress.annotations.

GeertJohan avatar May 03 '20 11:05 GeertJohan