Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.

Commit dae79b5

Browse files
authored
Merge pull request #4 from keptn/patch/cleanup-keptn-domain
Cleanup keptn-domain leftovers
2 parents 6fccb3c + 21b4497 commit dae79b5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pkg/kubernetes-utils.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -260,21 +260,6 @@ func GetClientset(useInClusterConfig bool) (*kubernetes.Clientset, error) {
260260
return kubernetes.NewForConfig(config)
261261
}
262262

263-
// GetKeptnDomain reads the configmap keptn-domain in namespace keptn and returns
264-
// the contained app_domain
265-
func GetKeptnDomain(useInClusterConfig bool) (string, error) {
266-
api, err := GetKubeAPI(useInClusterConfig)
267-
if err != nil {
268-
return "", err
269-
}
270-
271-
cm, err := api.ConfigMaps("keptn").Get("keptn-domain", metav1.GetOptions{})
272-
if err != nil {
273-
return "", err
274-
}
275-
return cm.Data["app_domain"], nil
276-
}
277-
278263
// CreateNamespace creates a new Kubernetes namespace with the provided name
279264
func CreateNamespace(useInClusterConfig bool, namespace string) error {
280265

0 commit comments

Comments
 (0)