Skip to content

Commit

Permalink
handle microk8s
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-mccoy committed Feb 8, 2022
1 parent 3db45b2 commit e208597
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/internal/packager/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func preSeedRegistry(tempPath tempPaths) {
clusterName := getClusterName("k3d")
state.Registry.SeedType = config.ZarfSeedTypeCLIInject
inject.command = "k3d"
inject.args = []string{"image", "import", tempPath.seedImages, "--cluster", clusterName}
inject.args = []string{"images", "import", tempPath.seedImages, "--cluster", clusterName}

case k8s.DistroIsKind:
state.StorageClass = "standard"
Expand All @@ -155,6 +155,11 @@ func preSeedRegistry(tempPath tempPaths) {
inject.command = "docker"
inject.args = []string{"load", "-i", tempPath.seedImages}

case k8s.DistroIsMicroK8s:
state.Registry.SeedType = config.ZarfSeedTypeCLIInject
inject.command = "microk8s"
inject.args = []string{"ctr", "images", "import", tempPath.seedImages}

default:
state.Registry.SeedType = config.ZarfSeedTypeRuntimeRegistry
}
Expand Down

0 comments on commit e208597

Please sign in to comment.