github.com/nikkelma/oras-project_oras-go@v1.1.1-0.20220201001104-a75f6a419090/testdata/charts/chartmuseum/templates/NOTES.txt (about)

     1  ** Please be patient while the chart is being deployed **
     2  
     3  Get the ChartMuseum URL by running:
     4  
     5  {{- if contains "NodePort" .Values.service.type }}
     6  
     7    export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "chartmuseum.fullname" . }})
     8    export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
     9    echo http://$NODE_IP:$NODE_PORT{{ .Values.env.open.CONTEXT_PATH }}/
    10  
    11  {{- else if contains "LoadBalancer" .Values.service.type }}
    12  
    13  ** Please ensure an external IP is associated to the {{ template "chartmuseum.fullname" . }} service before proceeding **
    14  ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "chartmuseum.fullname" . }} **
    15  
    16    export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "chartmuseum.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
    17    echo http://$SERVICE_IP:{{ .Values.service.externalPort }}{{ .Values.env.open.CONTEXT_PATH }}/
    18  
    19  OR
    20  
    21    export SERVICE_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "chartmuseum.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
    22    echo http://$SERVICE_HOST:{{ .Values.service.externalPort }}{{ .Values.env.open.CONTEXT_PATH }}/
    23  
    24  {{- else if contains "ClusterIP"  .Values.service.type }}
    25  
    26    export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "chartmuseum.name" . }}" -l "release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
    27    echo http://127.0.0.1:8080{{ .Values.env.open.CONTEXT_PATH }}/
    28    kubectl port-forward $POD_NAME 8080:8080 --namespace {{ .Release.Namespace }}
    29  
    30  {{- end }}