-
Notifications
You must be signed in to change notification settings - Fork 461
Support for deploying minio/console with IDP integration #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
minInst.Spec.Env = append(minInst.Spec.Env, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_SERVER_ADDR", | ||
Value: userNameFormat, | ||
}, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_USERNAME_FORMAT", | ||
Value: userNameFormat, | ||
}, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_USERNAME_SEARCH_FILTER", | ||
Value: userSearchFilter, | ||
}, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_USERNAME_SEARCH_FILTER", | ||
Value: userSearchFilter, | ||
}, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_GROUP_SEARCH_BASE_DN", | ||
Value: groupSearchDN, | ||
}, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_GROUP_SEARCH_FILTER", | ||
Value: groupSearchFilter, | ||
}, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_GROUP_NAME_ATTRIBUTE", | ||
Value: groupNameAttribute, | ||
}) | ||
|
||
if tlsSkipVerify { | ||
minInst.Spec.Env = append(minInst.Spec.Env, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_TLS_SKIP_VERIFY", | ||
Value: "on", | ||
}) | ||
} | ||
if serverInsecure { | ||
minInst.Spec.Env = append(minInst.Spec.Env, corev1.EnvVar{ | ||
Name: "MINIO_IDENTITY_LDAP_SERVER_INSECURE", | ||
Value: "on", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is okay for now, will make changes on the server codebase so that this is easily referenced and importable, such that any of these ENV changes console is not broken.
91db800
to
8549941
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.