Documentation ¶
Index ¶
- Constants
- func CreateOrGetCustomConfigMap(ctx context.Context, r ReconcilerCommon, configMap *corev1.ConfigMap) (string, error)
- func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) string
- func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
- func GeneratePublicKey(privatekey *rsa.PublicKey) (string, error)
- func GetGroupLabel(serviceName string) string
- func GetLabels(obj metav1.Object, groupLabel string, custom map[string]string) map[string]string
- func GetOwnerNameLabelSelector(groupLabel string) string
- func GetOwnerNameSpaceLabelSelector(groupLabel string) string
- func GetOwnerUIDLabelSelector(groupLabel string) string
- func MergeVolumeMounts(vols []corev1.VolumeMount, newVols []corev1.VolumeMount) []corev1.VolumeMount
- func MergeVolumes(vols []corev1.Volume, newVols []corev1.Volume) []corev1.Volume
- func SSHKeySecret(name string, namespace string, labels map[string]string) (*corev1.Secret, error)
- type Probe
- type ProbeType
- type ReconcilerCommon
Constants ¶
View Source
const ( // BITSIZE - BITSIZE int = 4096 )
Variables ¶
This section is empty.
Functions ¶
func CreateOrGetCustomConfigMap ¶
func CreateOrGetCustomConfigMap( ctx context.Context, r ReconcilerCommon, configMap *corev1.ConfigMap, ) (string, error)
CreateOrGetCustomConfigMap -
func EncodePrivateKeyToPEM ¶
func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) string
EncodePrivateKeyToPEM encodes Private Key from RSA to PEM format
func GeneratePrivateKey ¶
func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
GeneratePrivateKey creates a RSA Private Key of specified byte size
func GeneratePublicKey ¶
GeneratePublicKey take a rsa.PublicKey and return bytes suitable for writing to .pub file returns in the format "ssh-rsa ..."
func GetOwnerNameLabelSelector ¶
GetOwnerNameLabelSelector -
func GetOwnerNameSpaceLabelSelector ¶
GetOwnerNameSpaceLabelSelector -
func GetOwnerUIDLabelSelector ¶
GetOwnerUIDLabelSelector -
func MergeVolumeMounts ¶
func MergeVolumeMounts(vols []corev1.VolumeMount, newVols []corev1.VolumeMount) []corev1.VolumeMount
MergeVolumeMounts - merge container volume mounts in-place
func MergeVolumes ¶
MergeVolumes - merge pod volumes in-place
Types ¶
type Probe ¶
type Probe struct { // ProbeType, either readiness, or liveness ProbeType ProbeType Command string InitialDelaySeconds int32 // min value 1 PeriodSeconds int32 // min value 1 TimeoutSeconds int32 // min value 1 FailureThreshold int32 // min value 1 }
Probe details
type ReconcilerCommon ¶
type ReconcilerCommon interface { GetClient() client.Client GetKClient() kubernetes.Interface GetLogger() logr.Logger GetScheme() *runtime.Scheme }
ReconcilerCommon - common reconciler interface
Click to show internal directories.
Click to hide internal directories.