Skip to content

Commit 08d591a

Browse files
authored
bump chart and fix nits (#372)
1 parent 667783a commit 08d591a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

cli/pkg/kubectl/dev/plugin/create.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func NewDevOptions(streams genericclioptions.IOStreams) *DevOptions {
7676
ConsumerClusterName: "kind-consumer",
7777
ChartPath: "oci://ghcr.io/kube-bind/charts/backend",
7878
// TODO: Update to released version
79-
ChartVersion: "0.0.0-a50df39d7e4c71f7808f4209ec23f294c5ac8f86",
79+
ChartVersion: "0.0.0-667783a5861bb10113d6e10e355bfe87e731a314",
8080
}
8181
}
8282

@@ -131,7 +131,6 @@ func (o *DevOptions) Run(ctx context.Context) error {
131131
// Display experimental warning header
132132
fmt.Fprintf(o.Streams.ErrOut, "🧪 EXPERIMENTAL: Kube-bind dev command is in preview\n")
133133
fmt.Fprintf(o.Streams.ErrOut, "📦 Requirements: Docker must be installed and running\n")
134-
fmt.Fprintf(o.Streams.ErrOut, "⚠️ This command is for development purposes only\n\n")
135134

136135
if err := o.setupHostEntries(ctx); err != nil {
137136
return err
@@ -326,14 +325,19 @@ func (o *DevOptions) installHelmChart(_ context.Context, restConfig *rest.Config
326325
"port": 8080,
327326
"nodePort": 31000,
328327
},
328+
"hostAliases": []map[string]interface{}{
329+
{
330+
"ip": "0.0.0.0",
331+
"hostnames": []string{"kube-bind.dev.local"},
332+
},
333+
},
329334
}
330335

331336
var chart *chart.Chart
332337
var err error
333338

334339
if strings.HasPrefix(o.ChartPath, "oci://") {
335340
tempInstallAction := action.NewInstall(actionConfig)
336-
tempInstallAction.ChartPathOptions.RepoURL = o.ChartPath
337341
tempInstallAction.ChartPathOptions.Version = o.ChartVersion
338342
chartPath, err := tempInstallAction.ChartPathOptions.LocateChart(o.ChartPath, cli.New())
339343
if err != nil {

0 commit comments

Comments
 (0)