Documentation ¶
Index ¶
- Constants
- func GetPodCondition(pod *corev1.Pod, conditionType corev1.PodConditionType) *corev1.PodCondition
- func HasFinalizer(obj metav1.Object, finalizer string) bool
- func NamespacedName(obj metav1.Object) types.NamespacedName
- func UpdatePodCondition(pod *corev1.Pod, conditionType corev1.PodConditionType, ...) bool
- type APIObject
- type FinalizerManager
Constants ¶
View Source
const ( FinalizerMeshMembers = "finalizers.appmesh.k8s.aws/mesh-members" FinalizerVirtualGatewayMembers = "finalizers.appmesh.k8s.aws/virtualgateway-members" FinalizerAWSAppMeshResources = "finalizers.appmesh.k8s.aws/aws-appmesh-resources" FinalizerAWSCloudMapResources = "finalizers.appmesh.k8s.aws/aws-cloudmap-resources" )
View Source
const (
ConditionAWSCloudMapHealthy = "conditions.appmesh.k8s.aws/aws-cloudmap-healthy"
)
Variables ¶
This section is empty.
Functions ¶
func GetPodCondition ¶
func GetPodCondition(pod *corev1.Pod, conditionType corev1.PodConditionType) *corev1.PodCondition
GetPodCondition will get pointer to Pod's existing condition.
func HasFinalizer ¶
HasFinalizer tests whether k8s object has specified finalizer
func NamespacedName ¶
func NamespacedName(obj metav1.Object) types.NamespacedName
NamespacedName returns the namespaced name for k8s objects
func UpdatePodCondition ¶
func UpdatePodCondition(pod *corev1.Pod, conditionType corev1.PodConditionType, status corev1.ConditionStatus, reason *string, message *string) bool
UpdatePodCondition will update Pod's condition. returns whether it's updated.
Types ¶
type FinalizerManager ¶
type FinalizerManager interface { AddFinalizers(ctx context.Context, obj APIObject, finalizers ...string) error RemoveFinalizers(ctx context.Context, obj APIObject, finalizers ...string) error }
func NewDefaultFinalizerManager ¶
func NewDefaultFinalizerManager(k8sClient client.Client, log logr.Logger) FinalizerManager
Click to show internal directories.
Click to hide internal directories.