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 .github/workflows/controller-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.23.12'
go-version: '1.25.4'

- name: Build
uses: ./.github/actions/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.23.12'
go-version: '1.25.4'

- name: Test
run: make test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vaultenv-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.23.12'
go-version: '1.25.4'

- name: Build
uses: ./.github/actions/build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASEIMAGE=gcr.io/distroless/static:nonroot
ARG BASE_ALPINE=alpine:3.22.1
ARG GO_VERSION=1.23.12
ARG GO_VERSION=1.25.4

# -------
# Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (c *Controller) syncDeletedAzureKeyVaultSecret(key string) error {
if !isOwnedBy(outputObject, akvs) { // checks if the object has a controllerRef set to the given owner
msg := fmt.Sprintf(MessageResourceExists, outputObject.GetName())
c.recorder.Event(akvs, corev1.EventTypeWarning, ErrResourceExists, msg)
return fmt.Errorf(msg)
return fmt.Errorf("%s", msg)
}

return nil
Expand Down Expand Up @@ -193,7 +193,7 @@ func (c *Controller) syncAzureKeyVaultSecret(key string) error {
if !isOwnedBy(outputObject, akvs) { // checks if the object has a controllerRef set to the given owner
msg := fmt.Sprintf(MessageResourceExists, outputObject.GetName())
c.recorder.Event(akvs, corev1.EventTypeWarning, ErrResourceExists, msg)
return fmt.Errorf(msg)
return fmt.Errorf("%s", msg)
}

return nil
Expand Down Expand Up @@ -222,7 +222,7 @@ func (c *Controller) syncAzureKeyVault(key string) error {
msg := fmt.Sprintf(FailedAzureKeyVault, akvs.Name, akvs.Spec.Vault.Name, err.Error())
c.recorder.Event(akvs, corev1.EventTypeWarning, ErrAzureVault, msg)
syncFailures.WithLabelValues("sync", "AzureKeyVault").Inc()
return fmt.Errorf(msg)
return fmt.Errorf("%s", msg)
}

secretHash = getMD5HashOfByteValues(secretValue)
Expand Down Expand Up @@ -266,7 +266,7 @@ func (c *Controller) syncAzureKeyVault(key string) error {
if err != nil {
msg := fmt.Sprintf(FailedAzureKeyVault, akvs.Name, akvs.Spec.Vault.Name, err.Error())
c.recorder.Event(akvs, corev1.EventTypeWarning, ErrAzureVault, msg)
return fmt.Errorf(msg)
return fmt.Errorf("%s", msg)
}

cmHash = getMD5HashOfStringValues(cmValue)
Expand Down
2 changes: 1 addition & 1 deletion cmd/azure-keyvault-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func main() {
logLevel, _ := strconv.Atoi(flag.Lookup("v").Value.String())
if logLevel >= 4 {
azlog.SetListener(func(cls azlog.Event, msg string) {
klog.Infof(msg)
klog.Infof("%s", msg)
})
}
token, keyVaultDNSSuffix, err = getCredentialsFromAzidentity()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/SparebankenVest/azure-key-vault-to-kubernetes

go 1.23.12
go 1.25.4

require (
github.com/Azure/aad-pod-identity v1.8.17
Expand Down
4 changes: 2 additions & 2 deletions images/Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Accept the Go version for the image to be set as a build argument.
# Default to Go 1.23.12
ARG GO_VERSION=1.23.12
# Default to Go 1.25.4
ARG GO_VERSION=1.25.4
ARG VCS_REF
ARG BUILD_DATE
ARG VCS_URL
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/SparebankenVest/azure-key-vault-to-kubernetesl/tools

go 1.23.12
go 1.25.4

require (
github.com/client9/misspell v0.3.4
Expand Down