Documentation
¶
Index ¶
- Constants
- func AddBackplaneConfigLabels(u client.Object, name string)
- func ContainsMap(all map[string]string, expected map[string]string) bool
- func CoreToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
- func DistributePods(key string, value string) *corev1.Affinity
- func GetContainerArgs(dep *appsv1.Deployment) []string
- func GetContainerEnvVars(dep *appsv1.Deployment) []corev1.EnvVar
- func GetContainerRequestResources(dep *appsv1.Deployment) corev1.ResourceList
- func GetContainerVolumeMounts(dep *appsv1.Deployment) []corev1.VolumeMount
- func GetImageOverrides() map[string]string
- func GetImagePullPolicy(m *v1alpha1.MultiClusterEngine) corev1.PullPolicy
- func GetReplicaCount() int32
- func GetTestImages() []string
- func ProxyEnvVarsAreSet() bool
- func ValidateClusterRoleRules(found *unstructured.Unstructured, want *unstructured.Unstructured) (*unstructured.Unstructured, bool)
Constants ¶
const ( // OSBSImagePrefix ... OSBSImagePrefix = "RELATED_IMAGE_" // OperandImagePrefix ... OperandImagePrefix = "OPERAND_IMAGE_" )
Variables ¶
This section is empty.
Functions ¶
func AddBackplaneConfigLabels ¶
AddBackplaneConfigLabels adds BackplaneConfig Labels ...
func ContainsMap ¶
ContainsMap returns whether the expected map entries are included in the map
func CoreToUnstructured ¶
func CoreToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
CoreToUnstructured converts a Core Kube resource to unstructured
func DistributePods ¶
DistributePods returns a anti-affinity rule that specifies a preference for pod replicas with the matching key-value label to run across different nodes and zones
func GetContainerArgs ¶
func GetContainerArgs(dep *appsv1.Deployment) []string
GetContainerArgs return arguments forfirst container in deployment
func GetContainerEnvVars ¶
func GetContainerEnvVars(dep *appsv1.Deployment) []corev1.EnvVar
GetContainerEnvVars returns environment variables for first container in deployment
func GetContainerRequestResources ¶
func GetContainerRequestResources(dep *appsv1.Deployment) corev1.ResourceList
GetContainerRequestResources returns Request Requirements for first container in deployment
func GetContainerVolumeMounts ¶
func GetContainerVolumeMounts(dep *appsv1.Deployment) []corev1.VolumeMount
GetContainerVolumeMounts returns volume mount for first container in deployment
func GetImageOverrides ¶
GetImageOverrides Reads and formats full image reference from image manifest file.
func GetImagePullPolicy ¶
func GetImagePullPolicy(m *v1alpha1.MultiClusterEngine) corev1.PullPolicy
GetImagePullPolicy returns either pull policy from CR overrides or default of Always
func GetReplicaCount ¶
func GetReplicaCount() int32
func GetTestImages ¶
func GetTestImages() []string
func ProxyEnvVarsAreSet ¶
func ProxyEnvVarsAreSet() bool
ProxyEnvVarIsSet ... OLM handles these environment variables as a unit; if at least one of them is set, all three are considered overridden and the cluster-wide defaults are not used for the deployments of the subscribed Operator. https://docs.openshift.com/container-platform/4.6/operators/admin/olm-configuring-proxy-support.html GetProxyEnvVars
func ValidateClusterRoleRules ¶
func ValidateClusterRoleRules(found *unstructured.Unstructured, want *unstructured.Unstructured) (*unstructured.Unstructured, bool)
Types ¶
This section is empty.