Skip to content

Commit

Permalink
add default workingDir
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Sep 13, 2024
1 parent 28ac304 commit 90cc3d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/devbox/api/v1alpha1/runtime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type Config struct {
// kubebuilder:validation:Optional
Args []string `json:"args,omitempty"`
// +kubebuilder:validation:Optional
// +kubebuilder:default=/home/sealos/project
WorkingDir string `json:"workingDir,omitempty"`
// +kubebuilder:validation:Optional
Env []corev1.EnvVar `json:"env,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,7 @@ spec:
type: object
type: array
workingDir:
default: /home/sealos/project
type: string
required:
- image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ spec:
description: go1.22.5
config:
image: ghcr.io/cbluebird/devbox/go1.22.5:2f4067
workingDir: /home/sealos/project
releaseCommand:
- /bin/bash
- -c
releaseArgs:
- /home/sealos/project/entrypoint.sh
category:
- ubuntu
- go
Expand Down

0 comments on commit 90cc3d7

Please sign in to comment.