-
Notifications
You must be signed in to change notification settings - Fork 39
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
Tests for tenant restore progress; definition of API types; Fix lints #68
Tests for tenant restore progress; definition of API types; Fix lints #68
Conversation
api/v1alpha1/obtenant_types.go
Outdated
//+kubebuilder:default=PRIMARY | ||
TenantRole constants.TenantRole `json:"tenantRole,omitempty"` | ||
Source *TenantSourceSpec `json:"source,omitempty"` | ||
Credentials []corev1.SecretReference `json:"credentials,omitempty"` |
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.
It's better to specify certain users when create tenant
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.
Maybe it's ok to store users' information in credentials.
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.
it's ok, but certain users must be specified, like root and standbyro
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.
Users' credentials in tenant will be implemented on next step. Some designs are not clear now, maybe user management will be put in OBTenantOperation CR.
I decide to focus on tenant restore first :)
|
||
type OBTenantOpChangePwdSpec struct { | ||
Tenant string `json:"tenant"` | ||
SecretRef corev1.SecretReference `json:"secretRef"` |
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.
what will be stored in secret, username and password?
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.
Username and password will be here, it's possible to contain other information. Designs for tenant credentials are in pending, now they are just placeholders here hahah.
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
Summary
Add test cases for tenant restore and make them pass
Create API type OBTenantOperation for tenants tiny jobs
Complete API type definitions according to design draft
Update
.golangci.yaml
, disableunused
andgosimple
linters andexported
,struct-tag
,var-naming
,comment-spacings
andunused-receiver
5 rules ofrevive
linter.Fix other lint errors
Install golangci-lint with Makefile target