Skip to content

Commit

Permalink
add release old tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bearslyricattack committed Sep 9, 2024
1 parent ff18f75 commit 05a848a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
9 changes: 4 additions & 5 deletions controllers/devbox/api/v1alpha1/devboxrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ const (
DevboxReleasePhaseFailed DevboxReleasePhase = "Failed"
)

// +kubebuilder:printcolumn:name="DevboxName",type="string",JSONPath=".spec.devboxName"
// +kubebuilder:printcolumn:name="NewTag",type="string",JSONPath=".spec.newTag"
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase"
// +kubebuilder:printcolumn:name="OriginalImage",type="string",JSONPath=".status.originalImage"

// DevBoxReleaseStatus defines the observed state of DevBoxRelease
type DevBoxReleaseStatus struct {
// +kubebuilder:validation:Optional
Expand All @@ -57,6 +52,10 @@ type DevBoxReleaseStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="DevboxName",type="string",JSONPath=".spec.devboxName"
// +kubebuilder:printcolumn:name="NewTag",type="string",JSONPath=".spec.newTag"
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase"
// +kubebuilder:printcolumn:name="OriginalImage",type="string",JSONPath=".status.originalImage"

// DevBoxRelease is the Schema for the devboxreleases API
type DevBoxRelease struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@ spec:
singular: devboxrelease
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.devboxName
name: DevboxName
type: string
- jsonPath: .spec.newTag
name: NewTag
type: string
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .status.originalImage
name: OriginalImage
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: DevBoxRelease is the Schema for the devboxreleases API
Expand Down
15 changes: 14 additions & 1 deletion controllers/devbox/deploy/manifests/deploy.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2807,7 +2807,20 @@ spec:
singular: devboxrelease
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.devboxNamåe
name: DevboxName
type: string
- jsonPath: .spec.newTag
name: NewTag
type: string
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .status.originalImage
name: OriginalImage
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: DevBoxRelease is the Schema for the devboxreleases API
Expand Down

0 comments on commit 05a848a

Please sign in to comment.