Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to test charts that contains a CRD #104

Open
edmondop opened this issue Dec 31, 2022 · 1 comment
Open

Document how to test charts that contains a CRD #104

edmondop opened this issue Dec 31, 2022 · 1 comment
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@edmondop
Copy link

Hi,

I am trying to test a chart that contains some Istio resources and the ct install action will fail. I have two options:

  1. install the Istio operator as a step in the CI/CD pipeline on the kind cluster before running the tests
  2. declare Istio as a dependency of this chart, but enable that only during execution of tests (the helm chart is meant to be used on a cluster where Istio is already installed)

As I tried to do 1. I wasn't able to retrieve the kubeconfig from the create-kind github action and pass it down:

      - name: Create kind cluster
        uses: helm/[email protected]
        # if: steps.list-changed.outputs.changed == 'true'

      - name: Install Istio
        uses: huang195/[email protected]
        with:
          # kubeconfig: "${{steps.kubeconfig.outputs.config}}"
          istio version: '1.6.3'

Am I following the right approach? Is the approach of declaring a test dependency the right one? How I should declare also a test CRD (an istio Gateway, for example?)

@cpanato cpanato added help wanted Extra attention is needed question Further information is requested labels Mar 24, 2023
@thisurawijesekera
Copy link

Hi @edmondop

Did you find a solution to test a chart which consists of CRD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants