Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultSyncthingImageForBinaryVersion(binaryVersion string) string
- func ResolvePath(configPath string) (string, error)
- func TemplateByName(name string) (string, error)
- type DevEnvSpec
- type DevEnvironment
- type Metadata
- type MetadataMap
- type PVCSettings
- type PodTemplateRef
- type PortMapping
- type SSHSpec
- type SessionSpec
- type SyncSpec
- type SyncthingSpec
- type Workspace
Constants ¶
View Source
const ( DefaultSyncthingVersion = "v1.29.7" DefaultSyncthingImageRepository = "ghcr.io/acmore/okdev" DefaultSyncthingImageFallback = "edge" DefaultWorkspacePVCSize = "50Gi" )
View Source
const ( DefaultFile = ".okdev.yaml" LegacyFile = "okdev.yaml" )
Variables ¶
View Source
var DefaultSyncthingImage = DefaultSyncthingImageForBinaryVersion(version.Version)
View Source
var DefaultTemplate = basicTemplate
Functions ¶
func ResolvePath ¶
func TemplateByName ¶
Types ¶
type DevEnvSpec ¶
type DevEnvSpec struct {
Namespace string `yaml:"namespace"`
Session SessionSpec `yaml:"session"`
Workspace Workspace `yaml:"workspace"`
Sync SyncSpec `yaml:"sync"`
Ports []PortMapping `yaml:"ports"`
SSH SSHSpec `yaml:"ssh"`
PodTemplate PodTemplateRef `yaml:"podTemplate"`
}
type DevEnvironment ¶
type DevEnvironment struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata Metadata `yaml:"metadata"`
Spec DevEnvSpec `yaml:"spec"`
}
DevEnvironment is the top-level config structure for .okdev.yaml.
func (*DevEnvironment) SetDefaults ¶
func (d *DevEnvironment) SetDefaults()
func (*DevEnvironment) Validate ¶
func (d *DevEnvironment) Validate() error
type MetadataMap ¶
type PVCSettings ¶
type PodTemplateRef ¶
type PodTemplateRef struct {
Metadata MetadataMap `yaml:"metadata"`
Spec corev1.PodSpec `yaml:"spec"`
}
type PortMapping ¶
type SessionSpec ¶
type SyncSpec ¶
type SyncSpec struct {
Paths []string `yaml:"paths"`
Exclude []string `yaml:"exclude"`
RemoteExclude []string `yaml:"remoteExclude"`
Engine string `yaml:"engine"`
Syncthing SyncthingSpec `yaml:"syncthing"`
}
type SyncthingSpec ¶
type SyncthingSpec struct {
Version string `yaml:"version"`
AutoInstall *bool `yaml:"autoInstall"`
Image string `yaml:"image"`
}
func (SyncthingSpec) AutoInstallEnabled ¶
func (s SyncthingSpec) AutoInstallEnabled() bool
type Workspace ¶
type Workspace struct {
MountPath string `yaml:"mountPath"`
PVC PVCSettings `yaml:"pvc"`
}
Click to show internal directories.
Click to hide internal directories.