Skip to content

Set yaml-multiline-string-style to literal in default settings#152

Merged
ademariag merged 2 commits intokapicorp:copierfrom
Moep90:feat/yaml-literal-block-default
Nov 28, 2025
Merged

Set yaml-multiline-string-style to literal in default settings#152
ademariag merged 2 commits intokapicorp:copierfrom
Moep90:feat/yaml-literal-block-default

Conversation

@Moep90
Copy link
Copy Markdown
Contributor

@Moep90 Moep90 commented Nov 24, 2025

After init, the initial result for the echo-server-config.yml looks like this:

apiVersion: v1
data:
  echo-service.conf: |-
    # A configuration file
    example: True
  nginx.conf: |
    server {
       listen       80;
       server_name  localhost;
       location / {
           proxy_pass  http://localhost:8080/;
       }
       error_page   500 502 503 504  /50x.html;
       location = /50x.html {
           root   /usr/share/nginx/html;
       }
    }
  simple_config: not mounted
kind: ConfigMap
metadata:
  annotations: {}
  labels:
    app.kapicorp.dev/component: echo-server
    name: echo-server
  name: echo-server-88d0d989
  namespace: echo-server

instead of:

apiVersion: v1
data:
  echo-service.conf: "# A configuration file\nexample: True"
  nginx.conf: "server {\n   listen       80;\n   server_name  localhost;\n   location\
    \ / {\n       proxy_pass  http://localhost:8080/;\n   }\n   error_page   500 502\
    \ 503 504  /50x.html;\n   location = /50x.html {\n       root   /usr/share/nginx/html;\n\
    \   }\n}\n"
  simple_config: not mounted
kind: ConfigMap
metadata:
  annotations: {}
  labels:
    app.kapicorp.dev/component: echo-server
    name: echo-server
  name: echo-server-88d0d989
  namespace: echo-server

@ademariag
Copy link
Copy Markdown
Contributor

I think we can also change the actual default value

@Moep90
Copy link
Copy Markdown
Contributor Author

Moep90 commented Nov 24, 2025

I think we can also change the actual default value

I created a PR to do so: kapicorp/kapitan#1361

@ademariag ademariag merged commit 82b950c into kapicorp:copier Nov 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants