@@ -24,7 +24,7 @@ import (
24
24
25
25
"github.com/ghodss/yaml"
26
26
appsv1 "k8s.io/api/apps/v1"
27
-
"k8s.io/api/core/v1"
27
+
v1 "k8s.io/api/core/v1"
28
28
apierrors "k8s.io/apimachinery/pkg/api/errors"
29
29
"k8s.io/apimachinery/pkg/runtime"
30
30
"k8s.io/client-go/kubernetes/fake"
@@ -42,8 +42,8 @@ func TestDeployment(t *testing.T) {
42
42
expect string
43
43
imagePullPolicy v1.PullPolicy
44
44
}{
45
-
{"default", "", false, "gcr.io/kubernetes-helm/tiller:" + version.Version, "IfNotPresent"},
46
-
{"canary", "example.com/tiller", true, "gcr.io/kubernetes-helm/tiller:canary", "Always"},
45
+
{"default", "", false, "ghcr.io/helm/tiller:" + version.Version, "IfNotPresent"},
46
+
{"canary", "example.com/tiller", true, "ghcr.io/helm/tiller:canary", "Always"},
47
47
{"custom", "example.com/tiller:latest", false, "example.com/tiller:latest", "IfNotPresent"},
48
48
}
49
49
@@ -55,7 +55,7 @@ func TestDeployment(t *testing.T) {
55
55
56
56
// Unreleased versions of helm don't have a release image. See issue 3370
57
57
if tt.name == "default" && version.BuildMetadata == "unreleased" {
58
-
tt.expect = "gcr.io/kubernetes-helm/tiller:canary"
58
+
tt.expect = "ghcr.io/helm/tiller:canary"
59
59
}
60
60
if got := dep.Spec.Template.Spec.Containers[0].Image; got != tt.expect {
61
61
t.Errorf("%s: expected image %q, got %q", tt.name, tt.expect, got)
@@ -80,8 +80,8 @@ func TestDeploymentForServiceAccount(t *testing.T) {
80
80
imagePullPolicy v1.PullPolicy
81
81
serviceAccount string
82
82
}{
83
-
{"withSA", "", false, "gcr.io/kubernetes-helm/tiller:latest", "IfNotPresent", "service-account"},
84
-
{"withoutSA", "", false, "gcr.io/kubernetes-helm/tiller:latest", "IfNotPresent", ""},
83
+
{"withSA", "", false, "ghcr.io/helm/tiller:latest", "IfNotPresent", "service-account"},
84
+
{"withoutSA", "", false, "ghcr.io/helm/tiller:latest", "IfNotPresent", ""},
85
85
}
86
86
for _, tt := range tests {
87
87
opts := &Options{Namespace: v1.NamespaceDefault, ImageSpec: tt.image, UseCanary: tt.canary, ServiceAccount: tt.serviceAccount}
@@ -187,7 +187,7 @@ func TestSecretManifest(t *testing.T) {
187
187
}
188
188
189
189
func TestInstall(t *testing.T) {
190
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
190
+
image := "ghcr.io/helm/tiller:v2.0.0"
191
191
192
192
fc := &fake.Clientset{}
193
193
fc.AddReactor("create", "deployments", func(action testcore.Action) (bool, runtime.Object, error) {
@@ -234,7 +234,7 @@ func TestInstall(t *testing.T) {
234
234
}
235
235
236
236
func TestInstallHA(t *testing.T) {
237
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
237
+
image := "ghcr.io/helm/tiller:v2.0.0"
238
238
239
239
fc := &fake.Clientset{}
240
240
fc.AddReactor("create", "deployments", func(action testcore.Action) (bool, runtime.Object, error) {
@@ -257,7 +257,7 @@ func TestInstallHA(t *testing.T) {
257
257
}
258
258
259
259
func TestInstall_WithTLS(t *testing.T) {
260
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
260
+
image := "ghcr.io/helm/tiller:v2.0.0"
261
261
name := "tiller-secret"
262
262
263
263
fc := &fake.Clientset{}
@@ -332,7 +332,7 @@ func TestInstall_canary(t *testing.T) {
332
332
fc.AddReactor("create", "deployments", func(action testcore.Action) (bool, runtime.Object, error) {
333
333
obj := action.(testcore.CreateAction).GetObject().(*appsv1.Deployment)
334
334
i := obj.Spec.Template.Spec.Containers[0].Image
335
-
if i != "gcr.io/kubernetes-helm/tiller:canary" {
335
+
if i != "ghcr.io/helm/tiller:canary" {
336
336
t.Errorf("expected canary image, got '%s'", i)
337
337
}
338
338
return true, obj, nil
@@ -353,7 +353,7 @@ func TestInstall_canary(t *testing.T) {
353
353
}
354
354
355
355
func TestUpgrade(t *testing.T) {
356
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
356
+
image := "ghcr.io/helm/tiller:v2.0.0"
357
357
serviceAccount := "newServiceAccount"
358
358
existingDeployment, _ := generateDeployment(&Options{
359
359
Namespace: v1.NamespaceDefault,
@@ -394,7 +394,7 @@ func TestUpgrade(t *testing.T) {
394
394
}
395
395
396
396
func TestUpgrade_serviceNotFound(t *testing.T) {
397
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
397
+
image := "ghcr.io/helm/tiller:v2.0.0"
398
398
399
399
existingDeployment, _ := generateDeployment(&Options{
400
400
Namespace: v1.NamespaceDefault,
@@ -437,7 +437,7 @@ func TestUpgrade_serviceNotFound(t *testing.T) {
437
437
}
438
438
439
439
func TestUgrade_newerVersion(t *testing.T) {
440
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
440
+
image := "ghcr.io/helm/tiller:v2.0.0"
441
441
serviceAccount := "newServiceAccount"
442
442
existingDeployment, _ := generateDeployment(&Options{
443
443
Namespace: v1.NamespaceDefault,
@@ -497,7 +497,7 @@ func TestUgrade_newerVersion(t *testing.T) {
497
497
}
498
498
499
499
func TestUpgrade_identical(t *testing.T) {
500
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
500
+
image := "ghcr.io/helm/tiller:v2.0.0"
501
501
serviceAccount := "newServiceAccount"
502
502
existingDeployment, _ := generateDeployment(&Options{
503
503
Namespace: v1.NamespaceDefault,
@@ -538,7 +538,7 @@ func TestUpgrade_identical(t *testing.T) {
538
538
}
539
539
540
540
func TestUpgrade_canaryClient(t *testing.T) {
541
-
image := "gcr.io/kubernetes-helm/tiller:canary"
541
+
image := "ghcr.io/helm/tiller:canary"
542
542
serviceAccount := "newServiceAccount"
543
543
existingDeployment, _ := generateDeployment(&Options{
544
544
Namespace: v1.NamespaceDefault,
@@ -579,7 +579,7 @@ func TestUpgrade_canaryClient(t *testing.T) {
579
579
}
580
580
581
581
func TestUpgrade_canaryServer(t *testing.T) {
582
-
image := "gcr.io/kubernetes-helm/tiller:v2.0.0"
582
+
image := "ghcr.io/helm/tiller:v2.0.0"
583
583
serviceAccount := "newServiceAccount"
584
584
existingDeployment, _ := generateDeployment(&Options{
585
585
Namespace: v1.NamespaceDefault,
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4