Documentation ¶
Index ¶
- Constants
- func NewManager(leaderElection bool, leaderElectionResourceLock string, ...) (ctrl.Manager, error)
- type EndpointReconciler
- type EndpointReconcilerConfig
- type IdentityMaps
- type NodeReconciler
- type NodeReconcilerConfig
- type PodInfo
- type PodReconciler
- type PodReconcilerConfig
- type SpiffeIDReconciler
- type SpiffeIDReconcilerConfig
Constants ¶
const ( PodNameLabel = "Name" PodUIDLabel = "UID" PodNamespaceLabel = "Namespace" PodServiceAccountLabel = "ServiceAccount" PodHostnameLabel = "Hostname" PodNodeNameLabel = "NodeName" DefaultSpiffeIDPath = "ns/{{.Pod.Namespace}}/sa/{{.Pod.ServiceAccount}}" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EndpointReconciler ¶
EndpointReconciler holds the runtime configuration and state of this controller
func NewEndpointReconciler ¶
func NewEndpointReconciler(config EndpointReconcilerConfig) *EndpointReconciler
NewEndpointReconciler creates a new EndpointReconciler object
func (*EndpointReconciler) Reconcile ¶
Reconcile steps through the endpoints for each service and adds the name of the service as a DNS name to the SPIFFE ID CRD
func (*EndpointReconciler) SetupWithManager ¶
func (e *EndpointReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds a controller manager to manage this reconciler
type EndpointReconcilerConfig ¶
type EndpointReconcilerConfig struct { Client client.Client DisabledNamespaces []string Log logrus.FieldLogger PodLabel string PodAnnotation string }
EndpointReconcilerConfig holds the config passed in when creating the reconciler
type IdentityMaps ¶ added in v1.0.2
IdentityMaps is used for forming the text from the templates
type NodeReconciler ¶
NodeReconciler holds the runtime configuration and state of this controller
func NewNodeReconciler ¶
func NewNodeReconciler(config NodeReconcilerConfig) *NodeReconciler
NewNodeReconciler creates a new NodeReconciler object
func (*NodeReconciler) Reconcile ¶
Reconcile creates a SPIFFE ID for each node, used to parent SPIFFE IDs for pods running on that node
func (*NodeReconciler) SetupWithManager ¶
func (n *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds a controller manager to manage this reconciler
type NodeReconcilerConfig ¶
type NodeReconcilerConfig struct { Client client.Client Cluster string Log logrus.FieldLogger Namespace string Scheme *runtime.Scheme TrustDomain string }
NodeReconcilerConfig holds the config passed in when creating the reconciler
type PodInfo ¶ added in v1.0.2
type PodInfo struct { ServiceAccount string Namespace string Name string UID types.UID Hostname string NodeName string }
PodInfo is created for every processed Pod and it holds pod specific information
type PodReconciler ¶
PodReconciler holds the runtime configuration and state of this controller
func NewPodReconciler ¶
func NewPodReconciler(config PodReconcilerConfig) (*PodReconciler, error)
NewPodReconciler creates a new PodReconciler object
func (*PodReconciler) SetupWithManager ¶
func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds a controller manager to manage this reconciler
type PodReconcilerConfig ¶
type PodReconcilerConfig struct { Client client.Client Cluster string DisabledNamespaces []string Log logrus.FieldLogger PodLabel string PodAnnotation string Scheme *runtime.Scheme TrustDomain string IdentityTemplate string IdentityTemplateLabel string DNSNameTemplates []string Context map[string]string }
PodReconcilerConfig holds the config passed in when creating the reconciler
type SpiffeIDReconciler ¶
SpiffeIDReconciler holds the runtime configuration and state of this controller
func NewSpiffeIDReconciler ¶
func NewSpiffeIDReconciler(config SpiffeIDReconcilerConfig) *SpiffeIDReconciler
NewSpiffeIDReconciler creates a new SpiffeIDReconciler object
func (*SpiffeIDReconciler) Reconcile ¶
Reconcile ensures the SPIRE Server entry matches the corresponding CRD
func (*SpiffeIDReconciler) SetupWithManager ¶
func (r *SpiffeIDReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds a controller manager to manage this reconciler
type SpiffeIDReconcilerConfig ¶
type SpiffeIDReconcilerConfig struct { Client client.Client Cluster string Log logrus.FieldLogger E entryv1.EntryClient }
SpiffeIDReconcilerConfig holds the config passed in when creating the reconciler