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
*: Support to configure grant option and SSL when creating users. (#575)
* feat(user): create user with grant
add options 'WithGrantOption'
fix: #557
* feat(user): create user with ssl options
add options `TLSOptions`
support REQUIRE NONE/SSL/X509
TODO: Issuer, Subject and Cipher.
fix: #573
* feat(user): add printcolumn for mysql users
// UserStatus defines the observed state of MysqlUser.
89
109
typeUserStatusstruct {
90
110
// Conditions represents the MysqlUser resource conditions list.
@@ -122,6 +142,15 @@ type MySQLUserCondition struct {
122
142
//+kubebuilder:object:root=true
123
143
//+kubebuilder:subresource:status
124
144
//+kubebuilder:subresource:finalizers
145
+
// +kubebuilder:printcolumn:name="UserName",type="string",JSONPath=".spec.user",description="The name of the MySQL user"
146
+
// +kubebuilder:printcolumn:name="SuperUser",type="boolean",JSONPath=".spec.withGrantOption",description="Whether the user can grant other users"
147
+
// +kubebuilder:printcolumn:name="Hosts",type="string",JSONPath=".spec.hosts",description="The hosts that the user is allowed to connect from"
148
+
// +kubebuilder:printcolumn:name="TLSType",type="string",JSONPath=".spec.tlsOptions.type",description="TLS type of user"
149
+
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".spec.userOwner.clusterName",description="The cluster of the user"
150
+
// +kubebuilder:printcolumn:name="NameSpace",type="string",JSONPath=".spec.userOwner.nameSpace",description="The namespace of the user"
151
+
// +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="The availability of the user"
152
+
// +kubebuilder:printcolumn:name="SecretName",type="string",priority=1,JSONPath=".spec.secretSelector.secretName",description="The name of the secret object"
153
+
// +kubebuilder:printcolumn:name="SecretKey",type="string",priority=1,JSONPath=".spec.secretSelector.secretKey",description="The key of the secret object"
0 commit comments