Skip to content

Commit 9bb54d2

Browse files
committed
minor fixes
1 parent 638bf02 commit 9bb54d2

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/services/gardener/infrabox-service-garden/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
env:
3535
- name: WATCH_NAMESPACE
3636
value: infrabox-worker
37-
- name: CRENDENTIALS_SECRET
37+
- name: CREDENTIALS_SECRET
3838
value: {{ .Values.gardener.credential_secret }}
3939
- name: GARDENER_NAMESPACE
4040
value: {{ .Values.gardener.namespace }}

src/services/gardener/pkg/stub/shootOperations/shoot_operator.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package shootOperations
33
import (
44
"bytes"
55
"fmt"
6-
"net/url"
76
"os"
87
"time"
98

@@ -187,14 +186,7 @@ func extractEndpoint(s *corev1.Secret) []byte {
187186
return nil
188187
}
189188

190-
// Host actually contains more than just the host (e.g. "https://api.ib-4vv1fnky91j.datahub.shoot.canary.k8s-hana.ondemand.com") -> parse it
191-
u, err := url.Parse(cfg.Host)
192-
if err != nil {
193-
logrus.Errorf("gardener returned invalid url as host in kubeconfig: %s. err: %s", u.Host, err.Error())
194-
return nil
195-
}
196-
197-
return []byte(u.Host)
189+
return []byte(cfg.Host)
198190
}
199191

200192
func setShootClusterCrAsOwner(shootCluster *v1alpha1.ShootCluster, secret *corev1.Secret) {

0 commit comments

Comments
 (0)