Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/go:2-1.25-bookworm",
"image": "mcr.microsoft.com/devcontainers/go:2-1.26-bookworm",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": false
Expand Down
2 changes: 1 addition & 1 deletion .github/agents/code-review-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Highlight well-written code or good practices.

## Project-Specific Context

- **Language**: Go 1.25.0+
- **Language**: Go 1.26.0+
- **Framework**: Kubebuilder / controller-runtime
- **Database**: DocumentDB (MongoDB-compatible)
- **Deployment**: Kubernetes via Helm charts
Expand Down
2 changes: 1 addition & 1 deletion .github/agents/vulnerability-check-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck --version
```

**Note:** `govulncheck` requires Go 1.18 or later. The project uses Go 1.25.0+.
**Note:** `govulncheck` requires Go 1.18 or later. The project uses Go 1.26.0+.

### Step 2: Run Vulnerability Scan

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unit-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
pull-requests: write

env:
GO_VERSION: '1.25.9'
GO_VERSION: '1.26.5'

jobs:
coverage:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
contents: read

env:
GO_VERSION: '1.25.9'
GO_VERSION: '1.26.5'

jobs:
unit-test:
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The DocumentDB Kubernetes Operator is a Kubernetes operator that manages Documen
| Component | Version | Notes |
|-----------|---------|-------|
| Kubernetes | 1.30+ | Based on k8s.io/api v0.34.2 |
| CloudNative-PG | 1.29.1 | Helm chart uses CNPG chart 0.28.1 |
| CloudNative-PG | 1.29.1 | Helm chart uses CNPG chart 0.28.3 |
| cert-manager | 1.19.2 | Required for TLS certificate management |
| controller-runtime | 0.22.4 | Kubebuilder framework |
| Go | 1.25.0 | See `operator/src/go.mod` |
Expand Down
2 changes: 1 addition & 1 deletion docs/designs/image-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ The build process:
### Dockerfile Details

#### Operator (`operator/src/Dockerfile`)
- **Base**: `mcr.microsoft.com/oss/go/microsoft/golang:1.25-azurelinux3.0` → `scratch`
- **Base**: `mcr.microsoft.com/oss/go/microsoft/golang:1.26-azurelinux3.0` → `scratch`
- **Multi-stage**: 2 stages (builder → scratch)
- **Entrypoint**: `/manager`

Expand Down
8 changes: 4 additions & 4 deletions docs/developer-guides/development-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cd documentdb-kubernetes-operator
Reopen in Container” command from the command palette.
3. VS Code builds the container defined in
`.devcontainer/devcontainer.json` using the
`mcr.microsoft.com/devcontainers/go:2-1.25-bookworm` base image. The build
`mcr.microsoft.com/devcontainers/go:2-1.26-bookworm` base image. The build
installs the following features:
- Docker-in-Docker runtime for building and running images
- kind + kubectl/helm/kubectx/kubens/stern for Kubernetes workflows
Expand Down Expand Up @@ -92,7 +92,7 @@ the Linux instructions inside WSL2.

| Component | Minimum version | Notes |
| --------- | --------------- | ----- |
| Go | 1.25.0 | Matches `go.mod`. Install via package manager or [go.dev](https://go.dev/dl) |
| Go | 1.26.0 | Matches `go.mod`. Install via package manager or [go.dev](https://go.dev/dl) |
| Docker Engine | 24.x | Needed for image builds and kind |
| kind | 0.31+ | [kind.sigs.k8s.io](https://kind.sigs.k8s.io/) |
| kubectl | 1.30+ | Align with the Kubernetes version you test against |
Expand All @@ -106,7 +106,7 @@ the Linux instructions inside WSL2.
```bash
sudo apt-get update
sudo apt-get install -y build-essential curl git jq make tar gzip
sudo snap install go --channel=1.25/stable
sudo snap install go --channel=1.26/stable
curl -Lo kind https://kind.sigs.k8s.io/dl/v0.31.0/kind-linux-amd64 && chmod +x kind && sudo mv kind /usr/local/bin/
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
Expand All @@ -117,7 +117,7 @@ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/insta

```bash
brew update
brew install go@1.25 docker kind kubectl helm jq make coreutils findutils
brew install go@1.26 docker kind kubectl helm jq make coreutils findutils
brew install golangci-lint
```

Expand Down
96 changes: 48 additions & 48 deletions documentdb-kubectl-plugin/go.mod
Original file line number Diff line number Diff line change
@@ -1,92 +1,92 @@
module github.com/documentdb/documentdb-operator/documentdb-kubectl-plugin

go 1.25.11
go 1.26.5

