Documentation ¶
Overview ¶
Copyright 2020 IBM Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 IBM Corporation ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func AppendAnnotations(lhsAnnotation, rhsAnnotation map[string]string) map[string]string
- func AppendTolerations(lhsTolerations, rhsTolerations []core.Toleration) []core.Toleration
- func AreMapsSame(lhs, rhs map[string]string) bool
- func AreResourcesDifferent(current, desired interface{}) bool
- func AreTolerationsSame(lhs, rhs []core.Toleration) bool
- func AsOwner(o *operatorv1alpha1.ManagementIngress) metav1.OwnerReference
- func CompareResources(current, desired v1.ResourceRequirements) (bool, v1.ResourceRequirements)
- func ContainsString(slice []string, s string) bool
- func EnvValueEqual(env1, env2 []core.EnvVar) bool
- func EnvVarResourceFieldSelectorEqual(resource1, resource2 core.ResourceFieldSelector) bool
- func EnvVarSourceEqual(esource1, esource2 core.EnvVarSource) bool
- func GetAnnotation(key string, meta metav1.ObjectMeta) (string, bool)
- func GetBool(value bool) *bool
- func GetInt32(value int32) *int32
- func GetInt64(value int64) *int64
- func IsDaemonsetDifferent(current *apps.DaemonSet, desired *apps.DaemonSet) (*apps.DaemonSet, bool)
- func IsDeploymentDifferent(current *apps.Deployment, desired *apps.Deployment) (*apps.Deployment, bool)
- func IsServiceDifferent(current *core.Service, desired *core.Service) (*core.Service, bool)
- func PodVolumeEquivalent(lhs, rhs []core.Volume) bool
- func RemoveString(slice []string, s string) (result []string)
Constants ¶
const (
CertManagerTimeRestartLabel string = "certmanager.k8s.io/time-restarted"
)
Variables ¶
This section is empty.
Functions ¶
func AppendAnnotations ¶
func AppendTolerations ¶
func AppendTolerations(lhsTolerations, rhsTolerations []core.Toleration) []core.Toleration
func AreMapsSame ¶
func AreResourcesDifferent ¶
func AreResourcesDifferent(current, desired interface{}) bool
func AreTolerationsSame ¶
func AreTolerationsSame(lhs, rhs []core.Toleration) bool
func AsOwner ¶
func AsOwner(o *operatorv1alpha1.ManagementIngress) metav1.OwnerReference
func CompareResources ¶
func CompareResources(current, desired v1.ResourceRequirements) (bool, v1.ResourceRequirements)
func ContainsString ¶
func EnvValueEqual ¶
* EnvValueEqual - check if 2 EnvValues are equal or not Notes: - reflect.DeepEqual does not return expected results if the to-be-compared value is a pointer. - needs to adjust with k8s.io/api/core/v#/types.go when the types are updated. *
func EnvVarResourceFieldSelectorEqual ¶
func EnvVarResourceFieldSelectorEqual(resource1, resource2 core.ResourceFieldSelector) bool
func EnvVarSourceEqual ¶
func EnvVarSourceEqual(esource1, esource2 core.EnvVarSource) bool
func GetAnnotation ¶
func GetAnnotation(key string, meta metav1.ObjectMeta) (string, bool)
GetAnnotation returns the value of an annoation for a given key and true if the key was found
func IsDaemonsetDifferent ¶
func IsDeploymentDifferent ¶
func IsDeploymentDifferent(current *apps.Deployment, desired *apps.Deployment) (*apps.Deployment, bool)
func IsServiceDifferent ¶
func PodVolumeEquivalent ¶
func RemoveString ¶
Types ¶
This section is empty.