kongctl patch 명령
이 문서는 kongctl CLI에서 파일을 패치할 때 사용하는 kongctl patch 명령을 소개해요. kongctl patch file 하위 명령을 이용하면 YAML이나 JSON 파일에 패치를 적용할 수 있고, 인라인 플래그로 값을 설정하거나 별도의 패치 파일을 지정하는 방법도 제공돼요. 표준 입력으로 내용을 받아 파일로 출력하는 예시와 함께, 출력 형식이나 로그 레벨 같은 주요 플래그 옵션도 정리되어 있으니 명령 사용 전에 참고하면 좋아요
출처: 문서
본문
kongctl patch file
설명: 파일에서 패치를 적용해요.
명령어 사용법
Usage:
kongctl patch [flags]
kongctl patch [command]
Aliases:
patch, p
Examples:
# Set a value on all services using inline flags
kongctl patch file input.yaml -s '$..services[*]' -v 'read_timeout:30000'
# Apply a patch file
kongctl patch file input.yaml patches.yaml
# Read from stdin, write to a file
cat input.yaml | kongctl patch file - -s '$' -v 'version:"2.0"' --output-file output.yaml
Available Commands:
file Apply patches to a YAML or JSON file
Flags:
--color-theme string Configures the CLI UI/theme (prompt, tables, TUI elements).
- Config path: [ color-theme ]
- Examples : [ auto, 3024_day, 3024_night, aardvark_blue, abernathy ]
- Reference : [ https://github.com/lrstanley/bubbletint/blob/master/DEFAULT_TINTS.md ] (default "auto")
--config-file string Path to the configuration file to load.
- Environment variable: KONGCTL_CONFIG_FILE (overridden by this flag)
- Default: [ $XDG_CONFIG_HOME/kongctl/config.yaml ]
-h, --help help for patch
--log-file string Write execution logs to the specified file instead of STDERR.
- Config path: [ log-file ]
--log-level string Configures the logging level. Execution logs are written to STDERR.
- Config path: [ log-level ]
- Allowed : [ trace|debug|info|warn|error ] (default "error")
--no-telemetry Disable telemetry for this command invocation. Overrides config and env.
- Config path: [ telemetry.enabled ]
- Env var : [ KONGCTL_NO_TELEMETRY ]
- Default : [ false ]
--no-trunc Preserve full cell widths in static text tables beyond terminal width.
Does not change column selection, UUID formatting, or explicit string slices.
- Config path: [ text.no-trunc ]
- Default : [ false ]
-o, --output string Configures the format of data written to STDOUT.
- Config path: [ output ]
- Allowed : [ json|yaml|text ] (default "text")
-p, --profile string Specify the profile to use for this command. (default "default")
--text-id-format string Configure UUID rendering in static text-table ID columns.
- Config path: [ text.id-format ]
- Allowed : [ compact|full ]
- Default : [ compact ]
--text-layout string Configure static text-table column selection.
- Config path: [ text.layout ]
- Allowed : [ compact|auto|wide ]
- Default : [ compact ]
Use "kongctl patch [command] --help" for more information about a command.
관련 리소스
더 알아보기 (Learn more)
- 파일에 패치를 적용하는 하위 명령의 상세 사용법을 확인할 수 있어요 — kongctl patch file
- kongctl로 선언형 구성을 다루는 방법을 알 수 있어요 — Declarative configuration with kongctl
- kongctl의 기본 사용법부터 시작하는 방법을 배울 수 있어요 — Get started with kongctl