-
Notifications
You must be signed in to change notification settings - Fork 1.8k
pkg/tlsutil: impl none of the CA and App TLS assets are found #450
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
test/e2e/tls_util_test.go
Outdated
} | ||
|
||
// use Pod as a dummy runtime object for the CR input of GenerateCert(). | ||
func toDummyCR(namespace string) runtime.Object { |
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.
Rename this to newDummyCR()
since we're not really converting anything to use toDummyCR()
.
Also change the comment format to be Go style: newDummyCR returns a dummy runtime object ....
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.
yeah, that's right.
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
test/e2e/tls_util_test.go
Outdated
} | ||
} | ||
|
||
func toAppSvc(namespace string) *v1.Service { |
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.
newAppSvc()
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
LGTM |
Implement and test the case where none of the CA and application TLS assets are found. In this case, GenerateCert should simply generate both and put them into the k8s cluster.