Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

fix: fixingTestAPIConnection: fixing the test-api-connection yaml whe… #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OmarNour14
Copy link

Description:

When deploying the helm service with the latest version. And setting the remoteControlPlane.Enabled value = true
The helm-service deployment fails.

Error Message:

Error: INSTALLATION FAILED: template: helm-service/templates/tests/test-api-connection.yaml:6:14: executing "helm-service/templates/tests/test-api-connection.yaml" at <include "keptn.common.labels.standard" .>: error calling include: template: no template "keptn.common.labels.standard" associated with template "gotpl"

Steps to re-produce the error

  1. $ HELM_SERVICE_VERSION=0.18.1
  2. $ helm install helm-service https://github.com/keptn-contrib/helm-service/releases/download/$HELM_SERVICE_VERSION/helm-service-$HELM_SERVICE_VERSION.tgz -n keptn --create-namespace --set remoteControlPlane.enabled=true --set remoteControlPlane.api.hostname="<HOST_NAME>" --set remoteControlPlane.api.token=<API_KEY>

Cause

I've noticed that the test-api-connection.yaml is using {{- include "keptn.common.labels.standard" . | nindent 4 }}
and the template file containing the "keptn.common.labels.standard" template is not present

Fix

  • Adding the common template
  • Replacing {{- include "keptn.common.labels.standard" . | nindent 4 }} with {{- include "helm-service.labels" . | nindent 4 }}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant