You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add environment variables for containers , looks like there is restriction for key names [a-zA-Z0-9_]
Sample code List<EnvVar> envValues = new ArrayList<>(); for (Map.Entry<String, String> env : envProps.entrySet()) { EnvVar envVar = new EnvVar(); envVar.setName(env.getKey()); envVar.setValue(env.getValue()); envValues.add(envVar); } container.setEnv(envValues);
I try to use key like myprop.db.name it barfs . Is this client library limitation or k8s itself ?
The text was updated successfully, but these errors were encountered:
javax.validation.ConstraintViolationException: Constraint Validations: name must match "^[A-Za-z_][A-Za-z0-9_]*$" on bean: EnvVar(name=cluster.name, value=elasticsearch-cluster-1550544067656, valueFrom=null, additionalProperties={})
I am trying to add environment variables for containers , looks like there is restriction for key names
[a-zA-Z0-9_]
Sample code
List<EnvVar> envValues = new ArrayList<>(); for (Map.Entry<String, String> env : envProps.entrySet()) { EnvVar envVar = new EnvVar(); envVar.setName(env.getKey()); envVar.setValue(env.getValue()); envValues.add(envVar); } container.setEnv(envValues);
I try to use key like
myprop.db.name
it barfs . Is this client library limitation or k8s itself ?The text was updated successfully, but these errors were encountered: