elegant-plastic-42374
06/04/2024, 9:32 PM# New approach
@secrets(
        sources=[
            "projects/1234567/secrets/secretname/versions/latest",
            "projects/1234567/secrets/secretname2/versions/latest",
        ],
    )
This replaced the previous solution we had, which was not ideal for our use case, but functional:
# Old approach
@kubernetes(
        secrets=[
            "secretname",
            "secretname2",
]
An error isn’t raised by the @secrets decorator, but this step of my flow is now failing partway through because the expected secret environment variable is missing. When I manually checked the environment variables in the pod running this step, I confirmed none of my secrets seem to get loaded in. Am I using this feature correctly?