Comments (7)
Chart testing runs as a container, so I wonder about the endpoint localhost:8080
. Unless localhost is actually both the host running docker as the container and hosting the k8s api endpoint it won't work.
One thing you can experiment with though is to keep the updated action version, but downgrade the ct image: https://github.com/helm/chart-testing-action/blob/master/README.md#L21 - to see if that changes anything.
from chart-testing-action.
localhost:8080
is the default in ~/.kube/config
up until 1.18. So this means [email protected]
is not using the custom kubeconfig I'm passing via --kubeconfig
and is using the default, which of course won't work.
I tested it with helm/[email protected]
and image: quay.io/helmpack/chart-testing:v3.0.0
and it fails with the below error. I tested it with helm/[email protected]
and image: quay.io/helmpack/chart-testing:v3.1.1
and it succeeds.
Run helm/[email protected]
with:
command: install
config: .github/ct-install.yaml
image: quay.io/helmpack/chart-testing:v3.0.0
kubeconfig: /tmp/output/kubeconfig-v1.17.4-k3s1.yaml
env:
KUBECONFIG: /tmp/output/kubeconfig-v1.17.4-k3s1.yaml
Running ct container...
48e699207b18c61aebbeec1df6857443cb2b938e34274ba1fd3931245772841a
Running 'ct install'...
Installing charts...
Using config file: /etc/ct/ct.yaml
Version increment checking disabled.
------------------------------------------------------------------------------------------------------------------------
Configuration
------------------------------------------------------------------------------------------------------------------------
Remote: origin
TargetBranch: master
Since: HEAD
BuildId:
LintConf: /etc/ct/lintconf.yaml
ChartYamlSchema: /etc/ct/chart_schema.yaml
ValidateMaintainers: false
ValidateChartSchema: false
ValidateYaml: false
CheckVersionIncrement: false
ProcessAllCharts: false
Charts: [charts/hedera-mirror]
ChartRepos: [bitnami=https://charts.bitnami.com/bitnami fluxcd=https://charts.fluxcd.io loki=https://grafana.github.io/loki/charts prometheus=https://prometheus-community.github.io/helm-charts traefik=https://helm.traefik.io/traefik]
ChartDirs: [charts]
ExcludedCharts: []
HelmExtraArgs:
HelmRepoExtraArgs: []
Debug: false
Upgrade: false
SkipMissingValues: false
Namespace:
ReleaseLabel: app.kubernetes.io/instance
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
Charts to be processed:
------------------------------------------------------------------------------------------------------------------------
hedera-mirror => (version: "0.7.0-alpha1", path: "charts/hedera-mirror")
------------------------------------------------------------------------------------------------------------------------
"bitnami" has been added to your repositories
"fluxcd" has been added to your repositories
"loki" has been added to your repositories
"prometheus" has been added to your repositories
"traefik" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "traefik" chart repository
...Successfully got an update from the "loki" chart repository
...Successfully got an update from the "fluxcd" chart repository
...Successfully got an update from the "prometheus" chart repository
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 5 charts
Downloading postgresql-ha from repo https://charts.bitnami.com/bitnami
Downloading redis from repo https://charts.bitnami.com/bitnami
Deleting outdated charts
Installing chart 'hedera-mirror => (version: "0.7.0-alpha1", path: "charts/hedera-mirror")'...
Installing chart with values file 'charts/hedera-mirror/ci/default-values.yaml'...
Creating namespace 'hedera-mirror-nc1x0zahxl'...
error: Missing or incomplete configuration info. Please point to an existing, complete config file:
1. Via the command-line flag --kubeconfig
2. Via the KUBECONFIG environment variable
3. In your home directory as ~/.kube/config
To view or setup config directly use the 'config' command.
========================================================================================================================
........................................................................................................................
==> Events of namespace hedera-mirror-nc1x0zahxl
........................................................................................................................
error: Missing or incomplete configuration info. Please point to an existing, complete config file:
1. Via the command-line flag --kubeconfig
2. Via the KUBECONFIG environment variable
3. In your home directory as ~/.kube/config
To view or setup config directly use the 'config' command.
Error printing details: Error waiting for process: exit status 1
Error printing logs: Error running process: exit status 1
Deleting release 'hedera-mirror-nc1x0zahxl'...
Error: Kubernetes cluster unreachable
Error deleting Helm release: Error waiting for process: exit status 1
So it seems the problem is located in chart-testing-action. Most likely due to the removal of the docker_exec sh -c 'mkdir -p /root/.kube'
in this commit?
from chart-testing-action.
Hm, the copy should copy the whole directory after that change, and not only the kubeconfig file - which was the reason for the change in #46 - how does the contents of the directory which "${{ steps.k8s.outputs.kubeconfig }}" reside in look like?
from chart-testing-action.
@steven-sheehy ping? any update - or did you get it to work?
from chart-testing-action.
No, it still doesn't work. I worked around it by downgrading to 1.0.0. Here's the ls output you requested:
Run ls -la "/tmp/output/kubeconfig-v1.17.4-k3s1.yaml"
-rw-rw-rw- 1 root root 1052 Oct 23 23:45 /tmp/output/kubeconfig-v1.17.4-k3s1.yaml
from chart-testing-action.
This should solve itself with v2.0.0 as it simply installs and makes ct
avail from PATH.
from chart-testing-action.
Closing this as it was fixed in v2.x
from chart-testing-action.
Related Issues (20)
- Document how to test charts that contains a CRD HOT 1
- No chart changes detected HOT 9
- gzip: stdin: not in gzip format
- The `changed` in step `list-changed` will always be true HOT 1
- Example in README.md does not work
- Script download wrong binary
- Add support for github.com authentication token
- failed to set up chart-testing with pip3 install failiure HOT 1
- Version 2.5.0? HOT 4
- Setting up a imagePullSecrets for a private github repo to fetch the Docker image HOT 2
- Unable to validate cosign version: 'v2.0.0' HOT 17
- v2.5.0 is giving an error of `targetBranch main does not exist` HOT 12
- Using helm-extra-args: --timeout 600s in config file causes "unknown flag" HOT 3
- v2 still points to v2.6.0 and not v2.6.1
- Option to use global Python install HOT 1
- Are there plans to create a security policy?
- directory is not a valid chart directory
- list-changed step result is not taken care of any other steps. How can I check what it returns?
- README: uses: helm/[email protected] HOT 1
- Please create a new release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart-testing-action.