Skip to content

Commit 5ba8523

Browse files
committed
update go 1.22.7
1 parent 4034e36 commit 5ba8523

File tree

70 files changed

+99
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+99
-90
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
run:
55
deadline: 5m
6-
go: '1.21'
6+
go: '1.22'
77

88
linters:
99
enable-all: true

api/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/kustomize/api
22

3-
go 1.21
3+
go 1.22.7
44

55
require (
66
github.com/blang/semver/v4 v4.0.0

cmd/config/docs/api-conventions/functions-impl.md

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
# Running Configuration Functions using kustomize CLI
22

3-
Configuration functions can be implemented using any toolchain and invoked using any
4-
container workflow orchestrator including Tekton, Cloud Build, or run directly using `docker run`.
3+
Configuration functions can be implemented using any toolchain and invoked using
4+
any container workflow orchestrator including Tekton, Cloud Build, or run
5+
directly using `docker run`.
56

67
Run `config help docs-fn-spec` to see the Configuration Functions Specification.
78

8-
`kustomize fn run` is an example orchestrator for invoking Configuration Functions. This
9-
document describes how to implement and invoke an example function.
9+
`kustomize fn run` is an example orchestrator for invoking Configuration
10+
Functions. This document describes how to implement and invoke an example
11+
function.
1012

1113
## Example Function Implementation
1214

13-
Following is an example for implementing an nginx abstraction using a configuration
14-
function.
15+
Following is an example for implementing an nginx abstraction using a
16+
configuration function.
1517

1618
### `nginx-template.sh`
1719

18-
`nginx-template.sh` is a simple bash script which uses a _heredoc_ as a templating solution
19-
for generating Resources from the functionConfig input fields.
20+
`nginx-template.sh` is a simple bash script which uses a _heredoc_ as a
21+
templating solution for generating Resources from the functionConfig input
22+
fields.
2023

2124
The script wraps itself using `config run wrap -- $0` which will:
2225

23-
1. Parse the `ResourceList.functionConfig` (provided to the container stdin) into env vars
26+
1. Parse the `ResourceList.functionConfig` (provided to the container stdin)
27+
into env vars
2428
2. Merge the stdout into the original list of Resources
25-
3. Defaults filenames for newly generated Resources (if they are not set as annotations)
26-
to `config/NAME_KIND.yaml`
29+
3. Defaults filenames for newly generated Resources (if they are not set as
30+
annotations) to `config/NAME_KIND.yaml`
2731
4. Format the output
2832

2933
```bash
@@ -82,10 +86,11 @@ End-of-message
8286

8387
### Dockerfile
8488

85-
`Dockerfile` installs `kustomize fn` and copies the script into the container image.
89+
`Dockerfile` installs `kustomize fn` and copies the script into the container
90+
image.
8691

8792
```
88-
FROM golang:1.21-bullseye
93+
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
8994
RUN go get sigs.k8s.io/kustomize/cmd/config
9095
RUN mv /go/bin/config /usr/bin/config
9196
COPY nginx-template.sh /usr/bin/nginx-template.sh
@@ -94,20 +99,23 @@ CMD ["nginx-template.sh]
9499

95100
## Example Function Usage
96101

97-
Following is an example of running the `kustomize fn run` using the preceding API.
102+
Following is an example of running the `kustomize fn run` using the preceding
103+
API.
98104

99105
When run by `kustomize fn run`, functions are run in containers with the
100106
following environment:
101107

102108
- Network: `none`
103109
- User: `nobody`
104110
- Security Options: `no-new-privileges`
105-
- Volumes: the volume containing the `functionConfig` yaml is mounted under `/local` as `ro`
111+
- Volumes: the volume containing the `functionConfig` yaml is mounted under
112+
`/local` as `ro`
106113

107114
### Input
108115

109-
`dir/nginx.yaml` contains a reference to the Function. The contents of `nginx.yaml`
110-
are passed to the Function through the `ResourceList.functionConfig` field.
116+
`dir/nginx.yaml` contains a reference to the Function. The contents of
117+
`nginx.yaml` are passed to the Function through the
118+
`ResourceList.functionConfig` field.
111119

112120
```yaml
113121
apiVersion: example.com/v1beta1
@@ -123,9 +131,10 @@ spec:
123131
replicas: 5
124132
```
125133
126-
- `annotations[config.kubernetes.io/function].container.image`: the image to use for this API
127-
- `annotations[config.kubernetes.io/local-config]`: mark this as not a Resource that should
128-
be applied
134+
- `annotations[config.kubernetes.io/function].container.image`: the image to use
135+
for this API
136+
- `annotations[config.kubernetes.io/local-config]`: mark this as not a Resource
137+
that should be applied
129138

130139
### Output
131140

cmd/config/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/kustomize/cmd/config
22

3-
go 1.21
3+
go 1.22.7
44

55
require (
66
github.com/go-errors/errors v1.4.2

cmd/config/internal/commands/e2e/e2econtainerconfig/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2019 The Kubernetes Authors.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
FROM golang:1.21-bullseye
4+
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
55
ENV CGO_ENABLED=0
66
WORKDIR /go/src/
77

cmd/config/internal/commands/e2e/e2econtainerconfig/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerconfig
22

3-
go 1.21
3+
go 1.22.7
44

55
require sigs.k8s.io/kustomize/kyaml v0.14.2
66

cmd/config/internal/commands/e2e/e2econtainerenvgenerator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2019 The Kubernetes Authors.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
FROM golang:1.21-bullseye
4+
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
55
ENV CGO_ENABLED=0
66
WORKDIR /go/src/
77

cmd/config/internal/commands/e2e/e2econtainerenvgenerator/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainerenvgenerator
22

3-
go 1.21
3+
go 1.22.7
44

55
require sigs.k8s.io/kustomize/kyaml v0.14.2
66

cmd/config/internal/commands/e2e/e2econtainermountbind/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2019 The Kubernetes Authors.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
FROM golang:1.21-bullseye
4+
FROM public.ecr.aws/docker/library/golang:1.22.7-bullseye
55
ENV CGO_ENABLED=0
66
WORKDIR /go/src/
77

cmd/config/internal/commands/e2e/e2econtainermountbind/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e/e2econtainer-render-helm-chart
22

3-
go 1.21
3+
go 1.22.7
44

55
require sigs.k8s.io/kustomize/kyaml v0.14.2
66

0 commit comments

Comments
 (0)