diff --git a/Dockerfile b/Dockerfile index b7a5b21..5bcb5d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,8 @@ +FROM ubuntu:latest as base +RUN useradd -u 1001 merger + FROM scratch -ENTRYPOINT ["/kustomize-plugin-merger"] +COPY --from=base /etc/passwd /etc/passwd COPY kustomize-plugin-merger / +USER 1001 +ENTRYPOINT ["/kustomize-plugin-merger"] diff --git a/README.md b/README.md index 3ed3e08..57773d0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ A Kustomize generator plugin to merge YAML files seamlessly for real-world use c - [Why](#why) - [Features](#features) - [Options](#options) -- [Common use cases](#common-use-cases) +- [Examples](#examples) - [1. Generate multiple manifests from a single base](#1-generate-multiple-manifests-from-a-single-base) - [2. Merge non-manifest files and store them into ConfigMap or Secret](#2-merge-non-manifest-files-and-store-them-into-configmap-or-secret) - [3. Merge lists in manifests without schema or a unique identifier](#3-merge-lists-in-manifests-without-schema-or-a-unique-identifier) @@ -114,7 +114,7 @@ spec: ``` -## Common use cases +## Examples This section shows a couple of use cases where Merger can help. diff --git a/examples/long-omni-manifest/README.md b/examples/long-omni-manifest/README.md index d280619..1429c21 100644 --- a/examples/long-omni-manifest/README.md +++ b/examples/long-omni-manifest/README.md @@ -136,7 +136,7 @@ spec: ## Build ```shell -kustomize build --enable-alpha-plugins --as-current-user . +kustomize build --enable-alpha-plugins . ``` ## Output diff --git a/examples/manifest-lists-without-schema/README.md b/examples/manifest-lists-without-schema/README.md index 6e602de..8ee6e58 100644 --- a/examples/manifest-lists-without-schema/README.md +++ b/examples/manifest-lists-without-schema/README.md @@ -100,7 +100,7 @@ spec: ## Build ```shell -kustomize build --enable-alpha-plugins --as-current-user . +kustomize build --enable-alpha-plugins . ``` ## Output diff --git a/examples/multiple-manifests-from-single-file/README.md b/examples/multiple-manifests-from-single-file/README.md index 144223e..0558f5f 100644 --- a/examples/multiple-manifests-from-single-file/README.md +++ b/examples/multiple-manifests-from-single-file/README.md @@ -150,7 +150,7 @@ spec: ## Build ```shell -kustomize build --enable-alpha-plugins --as-current-user . +kustomize build --enable-alpha-plugins . ``` ## Output diff --git a/examples/non-manifest-into-configmap-or-secret/README.md b/examples/non-manifest-into-configmap-or-secret/README.md index 47098b6..e9813e0 100644 --- a/examples/non-manifest-into-configmap-or-secret/README.md +++ b/examples/non-manifest-into-configmap-or-secret/README.md @@ -94,7 +94,7 @@ spec: ## Build ```shell -kustomize build --enable-alpha-plugins --as-current-user . +kustomize build --enable-alpha-plugins . ``` ## Output