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

control-plane: sds: add built-in CA manager #147

Merged
merged 3 commits into from
Sep 6, 2019

Conversation

yskopets
Copy link
Contributor

@yskopets yskopets commented Sep 5, 2019

changes:

  • create Built-in CA on Mesh create
  • delete Built-in CA on Mesh delete

@yskopets yskopets force-pushed the feature/customizable-resource-manager branch from 4c3d34d to 7d676e0 Compare September 5, 2019 15:45
@yskopets yskopets changed the title control-plane: add built-in CA manager control-plane: sds: add built-in CA manager Sep 5, 2019
@yskopets yskopets force-pushed the feature/add-builtin-ca-manager branch from c638010 to 79b9ab0 Compare September 5, 2019 15:50
@yskopets yskopets marked this pull request as ready for review September 5, 2019 15:59
@yskopets yskopets added this to the 0.1 milestone Sep 5, 2019
return nil
}
return errors.Wrapf(err, "failed to delete Builtin CA for a given mesh")
}
Copy link
Contributor

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?

Copy link
Contributor Author

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")
}
}
Copy link
Contributor

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.

Copy link
Contributor Author

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)

@yskopets yskopets force-pushed the feature/add-builtin-ca-manager branch from 199b4a3 to ce53851 Compare September 6, 2019 16:01
@yskopets yskopets changed the base branch from feature/customizable-resource-manager to master September 6, 2019 17:55
@yskopets yskopets merged commit 4faf59f into master Sep 6, 2019
@yskopets yskopets deleted the feature/add-builtin-ca-manager branch September 8, 2019 01:08
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