-
Notifications
You must be signed in to change notification settings - Fork 327
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
control-plane: sds: add built-in CA manager #147
Conversation
4c3d34d
to
7d676e0
Compare
c638010
to
79b9ab0
Compare
return nil | ||
} | ||
return errors.Wrapf(err, "failed to delete Builtin CA for a given mesh") | ||
} |
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.
Why do we call get before delete?
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.
Get(..)
call has been removed
if err := m.builtinCaManager.Create(ctx, mesh.Meta.GetName()); err != nil { | ||
return errors.Wrapf(err, "failed to create Builtin CA for a given mesh") | ||
} | ||
} |
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.
Can we create CA before Mesh? Right now If the CA creation fails, we still have created Mesh.
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 (Built-in CA
is now created before Mesh
and gets removed if Mesh
creation fails)
199b4a3
to
ce53851
Compare
changes:
Mesh
createMesh
delete