Skip to content

Commit

Permalink
Catch calls to GetBootstrapCert from control plane
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers committed Jun 26, 2021
1 parent 91fff31 commit 5de6d16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodeup/pkg/model/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ func (c *NodeupModelContext) BuildIssuedKubeconfig(name string, subject nodetask

// GetBootstrapCert requests a certificate keypair from kops-controller.
func (c *NodeupModelContext) GetBootstrapCert(name string) (cert, key fi.Resource) {
if c.IsMaster {
panic("control plane nodes can't get certs from kops-controller")
}
b, ok := c.bootstrapCerts[name]
if !ok {
b = &nodetasks.BootstrapCert{
Expand Down

0 comments on commit 5de6d16

Please sign in to comment.