Skip to content

Commit

Permalink
add release command and args for release default commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Sep 13, 2024
1 parent 6647429 commit 28ac304
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/devbox/api/v1alpha1/runtime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ type Config struct {
// +kubebuilder:validation:Optional
Env []corev1.EnvVar `json:"env,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default={/bin/bash,-c}
ReleaseCommand []string `json:"releaseCommand,omitempty"`
// +kubebuilder:validation:Optional
// +kubebuilder:default={/home/sealos/project/entrypoint.sh}
ReleaseArgs []string `json:"releaseArgs,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default={{name:"devbox-ssh-port",containerPort:22,protocol:TCP}}
Ports []corev1.ContainerPort `json:"ports,omitempty"`
Expand Down
13 changes: 13 additions & 0 deletions controllers/devbox/config/crd/bases/devbox.sealos.io_runtimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@ spec:
- containerPort
type: object
type: array
releaseArgs:
default:
- /home/sealos/project/entrypoint.sh
items:
type: string
type: array
releaseCommand:
default:
- /bin/bash
- -c
items:
type: string
type: array
user:
default: sealos
type: string
Expand Down

0 comments on commit 28ac304

Please sign in to comment.