Skip to content

Commit

Permalink
build: k8s api version bump to 1.31.1 (#188)
Browse files Browse the repository at this point in the history
* build: k8s api version bump to 1.31.1

* Fix typo

* Fix typo
  • Loading branch information
isindir authored Oct 2, 2024
1 parent 8aaf8bb commit 53c5560
Show file tree
Hide file tree
Showing 16 changed files with 247 additions and 211 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
env:
# UPDATE_HERE
# https://hub.docker.com/r/rancher/k3s/tags
K3S_VERSION: v1.30.3-k3s1
K3S_VERSION: v1.31.1-k3s1
# https://github.com/helm-unittest/helm-unittest/releases
HELM_UNITTEST_VERSION: 0.5.2
HELM_UNITTEST_VERSION: 0.6.2

steps:

Expand Down
14 changes: 7 additions & 7 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# UPDATE_HERE
# https://github.com/kubernetes-sigs/kubebuilder/releases
kubebuilder 4.1.1
kubebuilder 4.2.1
# https://golang.org/dl/
golang 1.22.6
golang 1.23.2
# https://github.com/mozilla/sops/releases
sops 3.9.0
# https://github.com/kubernetes-sigs/kustomize/releases
kustomize 5.4.3
# https://github.com/rancher/k3d/releases
k3d 5.7.3
k3d 5.7.4
# https://github.com/kubernetes/kubernetes/releases
kubectl 1.30.3
kubectl 1.31.1
# https://github.com/helm/helm/releases
helm 3.15.3
helm 3.16.1
# https://github.com/norwoodj/helm-docs/releases
helm-docs 1.14.2
# https://github.com/yannh/kubeconform/releases
kubeconform 0.6.7
# https://github.com/git-chglog/git-chglog/releases
git-chglog 0.15.4
# https://github.com/golangci/golangci-lint/releases
golangci-lint 1.59.1
golangci-lint 1.61.0
# https://github.com/cli/cli/releases
github-cli 2.54.0
github-cli 2.58.0
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
############################################################
# https://wiki.ubuntu.com/Releases
# https://hub.docker.com/_/ubuntu/tags?page=1&name=noble
# https://hub.docker.com/_/ubuntu/tags?page=1&name=oracular
# UPDATE_HERE
FROM ubuntu:mantic-20240530 as asdf-builder
FROM ubuntu:oracular-20240918 AS asdf-builder

# UPDATE_HERE
# https://github.com/asdf-vm/asdf/releases
ARG ASDF_VERSION=v0.14.0
ARG ASDF_VERSION=v0.14.1

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down Expand Up @@ -34,7 +34,7 @@ COPY .tool-versions .

RUN awk '$0 !~ /^#/ {print $1}' .tool-versions|xargs -I{} asdf plugin add {} \
&& asdf install && asdf reshim
ENV PATH "/root/.asdf/shims:/root/.asdf/bin:$PATH"
ENV PATH="/root/.asdf/shims:/root/.asdf/bin:$PATH"

# Compile source code
WORKDIR /workspace
Expand All @@ -55,7 +55,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o manager cmd/main.go

############################################################
# UPDATE_HERE
FROM ubuntu:mantic-20240530
FROM ubuntu:oracular-20240918

# Install build tools
RUN apt-get -y update \
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# UPDATE_HERE
# !!!!!!! NOTE: GOEXPERIMENT=nocoverageredesign is temp until 1.23.x
GO := GOEXPERIMENT=nocoverageredesign GOPROXY=https://proxy.golang.org go
SOPS_SEC_OPERATOR_VERSION := 0.13.3
SOPS_SEC_OPERATOR_VERSION := 0.14.0

# https://github.com/kubernetes-sigs/controller-tools/releases
CONTROLLER_GEN_VERSION := "v0.15.0"
CONTROLLER_GEN_VERSION := "v0.16.3"
# https://github.com/kubernetes-sigs/controller-runtime/releases
CONTROLLER_RUNTIME_VERSION := "v0.18.4"
CONTROLLER_RUNTIME_VERSION := "v0.19.0"
# https://github.com/kubernetes-sigs/kustomize/releases
KUSTOMIZE_VERSION := "v5.4.3"
# use `setup-envtest list` to obtain the list of available versions
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ encrypted files stored in `git` repository.

| Kubernetes | Sops | Chart | Operator |
|---|---|---|---|
| v1.31.x | v3.9.0 | 0.20.0 | 0.14.0 |
| v1.30.x | v3.9.0 | 0.19.4 | 0.13.3 |
| v1.29.x | v3.8.1 | 0.18.6 | 0.12.6 |
| v1.28.x | v3.8.1 | 0.17.4 | 0.11.4 |
Expand Down
4 changes: 2 additions & 2 deletions chart/helm3/sops-secrets-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
# UPDATE_HERE
version: 0.19.4
appVersion: 0.13.3
version: 0.20.0
appVersion: 0.14.0
type: application
description: Helm chart deploys sops-secrets-operator
name: sops-secrets-operator
Expand Down
2 changes: 1 addition & 1 deletion chart/helm3/sops-secrets-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CHART_NAME?=$(shell cat Chart.yaml | awk 'BEGIN { FS=": " } $$0~/^name:/ { gsub(
VERSION_TAG?=$(shell cat Chart.yaml | awk 'BEGIN { FS=": " } $$0~/^version/ { gsub(/['\'',]/, ""); print $$2; }')

