Skip to content

Commit c1da518

Browse files
committed
manual dependency updates
1 parent 5a883fc commit c1da518

File tree

12 files changed

+250
-255
lines changed

12 files changed

+250
-255
lines changed

Dockerfile

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

1515
# Use distroless as minimal base image to package the manager binary
1616
# Refer to https://github.com/GoogleContainerTools/distroless for more details
17-
FROM gcr.io/distroless/static:nonroot@sha256:cba10d7abd3e203428e86f5b2d7fd5eb7d8987c387864ae4996cf97191b33764
17+
FROM gcr.io/distroless/static:nonroot@sha256:f43f134f5d60bf7afb3db92f865db42514913f01a53b08cd59a1ac6534671077
1818

1919
# For multi-arch builds, use automatic platform build arguments
2020
# see https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope

Dockerfile-operator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
2828

2929
# Use distroless as minimal base image to package the manager binary
3030
# Refer to https://github.com/GoogleContainerTools/distroless for more details
31-
FROM gcr.io/distroless/static:nonroot@sha256:cba10d7abd3e203428e86f5b2d7fd5eb7d8987c387864ae4996cf97191b33764
31+
FROM gcr.io/distroless/static:nonroot@sha256:f43f134f5d60bf7afb3db92f865db42514913f01a53b08cd59a1ac6534671077
3232

3333
# For multi-arch builds, use automatic platform build arguments
3434
# see https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope

