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

Bug [3.0.0-rc2] bad character U+002D '-' #106

Open
SteelAlloy opened this issue Jan 17, 2025 · 2 comments
Open

Bug [3.0.0-rc2] bad character U+002D '-' #106

SteelAlloy opened this issue Jan 17, 2025 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@SteelAlloy
Copy link

SteelAlloy commented Jan 17, 2025

When installing the chart generated by Katenary, Helm throws the following error :

❯ katenary convert -c compose.yaml -o ./chart
❯ helm upgrade --install gitlab ./chart
Release "gitlab" does not exist. Installing it now.
Error: parse error at (gitlab/templates/gitlab-postgres/gitlab_postgres.volumeclaim.yaml:1): bad character U+002D '-'

Reproducible example :

compose.yaml

services:
  gitlab:
    image: gitlab/gitlab-ee:17.4.3-ee.0
    restart: always
    container_name: gitlab
    environment:
      GITLAB_ROOT_PASSWORD: "FbHwagnIboY8Rv"
      GITLAB_OMNIBUS_CONFIG: |
        # Add any other gitlab.rb configuration here, each on its own line
        external_url = 'http://git.127.0.0.1.nip.io';
        # Postgres
        postgresql['enable'] = false;
        gitlab_rails['db_adapter'] = 'postgresql';
        gitlab_rails['db_encoding'] = 'utf8';
        gitlab_rails['db_host'] = 'gitlab-postgres';
        gitlab_rails['db_port'] = 5432;
        gitlab_rails['db_username'] = 'gitlab';
        gitlab_rails['db_password'] = 'gitlab';
    ports:
      - '80:80'
      - '22:22'
    volumes:
      - 'gitlab_config:/etc/gitlab'
      - 'gitlab_logs:/var/log/gitlab'
      - 'gitlab_data:/var/opt/gitlab'
    shm_size: '256m'
    networks:
      - network
  gitlab-postgres:
    image: postgres:15
    container_name: gitlab-postgres
    environment:
      POSTGRES_USER: gitlab
      POSTGRES_PASSWORD: gitlab
      POSTGRES_DB: gitlabhq_production
    ports:
      - '5432:5432'
    shm_size: 128mb
    networks:
      - network
    volumes:
      - 'gitlab_postgres:/var/lib/postgresql/data'

networks:
  network:
    driver: bridge
    name: gitlab_network

volumes:
  gitlab_config:
  gitlab_logs:
  gitlab_data:
  gitlab_postgres:

katenary.yaml

# yaml-language-server: $schema=./katenary.schema.json

gitlab:
  main-app: true
  ingress:
    hostname: git.127.0.0.1.nip.io
    port: 80
  secrets:
    - GITLAB_ROOT_PASSWORD
    - GITLAB_OMNIBUS_CONFIG
  values:
    - GITLAB_ROOT_PASSWORD
    - GITLAB_OMNIBUS_CONFIG
postgres:
  ignore: false
@ElRaphik
Copy link

mentionned in comment in #74

@metal3d
Copy link
Owner

metal3d commented Jan 17, 2025

My god, this remaining problem is a pain in the...
I know where is the problem, will fix it tomorrow

@metal3d metal3d added the bug Something isn't working label Jan 17, 2025
@metal3d metal3d added this to the v3.0.0-rc3 milestone Jan 17, 2025
metal3d added a commit that referenced this issue Jan 19, 2025
See #106, I need to add a test on "same-pod" label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants