Skip to content

Commit dcd6ea0

Browse files
jannfiskazysgurskas
authored andcommitted
Merge branch 'master' into patch-1
Signed-off-by: Kazimieras Gurskas <[email protected]>
2 parents 929a82f + f8b345b commit dcd6ea0

25 files changed

+1885
-1778
lines changed

.github/workflows/ci-tests.yaml

+15-8
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
- name: Setup Golang
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v4
2020
with:
21-
go-version: '1.20'
21+
go-version: '1.22'
2222
- name: Download all Go modules
2323
run: |
2424
go mod download
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout code
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
- name: Install Kustomize v2
3636
run: |
3737
set -xo pipefail
@@ -58,11 +58,18 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- name: Checkout code
61-
uses: actions/checkout@v3
61+
uses: actions/checkout@v4
62+
- name: Setup Golang
63+
uses: actions/setup-go@v4
64+
with:
65+
go-version: '1.22'
66+
cache: false
67+
env:
68+
GO111MODULE: off
6269
- name: Run golangci-lint
63-
uses: golangci/golangci-lint-action@v3
70+
uses: golangci/golangci-lint-action@v5
6471
with:
65-
version: v1.52.2
72+
version: v1.57.2
6673
args: --timeout 5m
6774
test:
6875
name: Ensure unit tests are passing
@@ -73,7 +80,7 @@ jobs:
7380
- name: Setup Golang
7481
uses: actions/setup-go@v3
7582
with:
76-
go-version: '1.20'
83+
go-version: '1.22'
7784
- name: Run tests
7885
env:
7986
GNUPG_DISABLED: true

.golangci.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
run:
22
timeout: 2m
3-
skip-files:
4-
- ".*\\.pb\\.go"
5-
skip-dirs:
6-
- vendor/
73
linters:
84
enable:
5+
- gofmt
96
- vet
107
- goimports
118
- ineffassign
129
- unconvert
13-
- unparam
1410
- unused
1511
linters-settings:
1612
goimports:
1713
local-prefixes: github.com/argoproj-labs/argocd-image-updater
18-
service:
19-
golangci-lint-version: 1.52.2
14+
issues:
15+
exclude-files:
16+
- ".*\\.pb\\.go"
17+
exclude-dirs:
18+
- vendor/

Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 AS builder
1+
FROM golang:1.22 AS builder
22

33
RUN mkdir -p /src/argocd-image-updater
44
WORKDIR /src/argocd-image-updater
@@ -10,13 +10,11 @@ COPY . .
1010
RUN mkdir -p dist && \
1111
make controller
1212

13-
FROM alpine:latest
13+
FROM alpine:3.19
1414

1515
RUN apk update && \
1616
apk upgrade && \
17-
apk add ca-certificates git openssh-client python3 py3-pip tini && \
18-
pip3 install --upgrade pip && \
19-
pip3 install awscli && \
17+
apk add ca-certificates git openssh-client aws-cli tini && \
2018
rm -rf /var/cache/apk/*
2119

2220
RUN mkdir -p /usr/local/bin

docs/basics/update.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ The workflow of Argo CD Image Updater can be described as follows:
3232
* If Argo CD Image Updater considers an image from the list eligible for an
3333
update check, it will connect the corresponding container registry to see
3434
if there is a newer version of the image according to the
35-
[update strategy](../update-strategies/)
35+
[update strategy](../basics/update-strategies.md)
3636
and other constraints that may have been configured for the image (e.g.
3737
a list of tags that are allowed to consider).
3838

3939
* If a newer version of an image was found, Argo CD Image Updater will try
4040
to update the image according to the configured
41-
[update method](../update-methods/). Please note that Argo CD Image Updater will
41+
[update method](../basics/update-methods.md). Please note that Argo CD Image Updater will
4242
never update your manifests, instead it re-configures your Application
4343
sources to use the new image tag, and control is handed over to Argo CD.
4444

docs/configuration/images.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The alias you assign to any image will be reused as a key in the annotations
102102
used to define further options, so a little care should be taken when defining
103103
such a name. It's generally advised to use only alpha-numerical characters. The
104104
character `/` (forward-slash) can be used in the name, but must be referenced
105-
as `_` (underscore) in the annotation. This is a limit of Kubernetes. So for
105+
as `_` (underscore) in the annotation. This is a limitation of Kubernetes. So for
106106
example, if you assign the alias `argoproj/argocd` to your image, the
107107
appropriate key in the annotation would be referenced as `argoproj_argocd`.
108108

docs/install/installation.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Argo CD is running. Don't worry, without any configuration, it will not start me
1919
We also provide a Kustomize base in addition to the plain Kubernetes YAML
2020
manifests. You can use it as remote base and create overlays with your
2121
configuration on top of it. The remote base's URL is
22-
`https://github.com/argoproj-labs/argocd-image-updater/manifests/base`
22+
`https://github.com/argoproj-labs/argocd-image-updater/manifests/base`.
23+
You can view the manifests [here](https://github.com/argoproj-labs/argocd-image-updater/tree/stable/manifests/base)
2324

2425
### Apply the installation manifests
2526

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mkdocs==1.2.3
22
mkdocs-material==7.1.7
33
markdown_include==0.6.0
4-
pygments==2.7.4
4+
pygments==2.15.0
55
jinja2==3.0.3

0 commit comments

Comments
 (0)