certgenerator

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c *Config) error

Run exectues the main logic of the cert generator

Types

type BasicConstraints

type BasicConstraints struct {
	IsCA       bool `asn1:"optional"`
	MaxPathLen int  `asn1:"optional,default:-1"`
}

BasicConstraints CSR information RFC 5280, 4.2.1.9

type Config

type Config struct {
	InCluster  bool   // Running inside Kubernetes cluster
	Kubeconfig string // Kubeconfig file to read from

	Namespace   string // Namespace for service and secret
	ServiceName string // Service name to generate certificate for
	SecretName  string // Secret name to store generated cert in

	AutoApprove bool // Auto Approve CSR

	PatchMutating   string // Name of MutatingWebhookConfiguration to patch CABundle
	PatchValidating string // Name of ValidatingWebhookConfiguration to patch CABundle
}

Config holds required parameters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL