Documentation
¶
Index ¶
- func GetSecret(ctx context.Context, k8sClient client.Client, name, namespace string, ...) (*corev1.Secret, error)
- func IsNameInList(obj client.Object, nameSet map[string]struct{}) bool
- func MatchesAnyNamespaceSelector(ctx context.Context, obj client.Object, namespaceSelectors []labels.Selector, ...) (bool, error)
- func MatchesLabelSelectors(ctx context.Context, obj client.Object, labelSelector labels.Selector, ...) (bool, error)
- type TokenRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecret ¶
func GetSecret(ctx context.Context, k8sClient client.Client, name, namespace string, logger logr.Logger) (*corev1.Secret, error)
getSecret retrieves a Kubernetes Secret.
func IsNameInList ¶
isNameInList checks if the secret's name is in the provided names set.
Types ¶
type TokenRetriever ¶
type TokenRetriever struct {
// contains filtered or unexported fields
}
func NewTokenRetriever ¶
func (*TokenRetriever) GetIdentityToken ¶
func (tr *TokenRetriever) GetIdentityToken() ([]byte, error)
func (*TokenRetriever) GetServiceAccountToken ¶
func (tr *TokenRetriever) GetServiceAccountToken() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.