mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-20 06:54:20 +00:00
Add kube-cert-agent controller for getting kube API keypair
This commit is contained in:
+16
-3
@@ -5,9 +5,10 @@ package api
|
||||
|
||||
// Config contains knobs to setup an instance of Pinniped.
|
||||
type Config struct {
|
||||
DiscoveryInfo DiscoveryInfoSpec `json:"discovery"`
|
||||
APIConfig APIConfigSpec `json:"api"`
|
||||
NamesConfig NamesConfigSpec `json:"names"`
|
||||
DiscoveryInfo DiscoveryInfoSpec `json:"discovery"`
|
||||
APIConfig APIConfigSpec `json:"api"`
|
||||
NamesConfig NamesConfigSpec `json:"names"`
|
||||
KubeCertAgentConfig KubeCertAgentSpec `json:"kubeCertAgent"`
|
||||
}
|
||||
|
||||
// DiscoveryInfoSpec contains configuration knobs specific to
|
||||
@@ -49,3 +50,15 @@ type ServingCertificateConfigSpec struct {
|
||||
// seconds (about 9 months).
|
||||
RenewBeforeSeconds *int64 `json:"renewBeforeSeconds,omitempty"`
|
||||
}
|
||||
|
||||
type KubeCertAgentSpec struct {
|
||||
// NamePrefix is the prefix of the name of the kube-cert-agent pods. For example, if this field is
|
||||
// set to "some-prefix-", then the name of the pods will look like "some-prefix-blah". The default
|
||||
// for this value is "pinniped-kube-cert-agent-".
|
||||
NamePrefix *string `json:"namePrefix,omitempty"`
|
||||
|
||||
// Image is the container image that will be used by the kube-cert-agent pod. The container image
|
||||
// should contain at least 2 binaries: /bin/sleep and cat (somewhere on the $PATH). The default
|
||||
// for this value is "debian:latest".
|
||||
Image *string `json:"image"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user