package
0.0.0-20240928232002-2583a758a6a6
Repository: https://github.com/pulp/pulp-operator.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
Copyright 2022.
No description provided by the author
No description provided by the author
# Functions
AddHashLabel creates a label with the calculated hash from the mutated deployment.
CalculateHash returns a string of the hashed value from obj.
CheckDeployment returns true if a spec from deployment is not with the expected contents defined in Pulp CR.
CheckEmptyDir creates a log warn message in case no persistent storage is provided for the given resource.
ContainerExec runs a command in the container.
CustomZapLogger should be used only for warn messages it is a kludge to bypass the "limitation" of logr not having warn level.
DeployAptSign returns true if signingScript secret is defined with an apt script.
DeployCollectionSign returns true if signingScript secret is defined with a collection script.
DeployContainerSign returns true if signingScript secret is defined with a container script.
GetAdminSecretName retrieves pulp admin user password.
GetAPIRoot returns the definition of API_ROOT in settings.py or /pulp/.
GetContentPathPrefix returns the definition of CONTENT_PATH_PREFIX in settings.py or * /pulp/content/default/ if domain is enabled * /pulp/content/ otherwise.
getCurrentHash retrieves the hash defined in obj label.
GetDBFieldsEncryptionSecret returns the name of DBFieldsEncryption Secret.
GetPostgresEnvVars return the list of postgres environment variables to use in containers.
getSigningKeyFingerprint returns the signing key fingerprint from secret object.
GetStorageType retrieves the storage type defined in pulp CR.
No description provided by the author
IgnoreUpdateCRStatusPredicate filters update events on pulpbackup CR status.
CheckImageVersionModified verifies if the container image tag defined in Pulp CR matches the one in the Deployment.
IngressDefaults returns an k8s Ingress resource with default values.
No description provided by the author
IsNginxIngressSupported returns true if the operator was instructed that this is a nginx ingress controller.
IsOpenShift returns true if the platform cluster is OpenShift.
MultiStorageConfigured returns true if Pulp CR is configured with more than one "storage type" for example, if ObjectStorageAzureSecret and FileStorageClass are defined we can't determine which one the operator should use.
otelConfigMap defines a configmap resource to keep otel-collector-config.yaml configuration file.
ReconcileMetadata is a method to handle only .metadata.{labels,annotations} reconciliation for some reason, if we try to use DeepDerivative like
if !equality.Semantic.DeepDerivative(expectedState.(*routev1.Route), currentState.(*routev1.Route)) ..
ReconcileObject will check if the definition from Pulp CR is reflecting the current object state and if not will synchronize the configuration func ReconcileObject(funcResources FunctionResources, expectedState, currentState client.Object, conditionType string, pulpObject PulpObject) (bool, error) {.
RemovePulpWebResources deletes pulp-web Deployment and Service.
RemoveTelemetryResources cleans up telemetry resources if telemetry.enabled == false.
Retrieve specific keys from secret object.
serviceOtel defines a service to expose otel metrics.
setCustomEnvVars returns the list of custom environment variables defined in Pulp CR.
SetDefaultSecurityContext defines the container security configuration to be in compliance with PodSecurity "restricted:v1.24".
SetHashLabel appends the operator's hash label into object.
setPulpcoreCustomEnvVars returns the list of custom environment variables defined in Pulp CR.
StorageTypeChanged verifies if the storage type has been modified.
UpdatCRField patches fieldName in Pulp CR with fieldValue.
UpdateStatus will set the new condition value for a .status.conditions[] it will also set Pulp-Operator-Finished-Execution to false.
WaitAPIPods waits until all API pods are in a READY state.
# Constants
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
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
No description provided by the author
# Structs
CommonDeployment has the common definition for all pulpcore deployments.
DeploymentAPICommon is the common pulpcore-api Deployment definition.
DeploymentContentCommon is the common pulpcore-content Deployment definition.
DeploymentWorkerCommon is the common pulpcore-worker Deployment definition.
FunctionResources contains the list of arguments passed to create new Pulp resources.
IngressPlugin defines a plugin ingress.
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
No description provided by the author
No description provided by the author
# Interfaces
PulpObject represents Pulp resources managed by pulp-operator.