build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ function clean() {
3131

3232
## build - Builds the project without running tests or pushing the container image
3333
function build() {
34-
make build_docker_local
34+
if which docker ; then
35+
make build_docker_local
36+
else
37+
make generate
38+
fi
3539
}
3640

3741
## test - Runs local unit tests.

config/manager/kustomization.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
resources:
15-
- manager.yaml
15+
- manager.yaml
1616
generatorOptions:
1717
disableNameSuffixHash: true
1818
configMapGenerator:
19-
- files:
20-
- controller_manager_config.yaml
21-
name: manager-config
19+
- files:
20+
- controller_manager_config.yaml
21+
name: manager-config
2222
apiVersion: kustomize.config.k8s.io/v1beta1
2323
kind: Kustomization
2424
images:
25-
- name: controller
26-
newName: us-central1-docker.pkg.dev/hessjc-csql-operator-04/testhessjc/cloud-sql-auth-proxy-operator
27-
newTag: f2eb19b2d91f77a5c4c800a64902bbff720c8bd6-dirty-20260122T2138
25+
- name: controller
26+
newName: cloud-sql-proxy-operator
27+
newTag: latest

docs/api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _Appears in:_
5858
| `maxSigtermDelay` _integer_ | MaxSigtermDelay is the maximum number of seconds to wait for connections to<br />close after receiving a TERM signal. This sets the proxy container's<br />CLI argument `--max-sigterm-delay` and<br />configures `terminationGracePeriodSeconds` on the workload's PodSpec. | | Minimum: 0 <br />Optional: \{\} <br /> |
5959
| `minSigtermDelay` _integer_ | MinSigtermDelay is the minimum number of seconds to wait for connections to<br />close after receiving a TERM signal. This sets the proxy container's<br />CLI argument `--min-sigterm-delay` | | Minimum: 0 <br />Optional: \{\} <br /> |
6060
| `sqlAdminAPIEndpoint` _string_ | SQLAdminAPIEndpoint is a debugging parameter that when specified will<br />change the Google Cloud api endpoint used by the proxy. | | Optional: \{\} <br /> |
61-
| `image` _string_ | Image is the URL to the proxy image. Optional, by default the operator<br />will use the latest Cloud SQL Auth Proxy version as of the release of the<br />operator.<br />The operator ensures that all workloads configured with the default proxy<br />image are upgraded automatically to use to the latest released proxy image.<br />When the customer upgrades the operator, the operator upgrades all<br />workloads using the default proxy image to the latest proxy image. The<br />change to the proxy container image is applied in accordance with<br />the RolloutStrategy. | | Optional: \{\} <br /> |
61+
| `image` _string_ | Image is the URL to the proxy image. Optional, by default the operator<br />will use the latest Cloud SQL Auth Proxy version as of the release of the<br />operator.<br /><br />The operator ensures that all workloads configured with the default proxy<br />image are upgraded automatically to use to the latest released proxy image.<br /><br />When the customer upgrades the operator, the operator upgrades all<br />workloads using the default proxy image to the latest proxy image. The<br />change to the proxy container image is applied in accordance with<br />the RolloutStrategy. | | Optional: \{\} <br /> |
6262
| `rolloutStrategy` _string_ | RolloutStrategy indicates the strategy to use when rolling out changes to<br />the workloads affected by the results. When this is set to<br />`Workload`, changes to this resource will be automatically applied<br />to a running Deployment, StatefulSet, DaemonSet, or ReplicaSet in<br />accordance with the Strategy set on that workload. When this is set to<br />`None`, the operator will take no action to roll out changes to affected<br />workloads. `Workload` will be used by default if no value is set.<br />See: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | Workload | Enum: [Workload None] <br />Optional: \{\} <br /> |
6363
| `refreshStrategy` _string_ | RefreshStrategy indicates which refresh strategy the proxy should use.<br />When this is set to `lazy`, the proxy will use a lazy refresh strategy,<br />and will be configured to run with the --lazy-refresh flag. When this<br />omitted or set to `background`, the proxy will use the default background<br />refresh strategy.<br />See: https://github.com/GoogleCloudPlatform/cloud-sql-proxy/?tab=readme-ov-file#configuring-a-lazy-refresh | background | Enum: [lazy background] <br />Optional: \{\} <br /> |
6464
| `quiet` _boolean_ | Quiet configures the proxy's --quiet flag to limit the amount of<br />logging generated by the proxy container. | | |
@@ -130,21 +130,25 @@ _Appears in:_
130130
InstanceSpec describes the configuration for how the proxy should expose
131131
a Cloud SQL database instance to a workload.
132132

133+
133134
In the minimum recommended configuration, the operator will choose
134135
a non-conflicting TCP port and set environment
135136
variables MY_DB_SERVER_PORT MY_DB_SERVER_HOST with the value of the TCP port
136137
and hostname. The application can read these values to connect to the database
137138
through the proxy. For example:
138139

140+
139141
`{
140142
"connectionString":"my-project:us-central1:my-db-server",
141143
"portEnvName":"MY_DB_SERVER_PORT"
142144
"hostEnvName":"MY_DB_SERVER_HOST"
143145
}`
144146

147+
145148
If you want to assign a specific port number for a database, set the `port`
146149
field. For example:
147150

151+
148152
`{ "connectionString":"my-project:us-central1:my-db-server", "port":5000 }`
149153

150154

go.mod

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,75 @@
11
module github.com/GoogleCloudPlatform/cloud-sql-proxy-operator
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
6-
cloud.google.com/go/cloudsqlconn v1.18.0
6+
cloud.google.com/go/cloudsqlconn v1.20.0
77
github.com/go-logr/logr v1.4.3
8-
go.uber.org/zap v1.27.0
9-
k8s.io/api v0.32.8
10-
k8s.io/apimachinery v0.32.8
11-
k8s.io/client-go v0.32.8
12-
sigs.k8s.io/controller-runtime v0.20.4
13-
sigs.k8s.io/yaml v1.5.0
8+
go.uber.org/zap v1.27.1
9+
k8s.io/api v0.35.1
10+
k8s.io/apimachinery v0.35.1
11+
k8s.io/client-go v0.35.1
12+
sigs.k8s.io/controller-runtime v0.23.1
13+
sigs.k8s.io/yaml v1.6.0
1414
)
1515

