In my case I was trying to reference the secret value directly with valueFrom, but the secret/value was not yet created, after creation the error was resolved.