Skip to content

Commit

Permalink
remove offline flag from apply
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed May 2, 2024
1 parent dd50536 commit fb5737b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/commands/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ var applyCmdFlags struct {
talosVersion string
withSecrets string
root string
offline bool
kubernetesVersion string
dryRun bool
configTryTimeout time.Duration
Expand Down Expand Up @@ -67,7 +66,7 @@ func apply(args []string) func(ctx context.Context, c *client.Client) error {
WithSecrets: applyCmdFlags.withSecrets,
Full: true,
Root: applyCmdFlags.root,
Offline: applyCmdFlags.offline,
Offline: false,
KubernetesVersion: applyCmdFlags.kubernetesVersion,
TemplateFiles: args,
}
Expand Down Expand Up @@ -151,7 +150,6 @@ func init() {
applyCmd.Flags().StringVar(&applyCmdFlags.talosVersion, "talos-version", "", "the desired Talos version to generate config for (backwards compatibility, e.g. v0.8)")
applyCmd.Flags().StringVar(&applyCmdFlags.withSecrets, "with-secrets", "", "use a secrets file generated using 'gen secrets'")
applyCmd.Flags().StringVar(&applyCmdFlags.root, "root", "", "root directory of the project")
applyCmd.Flags().BoolVarP(&applyCmdFlags.offline, "offline", "", false, "disable gathering information and lookup functions")
applyCmd.Flags().StringVar(&applyCmdFlags.kubernetesVersion, "kubernetes-version", constants.DefaultKubernetesVersion, "desired kubernetes version to run")

applyCmd.Flags().BoolVar(&applyCmdFlags.dryRun, "dry-run", false, "check how the config change will be applied in dry-run mode")
Expand Down

0 comments on commit fb5737b

Please sign in to comment.