Skip to content

Commit

Permalink
feat(image): rename 'platformVersion' to 'kubedoopversion' (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwpk110 authored Oct 15, 2024
1 parent 3c821b6 commit 1bf8aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions api/v1alpha1/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
DefaultRepository = "quay.io/zncdatadev"
DefaultProductVersion = "3.9.2"
DefaultProductName = "zookeeper"
DefaultPlatformVersion = "0.0.0-dev"
DefaultKubedoopVersion = "0.0.0-dev"
)

type ImageSpec struct {
Expand All @@ -23,7 +23,7 @@ type ImageSpec struct {

// +kubebuilder:validation:Optional
// +kubebuilder:default="0.0.0-dev"
PlatformVersion string `json:"platformVersion,omitempty"`
KubedoopVersion string `json:"kubedoopVersion,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default="3.9.2"
Expand All @@ -39,7 +39,7 @@ type ImageSpec struct {

func TransformImage(imageSpec *ImageSpec) *util.Image {
if imageSpec == nil {
return util.NewImage(DefaultProductName, DefaultPlatformVersion, DefaultProductVersion)
return util.NewImage(DefaultProductName, DefaultKubedoopVersion, DefaultProductVersion)
}
var pullPolicy corev1.PullPolicy = corev1.PullIfNotPresent
if imageSpec.PullPolicy != nil {
Expand All @@ -48,7 +48,7 @@ func TransformImage(imageSpec *ImageSpec) *util.Image {
return &util.Image{
Custom: imageSpec.Custom,
Repo: imageSpec.Repo,
KubedoopVersion: imageSpec.PlatformVersion,
KubedoopVersion: imageSpec.KubedoopVersion,
ProductVersion: imageSpec.ProductVersion,
PullPolicy: pullPolicy,
PullSecretName: imageSpec.PullSecretName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
properties:
custom:
type: string
platformVersion:
kubedoopVersion:
default: 0.0.0-dev
type: string
productVersion:
Expand Down

0 comments on commit 1bf8aee

Please sign in to comment.