kyverno jp function
kyverno jp function (JMESPath 함수 정보 조회)
kyverno jp function은 Kyverno CLI가 지원하는 JMESPath 함수 정보를 조회하는 명령이에요. Kyverno는 표준 JMESPath에 자체 커스텀 함수를 더해서 확장했기 때문에, 어떤 함수가 존재하는지 시그니처가 어떻게 되는지 CLI 안에서 바로 확인할 수 있으면 정책을 작성할 때 추측이 줄어들어요. 함수 이름을 인자로 넘기면 그 함수의 정보를, 인자 없이 실행하면 함수 목록 전체를 보여줘요.
출처: 문서
본문
개요 (Synopsis)
함수 정보를 제공해요.
kyverno jp function [function_name]... [flags]
예시 (Examples)
# List functions
kyverno jp function
# Get function infos
kyverno jp function truncate
첫 예시는 인자 없이 실행해서 사용 가능한 함수 목록을 출력하는 방식이고, 둘째 예시는 truncate 함수 하나의 정보를 조회하는 방식이에요. 함수 이름은 여러 개를 나열할 수 있어요.
옵션 (Options)
-h, --help help for function
상위 명령에서 상속되는 옵션 (Options inherited from parent commands)
--add_dir_header If true, adds the file directory to the header of the log messages
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
--alsologtostderrthreshold severity logs at or above this threshold go to stderr when -alsologtostderr=true (no effect when -logtostderr=true)
--kubeconfig string Paths to a kubeconfig. Only required if out-of-cluster.
--legacy_stderr_threshold_behavior If true, stderrthreshold is ignored when logtostderr=true (legacy behavior). If false, stderrthreshold is honored even when logtostderr=true (default true)
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
--skip_headers If true, avoid header prefixes in the log messages
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true unless -legacy_stderr_threshold_behavior=false) (default 2)
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
더 알아보기 (Learn more)
- kyverno jp — Kyverno 고유 커스텀 함수로 확장된 JMESPath 명령줄 인터페이스를 제공해요.