-
Notifications
You must be signed in to change notification settings - Fork 0
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
issue-490, implementation for credentials lifecycle for ZooKeeper #493
issue-490, implementation for credentials lifecycle for ZooKeeper #493
Conversation
|
||
v1 "k8s.io/api/core/v1" |
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.
dont use alias
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.
fixed
pkg/instaclustr/client.go
Outdated
type credentials struct { | ||
Username string `json:"username"` | ||
InstaclustrUserPassword string `json:"instaclustrUserPassword"` | ||
} | ||
|
||
var creds 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.
Use anonymous struct:
type credentials struct { | |
Username string `json:"username"` | |
InstaclustrUserPassword string `json:"instaclustrUserPassword"` | |
} | |
var creds credentials | |
creds := &struct { | |
Username string `json:"username"` | |
InstaclustrUserPassword string `json:"instaclustrUserPassword"` | |
} {} |
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.
fixed
b7a21a7
to
b304743
Compare
b304743
to
144df72
Compare
Closes #490