Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hatchery): add support of private registry #4264

Merged
merged 5 commits into from
May 13, 2019
Merged

feat(hatchery): add support of private registry #4264

merged 5 commits into from
May 13, 2019

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented May 9, 2019

@@ -383,6 +383,16 @@ func (h *HatcheryKubernetes) SpawnWorker(ctx context.Context, spawnArgs hatchery
podSchema.Spec.HostAliases[0].Hostnames[0] = "worker"
}

// Check here to add secret if needed
secretName := spawnArgs.Model.Name + "-credreg"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
secretName := spawnArgs.Model.Name + "-credreg"
secretName := "cds-credreg-" + spawnArgs.Model.Name

Copy link
Collaborator

@sguiheux sguiheux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test of UpdateWorkerModel . on a worker model with private registry to check if password is not overwritten with ****** ?

@bnjjj bnjjj merged commit bf623af into master May 13, 2019
@fsamin fsamin deleted the feat_4228 branch May 24, 2019 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants