package
2.34.0
Repository: https://github.com/fluxninja/aperture.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AgentAnnotationsWithOwnerRef prepares the map for Annotation with reference to the creator instance.
AgentControllerClientCertResourceName generate a name for the agent controller client certificate.
AgentEnv prepares env resources for Agents' container.
AgentResourceName generate a name for the agent related resources.
AgentServiceAccountName generate a name for the agent service account.
AgentVolumeMounts prepares volumeMounts for Agents' container.
AgentVolumes prepares volumes for Agent.
CheckAndGenerateCertForOperator checks if existing certificates are present and creates new if not present.
CheckCertificate checks if existing certificates are available.
ClusterRoleBindingMutate returns a mutate function that can be used to update the Service's service spec.
ClusterRoleMutate returns a mutate function that can be used to update the ClusterRole's spec.
CommonLabels prepares common labels used by all resources.
ConfigMapMutate returns a mutate function that can be used to update the ConfigMap's configuration data.
ContainerEnvFrom prepares EnvFrom resource for Agent and Controllers' container.
ContainerProbes prepares livenessProbe and readinessProbe based on the provided parameters.
ContainerSecurityContext prepares SecurityContext for containers based on the provided parameter.
ControllerAnnotationsWithOwnerRef prepares the map for Annotation with reference to the creator instance.
ControllerEnv prepares env resources for Controller' container.
ControllerResourcesName generates a name for the controller related resources.
ControllerResourcesNamespacedName generates a name for the controller related resources.
ControllerServiceAccountName generate a name for the controller service account.
ControllerVolumeMounts prepares volumeMounts for Controllers' container.
ControllerVolumes prepares volumes for Controller.
GenerateCertificate generates certificate and stores it in the desired location.
GetCertificateDNSNames generates DNS names for the certificate.
GetControllerClientCert returns the controller client certificate from the controller configmap.
GetOrGenerateCertificate returns the TLS/SSL certificates of the Controller.
GetPort parses port value from the Address string.
ImagePullSecrets prepares ImagePullSecrets string slice from the provided Image struct.
ImageString prepares image string from the provided Image struct.
MergeContainers merges common and provided Container/Init Container of Kubernetes container.
MergeEnvFromSources merges common and provided extra Environment From of Kubernetes container.
MergeEnvVars merges common and provided extra Environment variables of Kubernetes container.
MergeImagePullSecrets merges common and provided Image Pull Secrets of Kubernetes.
MergeVolumeMounts merges common and provided extra Volume mounts of Kubernetes container.
MergeVolumes merges common and provided extra Volume of Kubernetes Pod.
MutatingWebhookConfigurationMutate returns a mutate function that can be used to update the MutatingWebhookConfiguration's spec.
PodSecurityContext prepares SecurityContext for Pods based on the provided parameter.
SecretDataKey fetches Key for ApiKey secret from config or generates the Key if not present in config.
SecretMutate returns a mutate function that can be used to update the Secret's data.
SecretName fetches name for ApiKey secret from config or generates the name if not present in config.
SelectorLabels prepares the labels used for Selector.
ServiceAccountMutate returns a mutate function that can be used to update the ClusterRole's spec.
ServiceMutate returns a mutate function that can be used to update the Service's spec.
SyncMaps syncs the dst map with the src map.
UpdateResource updates the Aperture resource in Kubernetes.
ValidatingWebhookConfigurationMutate returns a mutate function that can be used to update the ValidatingWebhookConfiguration's spec.
WriteFile writes data in the file at the given path.

# Constants

AgentControllerClientCertCMName defines Controller client cert ConfigMap name.
AgentControllerClientCertPath defines Controller client cert path in Agent container.
AgentGroupKey defines agent group key.
AgentModeChangeAnnotationKey defines annotation key for change in Agent installation mode.
AgentMutatingWebhookName defines agent service name.
AgentMutatingWebhookURI defines the URI for the Mutating Webhook for Agents.
AgentServiceName defines agent service name.
AppName defines name of the application.
ControllerCertKeyName defines controller key file name.
ControllerCertName defines controller cert name.
ControllerCertPath defines controller cert path.
ControllerClientCertKey defines controller client cert key.
ControllerMutatingWebhookName defines Controller Mutating Webhook Name.
ControllerMutatingWebhookURI defines the URI for the Mutating Webhook for Controllers.
ControllerName defines controller name.
ControllerServiceName defines controller service name.
DefaulterAnnotationKey defines annotation key for set defaults.
DistCache string.
Enabled string.
FailedStatus string.
FinalizerName defines finalizer name.
MemberList string.
MinimumKubernetesVersion defines minimum kubernetes version required by Aperture.
MutatingWebhookURI defines the URI for the Mutating Webhook for Pods.
OperatorCAName defines operator CA name.
OperatorCertKeyName defines operator key name.
OperatorCertName defines operator cert name.
OperatorName defines operator name.
OtelDebugPort string.
OtelHealthcheckPort string.
OtelPprofPort string.
OtelZpagesPort string.
PodMutatingWebhookName defines agent service name.
PolicyValidatingWebhookName defines Validating Webhook name for Policy.
PolicyValidatingWebhookURI defines Validating Webhook URI for Policy.
SecretKey defines the Kubernetes secret data key.
Server string.
SidecarAnnotationKey defines sidecar annotation key.
SidecarKey defines sidecar key.
SidecarLabelKey defines sidecar label key.
TCP string.
V1Alpha1Version defines v1alpha1 version.
V1Version defines v1 version.
ValidatingWebhookName defines Validating Webhook name.
ValidatingWebhookSvcName defines Validating Webhook service name.
WebhookClientCertName defines client cert name.

# Variables

CertDir defines cert directory for tests.
Ctx context.
CurrentKubernetesVersion is pointer of type `apimachineryversion.Version`, which defines local kubernetes version.
DefaultAgentInstance defines default Agent instance for tests.
DefaultControllerInstance defines default Controller instance for tests.
K8sClient defines Kubernetes client for tests.
K8sDynamicClient defines Kubernetes Dynamic client for tests.
K8sManager defines Kubernetes Manager for tests.
MinimumKubernetesVersionBool defines if minimum kubernetes version required by Aperture is met.
PoliciesDir defines policies directory for tests.
PolicyFilePath defines default path for the policies on Controller.
Test string.
TestArray array.
TestArrayTwo array.
TestDigest string.
TestMap map.
TestMapTwo map.
TestTwo string.