Documentation
¶
Index ¶
- Constants
- func CreateOrUpdateClusterRole(secret *rbacv1.ClusterRole, c client.Client) error
- func CreateOrUpdateClusterRoleBinding(secret *rbacv1.ClusterRoleBinding, c client.Client) error
- func CreateOrUpdateDaemonSet(daemonSet *appsv1.DaemonSet, c client.Client) error
- func CreateOrUpdateSecret(secret *corev1.Secret, c client.Client) error
- func CreateOrUpdateService(svc *corev1.Service, c client.Client) error
- func CreateOrUpdateServiceAccount(secret *corev1.ServiceAccount, c client.Client) error
- func CreateOrUpdateStatefulSet(statefulSet *appsv1.StatefulSet, c client.Client) error
- func CreatePod(pod *corev1.Pod, c client.Client) error
- func DeletePod(pod *corev1.Pod, c client.Client) error
- func DeleteSecret(secret *corev1.Secret, c client.Client) error
- func GetPod(pod *corev1.Pod, c client.Client) (*corev1.Pod, error)
- func GetPodLogs(pod *corev1.Pod, cs *kubernetes.Clientset) (string, error)
- func GetSecret(namespacedName types.NamespacedName, c client.Client) (*corev1.Secret, error)
- func NamespaceNameToLabel(namespace string) string
- func UpdateStatus(ctx context.Context, obj client.Object, c client.Client) error
Constants ¶
View Source
const ( // ManagedByLabelKey is Kubernetes recommended label key, it represents the tool being used to manage the operation of an application // For resources managed by SeaweedFS Operator, its value is always seaweedfs-operator ManagedByLabelKey string = "app.kubernetes.io/managed-by" // ComponentLabelKey is Kubernetes recommended label key, it represents the component within the architecture ComponentLabelKey string = "app.kubernetes.io/component" // NameLabelKey is Kubernetes recommended label key, it represents the name of the application NameLabelKey string = "app.kubernetes.io/name" // InstanceLabelKey is Kubernetes recommended label key, it represents a unique name identifying the instance of an application // It's set by helm when installing a release InstanceLabelKey string = "app.kubernetes.io/instance" // VersionLabelKey is Kubernetes recommended label key, it represents the version of the app VersionLabelKey string = "app.kubernetes.io/version" VectorExcludeLabel string = "vector.dev/exclude" // PodName is to select pod by name // https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-selector PodName string = "statefulset.kubernetes.io/pod-name" )
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateClusterRole ¶
func CreateOrUpdateClusterRole(secret *rbacv1.ClusterRole, c client.Client) error
func CreateOrUpdateClusterRoleBinding ¶
func CreateOrUpdateClusterRoleBinding(secret *rbacv1.ClusterRoleBinding, c client.Client) error
func CreateOrUpdateDaemonSet ¶
func CreateOrUpdateServiceAccount ¶
func CreateOrUpdateServiceAccount(secret *corev1.ServiceAccount, c client.Client) error
func CreateOrUpdateStatefulSet ¶
func CreateOrUpdateStatefulSet(statefulSet *appsv1.StatefulSet, c client.Client) error
func GetPodLogs ¶
func NamespaceNameToLabel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.