Skip to content

Commit

Permalink
Don't check for dynamic config when listing images
Browse files Browse the repository at this point in the history
There's no --enable-dynamic-config flag for k0s airgap list-images:

$ k0s airgap list-images --enable-dynamic-config
Error: unknown flag: --enable-dynamic-config

Fixes: 1e5e6b6 ("Disable airgap list-images for dynamic config")
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Dec 9, 2024
1 parent bee87e5 commit b83ce67
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/airgap/listimages.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package airgap

import (
"errors"
"fmt"

"github.com/k0sproject/k0s/pkg/airgap"
Expand All @@ -39,10 +38,6 @@ func NewAirgapListImagesCmd() *cobra.Command {
return err
}

if opts.EnableDynamicConfig {
return errors.New("dynamic config is not supported for airgap list-images")
}

clusterConfig, err := opts.K0sVars.NodeConfig()
if err != nil {
return fmt.Errorf("failed to get config: %w", err)
Expand Down

0 comments on commit b83ce67

Please sign in to comment.