Skip to content
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

kumactl: show mtls in meshes #198

Merged
merged 2 commits into from
Sep 9, 2019
Merged

Conversation

jakubdyszkiewicz
Copy link
Contributor

Solves #196

@@ -56,7 +57,8 @@ func printMeshes(meshes *mesh.MeshResourceList, out io.Writer) error {
mesh := meshes.Items[i]

return []string{
mesh.GetMeta().GetName(), // NAME
mesh.GetMeta().GetName(), // NAME
table.OnOff(mesh.Spec.Mtls.Enabled), // MTLS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since Mtls is optional (*Mesh_Mtls), it would be more safe to call mesh.Spec.Mtls.GetEnabled()

@jakubdyszkiewicz jakubdyszkiewicz merged commit 90d2de5 into master Sep 9, 2019
@jakubdyszkiewicz jakubdyszkiewicz deleted the feature/show-mtls-get-meshes branch December 23, 2019 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants