package
0.0.0-20240815173558-303cc3735024
Repository: https://github.com/libopenstorage/operator.git
Documentation: pkg.go.dev
# Functions
ActivateCRDWhenCreated activates the given CRD by updating it's status.
ActivateV1beta1CRDWhenCreated activates the given CRD by updating it's status.
BoolPtr returns a pointer to provided bool value.
CanAccessArcusRegisterEndpoint checks if telemetry registration endpoint is reachable return true immediately if it can reach to Arcus return false after failing 5 times in a row.
ConstructPxReleaseManifestURL constructs Portworx install URL.
ConstructVersionURL constructs Portworx version URL that contains component images.
ConvertNodeListToNodeNameList takes list of nodes and return list of node names.
CreateAzureCredentialEnvVarsFromSecret check if px-vsphere-secret exists and returns vSphere crendentials Env vars.
CreateClusterWithTLS is a helper method.
CreateVsphereCredentialEnvVarsFromSecret check if px-vsphere-secret exists and returns vSphere crendentials Env vars.
Delete deletes an object using the given Kubernetes client.
FakeK8sClient creates a fake controller-runtime Kubernetes client.
FindAndCopyVsphereSecretToCustomNamespace attempt to find and copy PX vSphere secret to a given namespace.
Get returns an object using the given Kubernetes client.
GetExpectedAlertManager returns the AlertManager object from given yaml spec file.
GetExpectedClusterRole returns the ClusterRole object from given yaml spec file.
GetExpectedClusterRoleBinding returns the ClusterRoleBinding object from given yaml spec file.
GetExpectedConfigMap returns the ConfigMap object from given yaml spec file.
GetExpectedCRD returns the CustomResourceDefinition object from given yaml spec file.
GetExpectedCRDV1 returns the CustomResourceDefinition object from given yaml spec file.
GetExpectedCSR returns the CSR object from given yaml spec file.
GetExpectedDaemonSet returns the DaemonSet object from given yaml spec file.
GetExpectedDeployment returns the Deployment object from given yaml spec file.
GetExpectedPrometheus returns the Prometheus object from given yaml spec file.
GetExpectedPrometheusRule returns the PrometheusRule object from given yaml spec file.
GetExpectedPSP returns the PodSecurityPolicy object from given yaml spec file.
GetExpectedPxNodeList will get the list of nodes that should be included in the given Portworx cluster, by seeing if each non-master node matches the given node selectors and affinities.
GetExpectedRole returns the Role object from given yaml spec file.
GetExpectedRoleBinding returns the RoleBinding object from given yaml spec file.
GetExpectedSCC returns the SecurityContextConstraints object from given yaml spec file.
GetExpectedSecret returns the Secret object from given yaml spec file.
GetExpectedService returns the Service object from given yaml spec file.
GetExpectedServiceMonitor returns the ServiceMonitor object from given yaml spec file.
GetExpectedStatefulSet returns the StatefulSet object from given yaml spec file.
GetExpectedStorageClass returns the StorageClass object from given yaml spec file.
GetFullVersion returns the full kubernetes server version.
No description provided by the author
GetImagesFromVersionURL gets images from version URL.
GetK8SVersion gets and return K8S server version.
GetOpenshiftVersion gets Openshift version from ClusterVersion object and returns it as a string.
GetPortworxVersion returns the Portworx version based on the image provided.
GetPullPolicyForContainer returns the image pull policy for given deployment and container name.
GetPxOperatorVersion returns PX Operator version.
GetPxProxyEnvVarValue returns the PX_HTTP(S)_PROXY environment variable value for a cluster.
IsCCMGoSupported returns true if px version is higher than 2.12.
IsK3sOrRke2Cluster returns true or false, based on this kubernetes cluster is k3s or rke2 or not.
IsOpenshiftCluster checks if its Openshift cluster by seeing if ClusterVersion resource exists.
IsPKS returns true if the annotation has a PKS annotation and is true value.
IsPxDeployedOnMaster look for PX StorageCluster annotation that tells PX Operator wether to deploy PX on master or not and return true or false.
IsThisFreshInstall checks if its fresh install or not and returns true or false.
List returns a list of objects using the given Kubernetes client.
MockDriver creates a mock storage driver.
NewResourceVersion creates a random 16 character string to simulate a k8s resource version.
No description provided by the author
ParsePxProxy trims protocol prefix then splits the proxy address of the form "host:port" with possible basic authentication credential.
No description provided by the author
setupEtcHosts sets up given ip/hosts in `/etc/hosts` file for "local" DNS resolution (i.e.
UninstallStorageCluster uninstalls and wipe storagecluster from k8s.
Update changes an object using the given Kubernetes client and updates the resource version.
ValidateAlertManager validates alertManager components.
ValidateAlertManagerDisabled validates alert manager components are disabled/uninstalled as expected.
ValidateAlertManagerEnabled validates alert manager components are enabled/installed as expected.
ValidateAllStorageNodesAreUpgraded validates that all storagenodes are online and have expected PX version.
ValidateAutopilot validates Autopilot components and images.
ValidateAutopilotDisabled validates that all Autopilot components are disabled/deleted.
ValidateAutopilotEnabled validates that all Autopilot components are enabled/created.
ValidateClusterProviderHealth validates health of the cluster provider environment.
ValidateCSI validates CSI components and images.
ValidateCsiDisabled validates that all CSI components are disabled/deleted.
ValidateCsiEnabled validates that all CSI components are enabled/created.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateInternalKvdbDisabled validates that all Internal KVDB components are disabled/deleted.
ValidateInternalKvdbEnabled validates that all Internal KVDB components are enabled/created.
ValidateKvdb validates Portworx KVDB components.
ValidateMonitoring validates all PX Monitoring components.
No description provided by the author
No description provided by the author
ValidateOpenshiftDynamicPlugin validates OCP Dynamic Plugin components.
ValidateOpenshiftDynamicPluginEnabled validates that all Openshift Dynamic Plugin components are enabled/created.
ValidatePodDisruptionBudget validates the value of minavailable and number of disruptions for px-storage poddisruptionbudget.
ValidatePortworxProxy validates portworx proxy components.
ValidatePortworxProxyDisabled validates that all Portworx Proxy components are disabled/deleted.
ValidatePortworxProxyEnabled validates that all Portworx Proxy components are enabled/created.
ValidatePrometheus validates all Prometheus components.
ValidatePvcController validates PVC Controller components and images.
ValidatePvcControllerDisabled validates that all PVC Controller components are disabled/deleted.
ValidatePvcControllerEnabled validates that all PVC Controller components are enabled/created.
ValidatePxPodsAreReadyOnGivenNodes takes list of node and validates PX pods are present and ready on these nodes.
ValidateSecurity validates all PX Security components.
ValidateSecurityDisabled validates PX Security components are disabled/uninstalled as expected.
ValidateSecurityEnabled validates PX Security components are enabled/running as expected.
ValidateStorageCluster validates a StorageCluster spec.
ValidateStorageClusterFailedEvents checks a StorageCluster installed, but has issues (logged events).
ValidateStorageClusterInstallFailedWithEvents checks a StorageCluster installation failed with a logged event.
ValidateStorageClusterIsOnline wait for storage cluster to become online.
ValidateStork validates Stork components and images.
ValidateStorkDisabled validates that all Stork components are disabled/deleted.
ValidateStorkEnabled validates that all Stork components are enabled/created.
ValidateStorkScheduler validates stork-scheduler deployment and container images inside pods.
ValidateTelemetry validates telemetry component is installed/uninstalled as expected.
This validates the telemetry container orchestrator usage.
ValidateTelemetryV1 validates old version of ccm-java telemetry.
ValidateTelemetryV1Disabled validates telemetry components are uninstalled as expected.
ValidateTelemetryV1Enabled validates telemetry component is running as expected.
ValidateTelemetryV2 validates new version of ccm-go telemetry.
ValidateTelemetryV2Disabled validates telemetry component is running as expected.
ValidateTelemetryV2Enabled validates telemetry component is running as expected.
ValidateUninstallStorageCluster validates if storagecluster and its related objects were properly uninstalled and cleaned.
# Constants
AnnotationIsPKS annotation indicating whether it is a PKS cluster.
AnnotationPXVersion annotation indicating the portworx semantic version.
AnnotationTelemetryArcusLocation annotation indicates the location (internal/external) of Arcus that CCM should use.
CustomPVCControllerSecurePort is the PVC controller secure port.
DefaultPxAzureSecretName is a default name for PX vSphere credentials secret.
DefaultPxVsphereSecretName is a default name for PX vSphere credentials secret.
DefaultStorkPxJwtIssuerEnvVarValue is a defeault value for PX JWT issuer for stork.
DefaultStorkPxSharedSecretEnvVarValue is a default value for PX shared secret for stork.
EnvKeyPortworxHTTPProxy env var to use http proxy.
EnvKeyPortworxHTTPSProxy env var to use https proxy.
HttpProtocolPrefix is the prefix for HTTP protocol.
HttpsProtocolPrefix is the prefix for HTTPS protocol.
PvcControllerAnnotation annotation indicating whether to deploy a PVC controller.
PxImageEnvVarName is the env variable to specify a specific Portworx image to install.
PxMasterVersion is a tag for Portworx master version.
PxOperatorMasterVersion is a tag for PX Operator master version.
PxRegistryPasswordEnvVarName is a Docker password Env variable name.
PxRegistryUserEnvVarName is a Docker username Env variable name.
PxReleaseManifestURLEnvVarName is a release manifest URL Env variable name.
StorkNamespaceEnvVarName is the namespace where stork is deployed.
StorkPxJwtIssuerEnvVarName is a PX JWT issuer Env variable name for stork.
StorkPxSharedSecretEnvVarName is a PX shared secret Env variable name for stork.
TelemetryCertName is name of the telemetry cert.
No description provided by the author
# Variables
No description provided by the author
TestSpecPath is the path for all test specs.