Wilson Bilkovich

    Wilson Bilkovich

    1 year ago
    Hi folks. I’m trying to upgrade the Helm chart, to get it to re-create the default tenant for me. It tells me
    'postgresqlPassword' must not be empty
    even though I am passing it with
    --set
    on the
    helm upgrade
    command-line.
    % CHART_NS=prefect
    CHART_NAME=prefect-server-initial
    helm upgrade \
    --set ui.apolloApiUrl=http://${CHART_NAME}-apollo:4200/graphql \
    --set agent.enabled=true \
    --set jobs.createTenant.enabled=true \
    --set postgresqlPassword=$POSTGRESQL_PASSWORD \
    ${CHART_NAME} \
    prefecthq/prefect-server
    Error: UPGRADE FAILED: template: prefect-server/charts/postgresql/templates/NOTES.txt:59:4: executing "prefect-server/charts/postgresql/templates/NOTES.txt" at <include "common.errors.upgrade.passwords.empty" (dict "validationErrors" (list $passwordValidationErrors) "context" $)>: error calling include: template: prefect-server/charts/postgresql/charts/common/templates/_errors.tpl:18:48: executing "common.errors.upgrade.passwords.empty" at <fail>: error calling fail: HELM_ERR_START
    PASSWORDS ERROR: you must provide your current passwords when upgrade the release
        'postgresqlPassword' must not be empty, please add '--set postgresqlPassword=$POSTGRESQL_PASSWORD' to the command. To get the current value:
    
            export POSTGRESQL_PASSWORD=$(kubectl get secret --namespace prefect prefect-server-initial-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)
    HELM_ERR_END
    nicholas

    nicholas

    1 year ago
    Hi @Wilson Bilkovich - this is after you added the password as an environment variable, right?
    Wilson Bilkovich

    Wilson Bilkovich

    1 year ago
    Yeah, I exported it like it suggested.
    (I checked the env var afterward to make sure it got a reasonable-looking value)
    nicholas

    nicholas

    1 year ago
    Hm I think to set the password you might need to pass
    postgresql.postgresqlPassword
    instead of just
    postgresqlPassword
    after the export
    Wilson Bilkovich

    Wilson Bilkovich

    1 year ago
    I’ll try that, thanks!
    nicholas

    nicholas

    1 year ago
    Just to follow up - were you able to get the upgrade working?
    Wilson Bilkovich

    Wilson Bilkovich

    1 year ago
    I ended up nuking the install and doing it afresh before you pointed out the correct spelling. But, after looking at
    values.yaml
    , I am convinced it would work when spelled with the
    postgresql.
    prefix