Sign inSign up

cenk1cenk2/pipe-kustomize

By cenk1cenk2

•Updated 39 minutes ago

Kustomize operations for pipelines.

Image
0

4.1K

cenk1cenk2/pipe-kustomize repository overview

⁠pipe-kustomize

Kustomize operations for CI pipelines.

pipe-kustomize [GLOBAL FLAGS] [COMMAND] [FLAGS]

⁠Global Flags

CLI

Flag / EnvironmentDescriptionTypeDefault
$LOG_LEVELDefine the log level for the application.string
enum("panic", "fatal", "warn", "info", "debug", "trace")
"info"
$ENV_FILEEnvironment files to inject.string[]

⁠Commands

⁠pipe-kustomize build

Build and validate Kustomize overlays.

pipe-kustomize build [FLAGS]

⁠Flags

Container Registry

Flag / EnvironmentDescriptionTypeDefault
$KUSTOMIZE_CONTAINER_LOGIN
$CONTAINER_LOGIN
Container registries to login to.string
format(yaml([]struct{ uri: string, username: string, password: string }))

GitLab Merge Request Report

Flag / EnvironmentDescriptionTypeDefault
$GITLAB_MR_REPORT_ENABLEDEnable GitLab merge request report note on the given merge request.boolfalse
$GL_PIPES_TOKENGitLab API token for merge request report notes.string
$CI_API_V4_URLGitLab API URL for merge request report notes.string
$CI_PROJECT_IDGitLab project id for merge request report notes.string
$CI_MERGE_REQUEST_IIDGitLab merge request iid for merge request report notes.int0
$GITLAB_MR_REPORT_IDENTIFIERHidden marker identifier for merge request report notes. Defaults to the job name combined with the stack or state under report.string
$CI_COMMIT_BRANCHBranch of the pipeline, whose merge requests merged into the commit are reported on when it is the default branch.string
$CI_DEFAULT_BRANCHDefault branch of the project, the only branch whose pipelines report on the merge requests merged into the commit.string
$GITLAB_MR_REPORT_DEPLOY_JOBName of the job in the pipeline that applies the plan, which the plan report on the merge requests merged into the commit links to run. Links the pipeline when empty or not found.string
$GITLAB_MR_REPORT_PLAN_JOBName of the job in the pipeline that planned what is applied, which the deploy report on the merge requests merged into the commit links to. Links the pipeline when empty or not found.string

GitLab Pipeline

Flag / EnvironmentDescriptionTypeDefault
$CI_JOB_NAMEGitLab CI job name to include in the plan report metadata.string
$CI_JOB_URLGitLab CI job URL to include in the plan report metadata.string
$CI_PIPELINE_IDGitLab CI pipeline id to include in the plan report metadata.string
$CI_PIPELINE_URLGitLab CI pipeline URL to include in the plan report metadata.string
$CI_COMMIT_SHAGit commit sha to include in the plan report metadata.string
$CI_COMMIT_SHORT_SHAShort git commit sha to include in the plan report metadata.string

Kustomize

Flag / EnvironmentDescriptionTypeDefault
$KUSTOMIZE_CWD
$KUSTOMIZE_ROOT
Working directory for kustomize commands.string"."
$KUSTOMIZE_PATHSExplicit overlay paths to build relative to the working directory.string[]

Kustomize Build

Flag / EnvironmentDescriptionTypeDefault
$KUSTOMIZE_BUILD_ENABLE_HELM
$KUSTOMIZE_ENABLE_HELM
Enable the Helm chart inflation generator while building overlays.booltrue
$KUSTOMIZE_BUILD_HELM_COMMAND
$KUSTOMIZE_HELM_COMMAND
Helm binary to use for the Helm chart inflation generator.string"helm"
$KUSTOMIZE_BUILD_LOAD_RESTRICTOR
$KUSTOMIZE_LOAD_RESTRICTOR
Restricts which files Kustomize may load, where lifting the restriction matches the behaviour of ArgoCD.string
format(enum("rootOnly", "none"))
"none"
$KUSTOMIZE_BUILD_KUBE_VERSION
$KUSTOMIZE_KUBE_VERSION
$KUBERNETES_VERSION
Kubernetes version passed to the Helm chart inflation generator.string
$KUSTOMIZE_BUILD_OUTPUTOutput directory to write the rendered manifests per overlay. Leave empty to skip writing.string
$KUSTOMIZE_BUILD_DIFF_BASE
$CI_MERGE_REQUEST_TARGET_BRANCH_SHA
$CI_MERGE_REQUEST_DIFF_BASE_SHA
Commit the overlays are rendered on again for the merge request report, which diffs the rendered manifests against it. A merged results pipeline compares against the target branch, any other merge request pipeline against the merge base.string

Plan Report

Flag / EnvironmentDescriptionTypeDefault
$PLAN_REPORT_LOG_ENABLEDWrite the plan report to the job log.booltrue

Tag summary

Content type

Image

Digest

sha256:7bcd7719d…

Size

45.5 MB

Last updated

39 minutes ago

docker pull cenk1cenk2/pipe-kustomize