1616
require (
1717
github.com/beorn7/perks v1.0.1 // indirect
1818
github.com/cespare/xxhash/v2 v2.3.0 // indirect
19-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
20-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
19+
github.com/davecgh/go-spew v1.1.1 // indirect
20+
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
2121
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
22-
github.com/fsnotify/fsnotify v1.7.0 // indirect
23-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
22+
github.com/fsnotify/fsnotify v1.9.0 // indirect
23+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
2424
github.com/go-logr/zapr v1.3.0 // indirect
25-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
26-
github.com/go-openapi/jsonreference v0.20.2 // indirect
27-
github.com/go-openapi/swag v0.23.0 // indirect
28-
github.com/gogo/protobuf v1.3.2 // indirect
29-
github.com/golang/protobuf v1.5.4 // indirect
25+
github.com/go-openapi/jsonpointer v0.22.4 // indirect
26+
github.com/go-openapi/jsonreference v0.21.4 // indirect
27+
github.com/go-openapi/swag v0.25.4 // indirect
28+
github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
29+
github.com/go-openapi/swag/conv v0.25.4 // indirect
30+
github.com/go-openapi/swag/fileutils v0.25.4 // indirect
31+
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
32+
github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
33+
github.com/go-openapi/swag/loading v0.25.4 // indirect
34+
github.com/go-openapi/swag/mangling v0.25.4 // indirect
35+
github.com/go-openapi/swag/netutils v0.25.4 // indirect
36+
github.com/go-openapi/swag/stringutils v0.25.4 // indirect
37+
github.com/go-openapi/swag/typeutils v0.25.4 // indirect
38+
github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
3039
github.com/google/btree v1.1.3 // indirect
31-
github.com/google/gnostic-models v0.6.8 // indirect
40+
github.com/google/gnostic-models v0.7.1 // indirect
3241
github.com/google/go-cmp v0.7.0 // indirect
33-
github.com/google/gofuzz v1.2.0 // indirect
3442
github.com/google/uuid v1.6.0 // indirect
35-
github.com/josharian/intern v1.0.0 // indirect
3643
github.com/json-iterator/go v1.1.12 // indirect
37-
github.com/mailru/easyjson v0.7.7 // indirect
3844
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
39-
github.com/modern-go/reflect2 v1.0.2 // indirect
45+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
4046
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
41-
github.com/pkg/errors v0.9.1 // indirect
42-
github.com/prometheus/client_golang v1.19.1 // indirect
43-
github.com/prometheus/client_model v0.6.1 // indirect
44-
github.com/prometheus/common v0.55.0 // indirect
45-
github.com/prometheus/procfs v0.15.1 // indirect
46-
github.com/rogpeppe/go-internal v1.13.1 // indirect
47-
github.com/spf13/pflag v1.0.5 // indirect
48-
github.com/stretchr/testify v1.10.0 // indirect
47+
github.com/pmezard/go-difflib v1.0.0 // indirect
48+
github.com/prometheus/client_golang v1.23.2 // indirect
49+
github.com/prometheus/client_model v0.6.2 // indirect
50+
github.com/prometheus/common v0.67.5 // indirect
51+
github.com/prometheus/procfs v0.19.2 // indirect
52+
github.com/spf13/pflag v1.0.10 // indirect
4953
github.com/x448/float16 v0.8.4 // indirect
5054
go.uber.org/multierr v1.11.0 // indirect
51-
go.yaml.in/yaml/v2 v2.4.2 // indirect
52-
golang.org/x/net v0.43.0 // indirect
53-
golang.org/x/oauth2 v0.30.0 // indirect
54-
golang.org/x/sync v0.16.0 // indirect
55-
golang.org/x/sys v0.35.0 // indirect
56-
golang.org/x/term v0.34.0 // indirect
57-
golang.org/x/text v0.28.0 // indirect
58-
golang.org/x/time v0.12.0 // indirect
59-
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
60-
google.golang.org/protobuf v1.36.7 // indirect
61-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
55+
go.yaml.in/yaml/v2 v2.4.3 // indirect
56+
go.yaml.in/yaml/v3 v3.0.4 // indirect
57+
golang.org/x/net v0.50.0 // indirect
58+
golang.org/x/oauth2 v0.35.0 // indirect
59+
golang.org/x/sync v0.19.0 // indirect
60+
golang.org/x/sys v0.41.0 // indirect
61+
golang.org/x/term v0.40.0 // indirect
62+
golang.org/x/text v0.34.0 // indirect
63+
golang.org/x/time v0.14.0 // indirect
64+
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
65+
google.golang.org/protobuf v1.36.11 // indirect
66+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
6267
gopkg.in/inf.v0 v0.9.1 // indirect
63-
gopkg.in/yaml.v3 v3.0.1 // indirect
64-
k8s.io/apiextensions-apiserver v0.32.1 // indirect
68+
k8s.io/apiextensions-apiserver v0.35.1 // indirect
6569
k8s.io/klog/v2 v2.130.1 // indirect
66-
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
67-
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
68-
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
69-
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
70+
k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4 // indirect
71+
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 // indirect
72+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
73+
sigs.k8s.io/randfill v1.0.0 // indirect
74+
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
7075
)

0 commit comments

Comments
 (0)