public static EnvVar createEnvVarFromSecret(String name, String secret, String key) {
        return new EnvVarBuilder()
                .withName(name)
                .withNewValueFrom()
                    .withNewSecretKeyRef()
                        .withName(secret)
                        .withKey(key)
                    .endSecretKeyRef()
                .endValueFrom()
                .build();
    }
@Test
    public void testCreateEnvVarFromSecret()   {
        EnvVar var = ContainerUtils.createEnvVarFromSecret("VAR_1", "my-secret", "my-key");

        assertThat(var.getName(), is("VAR_1"));
        assertThat(var.getValueFrom().getSecretKeyRef().getName(), is("my-secret"));
        assertThat(var.getValueFrom().getSecretKeyRef().getKey(), is("my-key"));
    }