Skip to content

Commit

Permalink
[CONTINT-4412] Upgrade k8s dependencies (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
L3n41c authored Oct 14, 2024
1 parent d43e36e commit 2aea543
Show file tree
Hide file tree
Showing 52 changed files with 24,814 additions and 23,628 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build

env:
GO_VERSION: 1.21
GO_VERSION: 1.22

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "CodeQL"

env:
GO_VERSION: 1.21
GO_VERSION: 1.22

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release

env:
GO_VERSION: 1.21
GO_VERSION: 1.22

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
env:
GO111MODULE: "on"
PROJECTNAME: "extendeddaemonset"
GO_VERSION: 1.21
GO_VERSION: 1.22
jobs:
build:
runs-on: ubuntu-latest
Expand Down
20 changes: 8 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
image: registry.ddbuild.io/images/mirror/golang:1.21
image: registry.ddbuild.io/images/mirror/golang:1.22
variables:
GO111MODULE: "on"
PROJECTNAME: "extendeddaemonset"
PROJECTNAME_CHECK: "extendeddaemonset-check"
GOPATH: "$CI_PROJECT_DIR/.cache"
TARGET_TAG: v$CI_PIPELINE_ID-$CI_COMMIT_SHORT_SHA
BUILD_DOCKER_REGISTRY: "486234852809.dkr.ecr.us-east-1.amazonaws.com/ci"
JOB_DOCKER_IMAGE: "486234852809.dkr.ecr.us-east-1.amazonaws.com/ci-containers-project:v2.0.0"
JOB_DOCKER_IMAGE: "registry.ddbuild.io/ci-containers-project:v46367840-16ecadd-v3.0.0"
DOCKER_REGISTRY_LOGIN_SSM_KEY: docker_hub_login
DOCKER_REGISTRY_PWD_SSM_KEY: docker_hub_pwd
DOCKER_REGISTRY_URL: docker.io
cache: &global_cache
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cache
policy: pull-push
- /go/pkg/mod

stages:
- build
Expand All @@ -23,7 +20,6 @@ stages:
- release

before_script:
- mkdir -p .cache
- make install-tools

build:
Expand All @@ -48,7 +44,7 @@ generate_code:

build_eds_image_amd64:
stage: image
tags:
tags:
- "arch:amd64"
image: $JOB_DOCKER_IMAGE
variables:
Expand All @@ -65,7 +61,7 @@ build_eds_image_amd64:

build_eds_image_arm64:
stage: image
tags:
tags:
- "arch:arm64"
image: $JOB_DOCKER_IMAGE
variables:
Expand All @@ -83,7 +79,7 @@ build_eds_image_arm64:

build_eds_check_image_amd64:
stage: image
tags:
tags:
- "arch:amd64"
image: $JOB_DOCKER_IMAGE
variables:
Expand All @@ -100,7 +96,7 @@ build_eds_check_image_amd64:

build_eds_check_image_arm64:
stage: image
tags:
tags:
- "arch:arm64"
image: $JOB_DOCKER_IMAGE
variables:
Expand Down
26 changes: 11 additions & 15 deletions .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

[linters-settings.misspell]
locale = "US"

[linters-settings.gci]
local-prefixes = "github.com/DataDog/extendeddaemonset"

Expand All @@ -27,19 +27,21 @@
' \+',
]

[linters-settings.errcheck]
exclude-functions = [
"fmt.Fprintf"
]

[linters]
enable-all = true
disable = [
"exhaustruct",
"nosnakecase",
"logrlint",
"loggercheck",
"nonamedreturns",
"maligned",
"revive",
"lll",
"gas",
"gosec",
"dupl",
"scopelint",
"gocyclo",
"gochecknoinits",
"gochecknoglobals",
Expand All @@ -48,16 +50,14 @@
"cyclop",
"gomnd",
"wrapcheck",
"exhaustivestruct",
"forcetypeassert",
"goerr113",
"err113",
"testpackage",
"wastedassign",
"thelper",
"paralleltest",
"nestif",
"exhaustive",
"interfacer",
"gci",
"wsl",
"godox",
Expand All @@ -70,16 +70,12 @@
"nilnil",
"ireturn",
"maintidx",
"ifshort",
"gocritic",
"errchkjson",
"gofumpt",
"golint",
"deadcode",
"structcheck",
"varcheck",
"unparam",
"depguard"
"depguard",
"mnd",
]

[issues]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.21 as builder
FROM golang:1.22 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
Loading

0 comments on commit 2aea543

Please sign in to comment.