@@ -60,8 +60,8 @@ type DevOptions struct {
6060 Logs * logs.Options
6161 Streams genericclioptions.IOStreams
6262
63- Image string
64- Tag string
63+ BackendImage string
64+ BackendTag string
6565 ProviderClusterName string
6666 ConsumerClusterName string
6767 WaitForReadyTimeout time.Duration
@@ -102,16 +102,16 @@ func (o *DevOptions) AddCmdFlags(cmd *cobra.Command) {
102102 cmd .Flags ().DurationVar (& o .WaitForReadyTimeout , "wait-for-ready-timeout" , 2 * time .Minute , "Timeout for waiting for the cluster to be ready" )
103103 cmd .Flags ().StringVar (& o .ChartPath , "chart-path" , o .ChartPath , "Helm chart path or OCI registry URL" )
104104 cmd .Flags ().StringVar (& o .ChartVersion , "chart-version" , o .ChartVersion , "The version of the Helm chart to use" )
105- cmd .Flags ().StringVar (& o .Image , "image" , "ghcr.io/kube-bind/backend" , "The name of kube-bind backend to use in dev mode" )
106- cmd .Flags ().StringVar (& o .Tag , "tag" , "" , "The tag of the kube-bind backend image to use in dev mode" )
105+ cmd .Flags ().StringVar (& o .BackendImage , "backend- image" , "ghcr.io/kube-bind/backend" , "The name of kube-bind backend to use in dev mode" )
106+ cmd .Flags ().StringVar (& o .BackendTag , "backend- tag" , "" , "The tag of the kube-bind backend image to use in dev mode" )
107107 cmd .Flags ().StringVar (& o .KindNetwork , "kind-network" , "kube-bind-dev" , "The name of the kind network to use in dev mode" )
108108}
109109
110110// Complete completes the options
111111func (o * DevOptions ) Complete (args []string ) error {
112112 // Only fetch the latest version if tag is not set
113113 var assetVersion string
114- if o .Tag == "" {
114+ if o .BackendTag == "" {
115115 version , err := fetchLatestRelease ()
116116 if err != nil {
117117 // Log the error but continue with fallback version
@@ -125,8 +125,8 @@ func (o *DevOptions) Complete(args []string) error {
125125 if o .ChartVersion == "" || o .ChartVersion == fallbackAssetVersion {
126126 o .ChartVersion = assetVersion
127127 }
128- if o .Tag == "" || o .Tag == "v" + fallbackAssetVersion {
129- o .Tag = "v" + assetVersion
128+ if o .BackendTag == "" || o .BackendTag == "v" + fallbackAssetVersion {
129+ o .BackendTag = "v" + assetVersion
130130 }
131131 }
132132
@@ -391,14 +391,14 @@ func (o *DevOptions) installHelmChart(_ context.Context, restConfig *rest.Config
391391 actionConfig .RegistryClient = registryClient
392392
393393 values := map [string ]any {
394- "image" : map [string ]any {
395- "repository" : o .Image ,
396- "tag" : o .Tag ,
397- },
398394 "examples" : map [string ]any {
399395 "enabled" : true ,
400396 },
401397 "backend" : map [string ]any {
398+ "image" : map [string ]any {
399+ "repository" : o .BackendImage ,
400+ "tag" : o .BackendTag ,
401+ },
402402 "listenAddress" : "0.0.0.0:8080" ,
403403 "namespacePrefix" : "kube-bind-" ,
404404 "externalAddress" : "https://kube-bind.dev.local:6443" ,
0 commit comments