require (
github.com/documentdb/documentdb-operator v0.0.0
github.com/spf13/cobra v1.10.2
k8s.io/api v0.35.0
k8s.io/apimachinery v0.35.0
k8s.io/client-go v0.35.0
k8s.io/api v0.36.2
k8s.io/apimachinery v0.36.2
k8s.io/client-go v0.36.2
)

replace github.com/documentdb/documentdb-operator => ../operator/src

require (
github.com/avast/retry-go/v5 v5.0.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudnative-pg/barman-cloud v0.4.1-0.20260108104508-ced266c145f5 // indirect
github.com/cloudnative-pg/cloudnative-pg v1.28.1 // indirect
github.com/cloudnative-pg/cnpg-i v0.3.1 // indirect
github.com/cloudnative-pg/machinery v0.3.3 // indirect
github.com/cloudnative-pg/barman-cloud v0.5.1 // indirect
github.com/cloudnative-pg/cloudnative-pg v1.29.2 // indirect
github.com/cloudnative-pg/cnpg-i v0.5.0 // indirect
github.com/cloudnative-pg/machinery v0.5.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.2 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/zapr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.22.4 // indirect
github.com/go-openapi/jsonreference v0.21.4 // indirect
github.com/go-openapi/swag v0.25.4 // indirect
github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
github.com/go-openapi/swag/conv v0.25.4 // indirect
github.com/go-openapi/swag/fileutils v0.25.4 // indirect
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
github.com/go-openapi/swag/loading v0.25.4 // indirect
github.com/go-openapi/swag/mangling v0.25.4 // indirect
github.com/go-openapi/swag/netutils v0.25.4 // indirect
github.com/go-openapi/swag/stringutils v0.25.4 // indirect
github.com/go-openapi/swag/typeutils v0.25.4 // indirect
github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
github.com/google/btree v1.1.3 // indirect
github.com/go-openapi/jsonpointer v0.23.1 // indirect
github.com/go-openapi/jsonreference v0.21.5 // indirect
github.com/go-openapi/swag v0.26.0 // indirect
github.com/go-openapi/swag/cmdutils v0.26.0 // indirect
github.com/go-openapi/swag/conv v0.26.0 // indirect
github.com/go-openapi/swag/fileutils v0.26.0 // indirect
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
github.com/go-openapi/swag/jsonutils v0.26.0 // indirect
github.com/go-openapi/swag/loading v0.26.0 // indirect
github.com/go-openapi/swag/mangling v0.26.0 // indirect
github.com/go-openapi/swag/netutils v0.26.0 // indirect
github.com/go-openapi/swag/stringutils v0.26.0 // indirect
github.com/go-openapi/swag/typeutils v0.26.0 // indirect
github.com/go-openapi/swag/yamlutils v0.26.0 // indirect
github.com/google/gnostic-models v0.7.1 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.4.0 // indirect
github.com/lib/pq v1.11.1 // indirect
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.6.0 // indirect
github.com/lib/pq v1.12.3 // indirect
github.com/moby/spdystream v0.5.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.87.1 // indirect
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.92.0 // indirect
github.com/prometheus/client_golang v1.23.2 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.67.4 // indirect
github.com/prometheus/common v0.67.5 // indirect
github.com/prometheus/procfs v0.19.2 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/thoas/go-funk v0.9.3 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.1 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.uber.org/zap v1.28.0 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/net v0.55.0 // indirect
golang.org/x/oauth2 v0.34.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.45.0 // indirect
golang.org/x/term v0.43.0 // indirect
golang.org/x/text v0.37.0 // indirect
golang.org/x/time v0.14.0 // indirect
golang.org/x/net v0.56.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/sync v0.21.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/term v0.44.0 // indirect
golang.org/x/text v0.38.0 // indirect
golang.org/x/time v0.15.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
google.golang.org/grpc v1.79.3 // indirect
google.golang.org/protobuf v1.36.11 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect
google.golang.org/grpc v1.81.1 // indirect
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
k8s.io/apiextensions-apiserver v0.35.0 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20251125145642-4e65d59e963e // indirect
k8s.io/utils v0.0.0-20260108192941-914a6e750570 // indirect
sigs.k8s.io/controller-runtime v0.22.4 // indirect
k8s.io/apiextensions-apiserver v0.36.2 // indirect
k8s.io/klog/v2 v2.140.0 // indirect
k8s.io/kube-openapi v0.0.0-20260603220949-865597e52e25 // indirect
k8s.io/streaming v0.36.2 // indirect
k8s.io/utils v0.0.0-20260626114624-be93311217bd // indirect
sigs.k8s.io/controller-runtime v0.24.1 // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.3.1 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.4.0 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
)
Loading
Loading