mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
update go 1.22.7
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
run:
|
run:
|
||||||
deadline: 5m
|
deadline: 5m
|
||||||
go: '1.21'
|
go: '1.22'
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/api
|
module sigs.k8s.io/kustomize/api
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/blang/semver/v4 v4.0.0
|
github.com/blang/semver/v4 v4.0.0
|
||||||
|
|||||||
@@ -1,29 +1,33 @@
|
|||||||
# Running Configuration Functions using kustomize CLI
|
# Running Configuration Functions using kustomize CLI
|
||||||
|
|
||||||
Configuration functions can be implemented using any toolchain and invoked using any
|
Configuration functions can be implemented using any toolchain and invoked using
|
||||||
container workflow orchestrator including Tekton, Cloud Build, or run directly using `docker run`.
|
any container workflow orchestrator including Tekton, Cloud Build, or run
|
||||||
|
directly using `docker run`.
|
||||||
|
|
||||||
Run `config help docs-fn-spec` to see the Configuration Functions Specification.
|
Run `config help docs-fn-spec` to see the Configuration Functions Specification.
|
||||||
|
|
||||||
`kustomize fn run` is an example orchestrator for invoking Configuration Functions. This
|
`kustomize fn run` is an example orchestrator for invoking Configuration
|
||||||
document describes how to implement and invoke an example function.
|
Functions. This document describes how to implement and invoke an example
|
||||||
|
function.
|
||||||
|
|
||||||
## Example Function Implementation
|
## Example Function Implementation
|
||||||
|
|
||||||
Following is an example for implementing an nginx abstraction using a configuration
|
Following is an example for implementing an nginx abstraction using a
|
||||||
function.
|
configuration function.
|
||||||
|
|
||||||
### `nginx-template.sh`
|
### `nginx-template.sh`
|
||||||
|
|
||||||
`nginx-template.sh` is a simple bash script which uses a _heredoc_ as a templating solution
|
`nginx-template.sh` is a simple bash script which uses a _heredoc_ as a
|
||||||
for generating Resources from the functionConfig input fields.
|
templating solution for generating Resources from the functionConfig input
|
||||||
|
fields.
|
||||||
|
|
||||||
The script wraps itself using `config run wrap -- $0` which will:
|
The script wraps itself using `config run wrap -- $0` which will:
|
||||||
|
|
||||||
1. Parse the `ResourceList.functionConfig` (provided to the container stdin) into env vars
|
1. Parse the `ResourceList.functionConfig` (provided to the container stdin)
|
||||||
|
into env vars
|
||||||
2. Merge the stdout into the original list of Resources
|
2. Merge the stdout into the original list of Resources
|
||||||
3. Defaults filenames for newly generated Resources (if they are not set as annotations)
|
3. Defaults filenames for newly generated Resources (if they are not set as
|
||||||
to `config/NAME_KIND.yaml`
|
annotations) to `config/NAME_KIND.yaml`
|
||||||
4. Format the output
|
4. Format the output
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -82,10 +86,11 @@ End-of-message
|
|||||||
|
|
||||||
### Dockerfile
|
### Dockerfile
|
||||||
|
|
||||||
`Dockerfile` installs `kustomize fn` and copies the script into the container image.
|
`Dockerfile` installs `kustomize fn` and copies the script into the container
|
||||||
|
image.
|
||||||
|
|
||||||
```
|
```
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
RUN go get sigs.k8s.io/kustomize/cmd/config
|
RUN go get sigs.k8s.io/kustomize/cmd/config
|
||||||
RUN mv /go/bin/config /usr/bin/config
|
RUN mv /go/bin/config /usr/bin/config
|
||||||
COPY nginx-template.sh /usr/bin/nginx-template.sh
|
COPY nginx-template.sh /usr/bin/nginx-template.sh
|
||||||
@@ -94,7 +99,8 @@ CMD ["nginx-template.sh]
|
|||||||
|
|
||||||
## Example Function Usage
|
## Example Function Usage
|
||||||
|
|
||||||
Following is an example of running the `kustomize fn run` using the preceding API.
|
Following is an example of running the `kustomize fn run` using the preceding
|
||||||
|
API.
|
||||||
|
|
||||||
When run by `kustomize fn run`, functions are run in containers with the
|
When run by `kustomize fn run`, functions are run in containers with the
|
||||||
following environment:
|
following environment:
|
||||||
@@ -102,12 +108,14 @@ following environment:
|
|||||||
- Network: `none`
|
- Network: `none`
|
||||||
- User: `nobody`
|
- User: `nobody`
|
||||||
- Security Options: `no-new-privileges`
|
- Security Options: `no-new-privileges`
|
||||||
- Volumes: the volume containing the `functionConfig` yaml is mounted under `/local` as `ro`
|
- Volumes: the volume containing the `functionConfig` yaml is mounted under
|
||||||
|
`/local` as `ro`
|
||||||
|
|
||||||
### Input
|
### Input
|
||||||
|
|
||||||
`dir/nginx.yaml` contains a reference to the Function. The contents of `nginx.yaml`
|
`dir/nginx.yaml` contains a reference to the Function. The contents of
|
||||||
are passed to the Function through the `ResourceList.functionConfig` field.
|
`nginx.yaml` are passed to the Function through the
|
||||||
|
`ResourceList.functionConfig` field.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: example.com/v1beta1
|
apiVersion: example.com/v1beta1
|
||||||
@@ -123,9 +131,10 @@ spec:
|
|||||||
replicas: 5
|
replicas: 5
|
||||||
```
|
```
|
||||||
|
|
||||||
- `annotations[config.kubernetes.io/function].container.image`: the image to use for this API
|
- `annotations[config.kubernetes.io/function].container.image`: the image to use
|
||||||
- `annotations[config.kubernetes.io/local-config]`: mark this as not a Resource that should
|
for this API
|
||||||
be applied
|
- `annotations[config.kubernetes.io/local-config]`: mark this as not a Resource
|
||||||
|
that should be applied
|
||||||
|
|
||||||
### Output
|
### Output
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/config
|
module sigs.k8s.io/kustomize/cmd/config
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/go-errors/errors v1.4.2
|
github.com/go-errors/errors v1.4.2
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerconfig
|
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerconfig
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerenvgenerator
|
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerenvgenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainer-render-helm-chart
|
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainer-render-helm-chart
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainersimplegenerator
|
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainersimplegenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
require sigs.k8s.io/kustomize/kyaml v0.14.2
|
||||||
|
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ The script wraps itself using ` + "`" + `config run wrap -- $0` + "`" + ` which
|
|||||||
|
|
||||||
` + "`" + `Dockerfile` + "`" + ` installs ` + "`" + `kustomize fn` + "`" + ` and copies the script into the container image.
|
` + "`" + `Dockerfile` + "`" + ` installs ` + "`" + `kustomize fn` + "`" + ` and copies the script into the container image.
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
RUN go get sigs.k8s.io/kustomize/cmd/config
|
RUN go get sigs.k8s.io/kustomize/cmd/config
|
||||||
RUN mv /go/bin/config /usr/bin/config
|
RUN mv /go/bin/config /usr/bin/config
|
||||||
COPY nginx-template.sh /usr/bin/nginx-template.sh
|
COPY nginx-template.sh /usr/bin/nginx-template.sh
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/depprobcheck
|
module sigs.k8s.io/kustomize/cmd/depprobcheck
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
k8s.io/cli-runtime v0.20.4
|
k8s.io/cli-runtime v0.20.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/gorepomod
|
module sigs.k8s.io/kustomize/cmd/gorepomod
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/spf13/viper v1.17.0
|
github.com/spf13/viper v1.17.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/k8scopy
|
module sigs.k8s.io/kustomize/cmd/k8scopy
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/mdtogo
|
module sigs.k8s.io/kustomize/cmd/mdtogo
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/cmd/pluginator/v2
|
module sigs.k8s.io/kustomize/cmd/pluginator/v2
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/spf13/cobra v1.8.0
|
github.com/spf13/cobra v1.8.0
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ func (c *Converter) Convert() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Converter) getDockerfile() string {
|
func (c *Converter) getDockerfile() string {
|
||||||
return `FROM golang:1.21-bullseye
|
return `FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module main
|
module main
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/spf13/cobra v1.4.0
|
github.com/spf13/cobra v1.4.0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/functions/examples/application-cr
|
module sigs.k8s.io/kustomize/functions/examples/application-cr
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
k8s.io/apimachinery v0.29.0
|
k8s.io/apimachinery v0.29.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/functions/examples/fn-framework-application
|
module sigs.k8s.io/kustomize/functions/examples/fn-framework-application
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/spf13/cobra v1.8.0
|
github.com/spf13/cobra v1.8.0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/functions/examples/injection-tshirt-sizes
|
module sigs.k8s.io/kustomize/functions/examples/injection-tshirt-sizes
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.13.7
|
require sigs.k8s.io/kustomize/kyaml v0.13.7
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/functions/examples/template-go-nginx
|
module sigs.k8s.io/kustomize/functions/examples/template-go-nginx
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.13.7
|
require sigs.k8s.io/kustomize/kyaml v0.13.7
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ FROM alpine:latest as schemas
|
|||||||
RUN apk --no-cache add git
|
RUN apk --no-cache add git
|
||||||
RUN git clone --depth 1 https://github.com/instrumenta/kubernetes-json-schema.git
|
RUN git clone --depth 1 https://github.com/instrumenta/kubernetes-json-schema.git
|
||||||
|
|
||||||
FROM golang:1.21-bullseye as function
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye as function
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/functions/examples/validator-kubeval
|
module sigs.k8s.io/kustomize/functions/examples/validator-kubeval
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/instrumenta/kubeval v0.16.1
|
github.com/instrumenta/kubeval v0.16.1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/functions/examples/validator-resource-requests
|
module sigs.k8s.io/kustomize/functions/examples/validator-resource-requests
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/kyaml v0.13.7
|
require sigs.k8s.io/kustomize/kyaml v0.13.7
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/hack
|
module sigs.k8s.io/kustomize/hack
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/campoy/embedmd v1.0.0
|
github.com/campoy/embedmd v1.0.0
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
# build
|
# build
|
||||||
FROM golang:alpine as builder
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye as builder
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG COMMIT
|
ARG COMMIT
|
||||||
ARG DATE
|
ARG DATE
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/kustomize/v5
|
module sigs.k8s.io/kustomize/kustomize/v5
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.6.0
|
github.com/google/go-cmp v0.6.0
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ func AddGenerateDockerfile(cmd *cobra.Command) {
|
|||||||
Use: "gen [DIR]",
|
Use: "gen [DIR]",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
if err := os.WriteFile(filepath.Join(args[0], "Dockerfile"), []byte(`FROM golang:1.21-alpine as builder
|
if err := os.WriteFile(filepath.Join(args[0], "Dockerfile"), []byte(`FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye as builder
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ func TestCommand_dockerfile(t *testing.T) {
|
|||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
|
||||||
expected := `FROM golang:1.21-alpine as builder
|
expected := `FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye as builder
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
FROM golang:1.21-bullseye
|
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/kyaml
|
module sigs.k8s.io/kustomize/kyaml
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/annotationstransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/annotationstransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/configmapgenerator
|
module sigs.k8s.io/kustomize/plugin/builtin/configmapgenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/hashtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/hashtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/helmchartinflationgenerator
|
module sigs.k8s.io/kustomize/plugin/builtin/helmchartinflationgenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/iampolicygenerator
|
module sigs.k8s.io/kustomize/plugin/builtin/iampolicygenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/imagetagtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/imagetagtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/labeltransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/labeltransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/namespacetransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/namespacetransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/patchjson6902transformer
|
module sigs.k8s.io/kustomize/plugin/builtin/patchjson6902transformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gopkg.in/evanphx/json-patch.v4 v4.12.0
|
gopkg.in/evanphx/json-patch.v4 v4.12.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/patchstrategicmergetransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/patchstrategicmergetransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/patchtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/patchtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/prefixtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/prefixtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/replacementtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/replacementtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/replicacounttransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/replicacounttransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/secretgenerator
|
module sigs.k8s.io/kustomize/plugin/builtin/secretgenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/sortordertransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/sortordertransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/suffixtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/suffixtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/builtin/valueaddtransformer
|
module sigs.k8s.io/kustomize/plugin/builtin/valueaddtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/bashedconfigmap
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/bashedconfigmap
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/calvinduplicator
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/calvinduplicator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/dateprefixer
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/dateprefixer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/printpluginenv
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/printpluginenv
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/secretsfromdatabase
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/secretsfromdatabase
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/sedtransformer
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/sedtransformer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/someservicegenerator
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/someservicegenerator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/starlarkmixer
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/starlarkmixer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/stringprefixer
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/stringprefixer
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.17.3
|
sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/validator
|
module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/validator
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module sigs.k8s.io/kustomize/plugin/untested/v1/gogetter
|
module sigs.k8s.io/kustomize/plugin/untested/v1/gogetter
|
||||||
|
|
||||||
go 1.21
|
go 1.22.7
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.17.3
|
require sigs.k8s.io/kustomize/api v0.17.3
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# This Dockerfile is based on:
|
# This Dockerfile is based on:
|
||||||
# (https://github.com/kubernetes/website/blob/main/Dockerfile)
|
# (https://github.com/kubernetes/website/blob/main/Dockerfile)
|
||||||
|
|
||||||
FROM docker.io/library/golang:1.21-alpine
|
FROM docker.io/library/golang:1.22-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
@@ -19,7 +19,7 @@ COPY hack/go.mod ./
|
|||||||
COPY hack/go.sum ./
|
COPY hack/go.sum ./
|
||||||
RUN go install --tags extended github.com/gohugoio/hugo
|
RUN go install --tags extended github.com/gohugoio/hugo
|
||||||
|
|
||||||
FROM docker.io/library/golang:1.21-alpine
|
FROM docker.io/library/golang:1.22-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
runuser \
|
runuser \
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ description: >
|
|||||||
|
|
||||||
First install the tools to build and run tests
|
First install the tools to build and run tests
|
||||||
|
|
||||||
### Install go 1.21
|
### Install go
|
||||||
|
|
||||||
[Instructions](https://golang.org/doc/install)
|
[Instructions](https://golang.org/doc/install)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user