[auto-devops] chart folder ignored

Hi all,
I am using GitLab Sass version. As detailed here,
I am trying to use auto-devops to deploy my app using a custom chart. However, the chart folder is completely ignored.

Here the structure of my simple project:

❯ ls -l
total 16
-rw-r--r--   1 sdicola  staff  145 22 Aug 08:48 Dockerfile
-rw-r--r--   1 sdicola  staff  240 20 Aug 08:05 README.md
drwxr-xr-x  11 sdicola  staff  352 10 Sep 16:32 charts/
drwxr-xr-x   8 sdicola  staff  256 10 Sep 13:55 charts_old/
drwxr-xr-x  15 sdicola  staff  480 20 Aug 08:05 docs/
drwxr-xr-x  12 sdicola  staff  384 20 Aug 09:03 website/

and here the content of the chart folder:

❯ ls -l
total 72
-rw-r--r--   1 sdicola  staff  2154  9 Sep 19:44 CONTRIBUTING.md
-rw-r--r--   1 sdicola  staff   219 10 Sep 16:32 Chart.yaml
-rw-r--r--   1 sdicola  staff  1046  9 Sep 19:44 LICENSE
-rw-r--r--   1 sdicola  staff  9186 10 Sep 13:55 README.md
-rw-r--r--   1 sdicola  staff   241  9 Sep 19:44 requirements.lock
-rw-r--r--   1 sdicola  staff   158  9 Sep 19:44 requirements.yaml
drwxr-xr-x  14 sdicola  staff   448 10 Sep 13:52 templates/
drwxr-xr-x   6 sdicola  staff   192 10 Sep 13:52 test/
-rw-r--r--   1 sdicola  staff  2460 10 Sep 15:13 values.yaml

Here you can see the deployment GitLab generates:

❯ k describe deployment staging -n document-site-21055437-staging
Name: staging
Namespace: document-site-21055437-staging
CreationTimestamp: Thu, 10 Sep 2020 16:08:18 +0100
Labels: app=staging
Annotations: app.gitlab.com/app: property-xyz-documentation-document-site
app.gitlab.com/env: staging
deployment.kubernetes.io/revision: 1
Selector: app=staging,release=staging,tier=web,track=stable
Replicas: 1 desired | 1 updated | 1 total | 0 available | 1 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=staging
Annotations: app.gitlab.com/app: property-xyz-documentation-document-site
app.gitlab.com/env: staging
checksum/application-secrets: 74d426d39218353fc3906293068df9326c2cc71a5b5891d1f5a641718fc9fa66
Image: registry.gitlab.com/property-xyz/documentation/document-site/master:7b3e25215bcbe94d6fc5c65ee7da3eb22ce1d153
Port: 5000/TCP
Host Port: 0/TCP
Liveness: http-get http://:5000/ delay=15s timeout=15s period=10s #success=1 #failure=3
Readiness: http-get http://:5000/ delay=5s timeout=3s period=10s #success=1 #failure=3
Environment Variables from:
staging-secret Secret Optional: false
DATABASE_URL: postgres://user:testing-password@staging-postgresql:5432/staging
GITLAB_ENVIRONMENT_URL: [http://property-xyz-documentation-document-site-staging.lab.property.xyz](http://property-xyz-documentation-document-site-staging.lab.property.xyz/)
Mounts: <none>
Volumes: <none>
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing True ReplicaSetUpdated
OldReplicaSets: <none>
NewReplicaSet: staging-7d797c8f98 (1/1 replicas created)
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ScalingReplicaSet 16s deployment-controller Scaled up replica set staging-7d797c8f98 to 1

you can see that is using the default auto-deploy-app-1.0.3.

Here the content of my Chart.yaml file:

apiVersion: v1
description: GitLab's Auto-deploy Helm Chart
name: docs-deploy-app
version: 1.0.0
icon: https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo-square.png

In order to make it work, I have used the approach described here and I was able to override some default values.

Any idea why is ignoring the chart folder? I am confused.

My lord! Just figured while I was writing this that my folder is called charts and not chart. Wanna cry :smile:

Hope this post would help someone having the same problem.

1 Like

Don’t cry @simone.dicola :slight_smile: Thanks for coming back to post your solution!