# UPDATE_HERE
K8S_VERSION := "1.30.3"
K8S_VERSION := "1.31.1"

SHELL=/bin/bash

Expand Down
4 changes: 2 additions & 2 deletions chart/helm3/sops-secrets-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ The following table lists the configurable parameters of the Sops-secrets-operat
| healthProbes.readiness | object | `{"initialDelaySeconds":5,"periodSeconds":10}` | Readiness probe configuration |
| image.pullPolicy | string | `"Always"` | Operator image pull policy |
| image.repository | string | `"isindir/sops-secrets-operator"` | Operator image name |
| image.tag | string | `"0.13.3"` | Operator image tag |
| image.tag | string | `"0.14.0"` | Operator image tag |
| imagePullSecrets | list | `[]` | Secrets to pull image from private docker repository |
| initImage.pullPolicy | string | `"Always"` | Init container image pull policy |
| initImage.repository | string | `"ubuntu"` | Init container image name |
| initImage.tag | string | `"mantic-20240530"` | Init container image tag |
| initImage.tag | string | `"oracular-20240918"` | Init container image tag |
| kubeconfig | object | `{"enabled":false,"path":null}` | Paths to a kubeconfig. Only required if out-of-cluster. |
| logging | object | `{"development":false,"encoder":"json","level":"info","stacktraceLevel":"error","timeEncoding":"iso8601"}` | Logging configuration section suggested values Development Mode (encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode (encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error) (default) |
| logging.development | bool | `false` | Zap Development Mode enabled |
Expand Down
4 changes: 2 additions & 2 deletions chart/helm3/sops-secrets-operator/tests/monitor_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ tests:
app.kubernetes.io/instance: sops
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: sops-secrets-operator
app.kubernetes.io/version: "0.13.3"
helm.sh/chart: sops-secrets-operator-0.19.4
app.kubernetes.io/version: "0.14.0"
helm.sh/chart: sops-secrets-operator-0.20.0
custom-label: custom-value
8 changes: 4 additions & 4 deletions chart/helm3/sops-secrets-operator/tests/operator_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ tests:
app.kubernetes.io/instance: sops
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: sops-secrets-operator
app.kubernetes.io/version: 0.13.3
helm.sh/chart: sops-secrets-operator-0.19.4
app.kubernetes.io/version: 0.14.0
helm.sh/chart: sops-secrets-operator-0.20.0

# custom name
- it: should correctly render custome name
Expand Down Expand Up @@ -169,7 +169,7 @@ tests:
# UPDATE_HERE
- equal:
path: spec.template.spec.containers[0].image
value: isindir/sops-secrets-operator:0.13.3
value: isindir/sops-secrets-operator:0.14.0
- equal:
path: spec.template.spec.containers[0].imagePullPolicy
value: Always
Expand Down Expand Up @@ -197,7 +197,7 @@ tests:
- equal:
path: spec.template.spec.initContainers[0].image
# UPDATE_HERE
value: ubuntu:mantic-20240530
value: ubuntu:oracular-20240918
- equal:
path: spec.template.spec.initContainers[0].imagePullPolicy
value: Always
Expand Down
5 changes: 3 additions & 2 deletions chart/helm3/sops-secrets-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ image:
# -- Operator image name
repository: isindir/sops-secrets-operator
# -- Operator image tag
tag: 0.13.3
tag: 0.14.0
# -- Operator image pull policy
pullPolicy: Always

Expand All @@ -25,7 +25,8 @@ initImage:
# -- Init container image name
repository: ubuntu
# -- Init container image tag
tag: mantic-20240530
tag: oracular-20240918

# -- Init container image pull policy
pullPolicy: Always

Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/isindir.github.com_sopssecrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
controller-gen.kubebuilder.io/version: v0.16.3
name: sopssecrets.isindir.github.com
spec:
group: isindir.github.com
Expand Down
Loading

0 comments on commit 53c5560

Please sign in to comment.