Skip to content

Commit 0e145f5

Browse files
committed
fix: add ensure_pull_secrets to init
1 parent f82606f commit 0e145f5

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

cmd/init.go

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -506,15 +506,17 @@ echo 'Anyone using this project can invoke it via "devspace run migrate-db"'`,
506506
// Add pipeline: dev
507507
config.Pipelines["dev"] = &latest.Pipeline{
508508
Run: `run_dependencies --all # 1. Deploy any projects this project needs (see "dependencies")
509-
create_deployments --all # 2. Deploy Helm charts and manifests specfied as "deployments"
510-
start_dev ` + imageName + ` # 3. Start dev mode "` + imageName + `" (see "dev" section)`,
509+
ensure_pull_secrets --all # 2. Ensure pull secrets
510+
create_deployments --all # 3. Deploy Helm charts and manifests specfied as "deployments"
511+
start_dev ` + imageName + ` # 4. Start dev mode "` + imageName + `" (see "dev" section)`,
511512
}
512513

513514
// Add pipeline: dev
514515
config.Pipelines["deploy"] = &latest.Pipeline{
515516
Run: `run_dependencies --all # 1. Deploy any projects this project needs (see "dependencies")
516-
build_images --all -t $(git describe --always) # 2. Build, tag (git commit hash) and push all images (see "images")
517-
create_deployments --all # 3. Deploy Helm charts and manifests specfied as "deployments"`,
517+
ensure_pull_secrets --all # 2. Ensure pull secrets
518+
build_images --all -t $(git describe --always) # 3. Build, tag (git commit hash) and push all images (see "images")
519+
create_deployments --all # 4. Deploy Helm charts and manifests specfied as "deployments"`,
518520
}
519521

520522
// Save config
@@ -661,19 +663,6 @@ func annotateConfig(configPath string) error {
661663
# tag: v1.0.0
662664
# ui:
663665
# path: ./ui # Path-based dependencies (for monorepos)
664-
`)...)
665-
666-
annotatedConfig = append(annotatedConfig, []byte(`
667-
# Customize local registry settings
668-
# localRegistry:
669-
# enabled: true # Always use local registry, remove to only use the local registry when required
670-
# name: registry
671-
# namespace: ${devspace.namespace} # Uses the current kube context's namespace (can be removed)
672-
# image: registry:2.8.1
673-
# port: 5000
674-
# persistence:
675-
# enabled: false
676-
# size: 5Gi
677666
`)...)
678667

679668
err = os.WriteFile(configPath, annotatedConfig, os.ModePerm)
@@ -784,7 +773,7 @@ func (cmd *InitCmd) addDevConfig(config *latest.Config, imageName, image string,
784773
Command: "helm",
785774
},
786775
{
787-
Command: "git",
776+
GitCredentials: true,
788777
},
789778
}...)
790779

0 commit comments

Comments
 (0)