controllers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationWorkloadIdentityEnabled  = "giantswarm.io/workload-identity-enabled"
	AnnoationMembershipSecretCreatedBy = "app.kubernetes.io/created-by" //#nosec G101
	FinalizerMembership                = "workload-identity-operator-gcp.giantswarm.io/finalizer"
	SuffixMembershipName               = "workload-identity"
	MembershipSecretName               = "workload-identity-operator-gcp-membership"
	DefaultMembershipSecretNamespace   = "giantswarm"
	KeyWorkloadClusterConfig           = "value"
)
View Source
const (
	AnnotationSecretMetadata    = "kubernetes.io/service-account.name" //#nosec G101
	AnnotationSecretManagedBy   = "app.kubernetes.io/managed-by"       //#nosec  G101
	AnnotationGCPServiceAccount = "giantswarm.io/gcp-service-account"

	SecretManagedBy = "workload-identity-operator-gcp" //#nosec G101

	SecretNameSuffix                      = "google-application-credentials" //#nosec G101
	SecretKeyGoogleApplicationCredentials = "config"

	ServiceAccountTokenPath         = "token"
	VolumeMountWorkloadIdentityPath = "/var/run/secrets/workload-identity"
)

Variables

This section is empty.

Functions

func GetMembershipFromSecret added in v0.4.0

func GetMembershipFromSecret(ctx context.Context, c client.Client, logger logr.Logger) (*gkehubpb.Membership, error)

Types

type GCPClusterReconciler added in v0.4.0

type GCPClusterReconciler struct {
	client.Client
	Logger logr.Logger

	MembershipSecretNamespace string
	GKEMembershipReconciler   *gke.GKEMembershipReconciler
}

GCPClusterReconciler reconciles a GCPCluster object

func (*GCPClusterReconciler) Reconcile added in v0.4.0

func (r *GCPClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*GCPClusterReconciler) SetupWithManager added in v0.4.0

func (r *GCPClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ServiceAccountReconciler

type ServiceAccountReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Logger logr.Logger
}

func (*ServiceAccountReconciler) Reconcile

func (*ServiceAccountReconciler) SetupWithManager

func (r *ServiceAccountReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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