tutor icon indicating copy to clipboard operation
tutor copied to clipboard

kustomization.yml in env folder is not standard yaml format——tutor version 13.3.1

Open afutureboss opened this issue 3 years ago • 2 comments

Bug description

configMapGenerator:
- name: caddy-config
  files:
  - apps/caddy/Caddyfile
  options:
    labels:
           app.kubernetes.io/name: caddy
- name: openedx-settings-lms
  files:
  - apps/openedx/settings/lms/__init__.py
  - apps/openedx/settings/lms/development.py
  - apps/openedx/settings/lms/production.py
  - apps/openedx/settings/lms/test.py
  options:
    labels:
           app.kubernetes.io/name: openedx
- name: openedx-settings-cms
  files:
  - apps/openedx/settings/cms/__init__.py
  - apps/openedx/settings/cms/development.py
  - apps/openedx/settings/cms/production.py
  - apps/openedx/settings/cms/test.py
  options:
    labels:
           app.kubernetes.io/name: openedx
- name: openedx-config
  files:
  - apps/openedx/config/cms.env.json
  - apps/openedx/config/lms.env.json
  options:
    labels:
           app.kubernetes.io/name: openedx
- name: redis-config
  files:
  - apps/redis/redis.conf
  options:
    labels:
          app.kubernetes.io/name: redis

How to reproduce there is 4 indent on configMapGenerator->options->labels->...... which will lead kubectl apply errror "json: unknown field "options""

Environment tutor version 13.3.1

Additional context

afutureboss avatar Aug 09 '22 02:08 afutureboss

I am not able to reproduce your issue.

  1. Please paste the output of make test-k8s.
  2. What is the output of kubectl version?
  3. Did you manage to fix the issue by removing the extra spaces?

regisb avatar Sep 08 '22 09:09 regisb

@afutureboss did you see my questions above?

regisb avatar Sep 30 '22 10:09 regisb

@afutureboss did you see my questions above?

thanks very much for reply we choose other way around and worked

afutureboss avatar Oct 27 '22 08:10 afutureboss

Right, I understand that you found a solution that works for yourself, but do you think that there is a bug that might affect other people?

regisb avatar Oct 28 '22 08:10 regisb

Closed for lack of response by OP.

regisb avatar Nov 15 '22 08:11 regisb