Documentation ¶
Index ¶
- Constants
- func GetFileAnnotationConfigData(annotFile string) ([]*types.ConfigurationData, error)
- func GetFileAnnotationMappedDir(annotFile string) (string, error)
- func GetPodVolumeMountHostSharedDir(pod *v1.Pod) (string, error)
- func WritePodAnnotation(kubeClient kubernetes.Interface, pod *v1.Pod, ...) (*v1.Pod, error)
- type NoKubeClientProvidedError
- type NoPodProvidedError
- type NoSharedDirProvidedError
Constants ¶
View Source
const ( AnnotKeyUsrspConfigData = "userspace/configuration-data" AnnotKeyUsrspMappedDir = "userspace/mapped-dir" DefaultBaseCNIDir = "/var/lib/cni/usrspcni" DefaultLocalCNIDir = "/var/lib/cni/usrspcni/data" DefaultHostkubeletPodBaseDir = "/var/lib/kubelet/pods/" DefaultHostEmptyDirVolumeName = "volumes/kubernetes.io~empty-dir/" )
List of Annotations supported in the podSpec
Variables ¶
This section is empty.
Functions ¶
func GetFileAnnotationConfigData ¶
func GetFileAnnotationConfigData(annotFile string) ([]*types.ConfigurationData, error)
func WritePodAnnotation ¶
func WritePodAnnotation(kubeClient kubernetes.Interface, pod *v1.Pod, configData *types.ConfigurationData) (*v1.Pod, error)
Types ¶
type NoKubeClientProvidedError ¶
type NoKubeClientProvidedError struct {
// contains filtered or unexported fields
}
func (*NoKubeClientProvidedError) Error ¶
func (e *NoKubeClientProvidedError) Error() string
type NoPodProvidedError ¶
type NoPodProvidedError struct {
// contains filtered or unexported fields
}
func (*NoPodProvidedError) Error ¶
func (e *NoPodProvidedError) Error() string
type NoSharedDirProvidedError ¶
type NoSharedDirProvidedError struct {
// contains filtered or unexported fields
}
Errors returned from this module
func (*NoSharedDirProvidedError) Error ¶
func (e *NoSharedDirProvidedError) Error() string
Click to show internal directories.
Click to hide internal directories.