Skip to content

Commit

Permalink
step1: copy runtime config to devbox crd.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Nov 13, 2024
1 parent c808ad6 commit fae93d8
Show file tree
Hide file tree
Showing 5 changed files with 1,808 additions and 1,712 deletions.
26 changes: 5 additions & 21 deletions controllers/devbox/api/v1alpha1/devbox_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,33 +81,17 @@ type DevboxSpec struct {
// +kubebuilder:default=false
Squash bool `json:"squash"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:Optional
RuntimeRef RuntimeRef `json:"runtimeRef"`

// +kubebuilder:validation:Required
NetworkSpec NetworkSpec `json:"network,omitempty"`

// todo add rewrite labels and annotations...
// +kubebuilder:validation:Optional
ExtraLabels map[string]string `json:"extraLabels,omitempty"`
// +kubebuilder:validation:Optional
ExtraAnnotations map[string]string `json:"extraAnnotations,omitempty"`
Image string `json:"image"`

// +kubebuilder:validation:Optional
Command []string `json:"command,omitempty"`
// +kubebuilder:validation:Optional
Args []string `json:"args,omitempty"`
// +kubebuilder:validation:Optional
WorkingDir string `json:"workingDir,omitempty"`
// todo add rewrite env...
// +kubebuilder:validation:Optional
ExtraEnvs []corev1.EnvVar `json:"extraEnvs"`
Config Config `json:"config"`

// todo add rewrite volumes and volume mounts..
// +kubebuilder:validation:Optional
ExtraVolumes []corev1.Volume `json:"extraVolumes,omitempty"`
// +kubebuilder:validation:Optional
ExtraVolumeMounts []corev1.VolumeMount `json:"extraVolumeMounts,omitempty"`
// +kubebuilder:validation:Required
NetworkSpec NetworkSpec `json:"network,omitempty"`

// +kubebuilder:validation:Optional
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
Expand Down
48 changes: 2 additions & 46 deletions controllers/devbox/api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fae93d8

Please sign in to comment.