mirror of https://github.com/kubernetes/kops.git
Merge pull request #15927 from justinsb/fix_some_comments
fix some comments
This commit is contained in:
commit
0b87f7f2bf
|
|
@ -156,8 +156,8 @@ func (a *AssetBuilder) RemapImage(image string) (string, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(image, "registry.k8s.io/kops/kops-controller:") {
|
if strings.HasPrefix(image, "k8s.gcr.io/kops/kops-controller:") || strings.HasPrefix(image, "registry.k8s.io/kops/kops-controller:") {
|
||||||
// To use user-defined DNS Controller:
|
// To use user-defined kops Controller:
|
||||||
// 1. DOCKER_REGISTRY=[your docker hub repo] make kops-controller-push
|
// 1. DOCKER_REGISTRY=[your docker hub repo] make kops-controller-push
|
||||||
// 2. export KOPSCONTROLLER_IMAGE=[your docker hub repo]
|
// 2. export KOPSCONTROLLER_IMAGE=[your docker hub repo]
|
||||||
// 3. make kops and create/apply cluster
|
// 3. make kops and create/apply cluster
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ type TruncateStringOptions struct {
|
||||||
HashLength int
|
HashLength int
|
||||||
}
|
}
|
||||||
|
|
||||||
// TruncateString will attempt to truncate a string to a max, adding a prefix to avoid collisions.
|
// TruncateString will attempt to truncate a string to a max length, adding a suffix to avoid collisions.
|
||||||
// Will never return a string longer than maxLength chars
|
// Will never return a string longer than maxLength chars
|
||||||
func TruncateString(s string, opt TruncateStringOptions) string {
|
func TruncateString(s string, opt TruncateStringOptions) string {
|
||||||
if opt.MaxLength == 0 {
|
if opt.MaxLength == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue