Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultCodeRootPath = "/code"
)
Variables ¶
This section is empty.
Functions ¶
func InjectCodeSyncInitContainers ¶
func InjectCodeSyncInitContainers(metaObj metav1.Object, specTemplate *v1.PodTemplateSpec) error
Types ¶
type CodeSyncHandler ¶
type GitSyncOptions ¶
type GitSyncOptions struct { SyncOptions `json:",inline"` // Git repository settings for user to specify. Branch string `json:"branch,omitempty"` Revision string `json:"revision,omitempty"` Depth string `json:"depth,omitempty"` // Max consecutive failures allowed. MaxFailures int `json:"maxFailures,omitempty"` // SSH settings for users to use git in ssh pattern. SSH bool `json:"ssh,omitempty"` SSHFile string `json:"sshFile,omitempty"` // User-customized account settings. User string `json:"user,omitempty"` Password string `json:"password,omitempty"` }
type SyncOptions ¶
type SyncOptions struct { // Code source address.(required) Source string `json:"source"` // Image contains toolkits to execute syncing code. Image string `json:"image,omitempty"` // Code root/destination directory path. // Root: the path to save downloaded files. // Dest: the name of (a symlink to) a directory in which to check-out files RootPath string `json:"rootPath,omitempty"` DestPath string `json:"destPath,omitempty"` // Relative Code path of workingDir that will be mounted to main containers. RelativeCodePath string `json:"relativeCodePath,omitempty"` // User-customized environment variables. Envs []v1.EnvVar `json:"envs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.