Documentation ¶
Index ¶
- Constants
- type ServingCertController
- func (c *ServingCertController) Start(ctx context.Context)
- func (c *ServingCertController) WithCABundleConfigMapName(caBundleConfigMapName string) *ServingCertController
- func (c *ServingCertController) WithResyncInterval(validity time.Duration) *ServingCertController
- func (c *ServingCertController) WithSignerNamePrefix(signerNamePrefix string) *ServingCertController
- func (c *ServingCertController) WithSignerSecretName(secretName string) *ServingCertController
- func (c *ServingCertController) WithSigningCertValidity(validity time.Duration) *ServingCertController
- func (c *ServingCertController) WithTargetCertValidity(validity time.Duration) *ServingCertController
- func (c *ServingCertController) WithTargetServingCerts(targets []TargetServingCertOptions) *ServingCertController
- type TargetServingCertOptions
Constants ¶
const ( DefaultCABundleConfigmapName = "ca-bundle-configmap" DefaultSignerSecretName = "signer-secret" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServingCertController ¶
type ServingCertController struct {
// contains filtered or unexported fields
}
func NewServingCertController ¶
func NewServingCertController(namespace string, kubeClient kubernetes.Interface) *ServingCertController
func (*ServingCertController) Start ¶
func (c *ServingCertController) Start(ctx context.Context)
func (*ServingCertController) WithCABundleConfigMapName ¶
func (c *ServingCertController) WithCABundleConfigMapName(caBundleConfigMapName string) *ServingCertController
WithCABundleConfigMapName is to configure the ca bundle configmap name. the default is ca-bundle-configmap.
func (*ServingCertController) WithResyncInterval ¶
func (c *ServingCertController) WithResyncInterval(validity time.Duration) *ServingCertController
WithResyncInterval is to configure the re-sync interval for the controller. The default is 10 minutes.
func (*ServingCertController) WithSignerNamePrefix ¶
func (c *ServingCertController) WithSignerNamePrefix(signerNamePrefix string) *ServingCertController
WithSignerNamePrefix is to configure the singer name prefix in the certs. The default is <namespace>-singer.
func (*ServingCertController) WithSignerSecretName ¶
func (c *ServingCertController) WithSignerSecretName(secretName string) *ServingCertController
WithSignerSecretName is to configure the singer secret name for ca bundle. the default is signer-secret.
func (*ServingCertController) WithSigningCertValidity ¶
func (c *ServingCertController) WithSigningCertValidity(validity time.Duration) *ServingCertController
WithSigningCertValidity is to configure the rotation validity time duration for the signing cert and key. The default is 365 days.
func (*ServingCertController) WithTargetCertValidity ¶
func (c *ServingCertController) WithTargetCertValidity(validity time.Duration) *ServingCertController
WithTargetCertValidity is to configure the rotation validity time duration for the serving cert. The default is 30 days.
func (*ServingCertController) WithTargetServingCerts ¶
func (c *ServingCertController) WithTargetServingCerts(targets []TargetServingCertOptions) *ServingCertController
WithTargetServingCerts is to configure the target serving cert secret name, host names and load dir. The host name is usually <service name>.<namespace>.svc . Load the secret to the local dir if LoadDir is not empty.