File tree Expand file tree Collapse file tree 4 files changed +12
-30
lines changed
helm/charts/k8s-image-availability-exporter Expand file tree Collapse file tree 4 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ defaults:
20
20
21
21
jobs :
22
22
tests :
23
- runs-on : " ubuntu-20.04 "
23
+ runs-on : ubuntu-latest
24
24
steps :
25
- - uses : " actions/checkout@v2 "
25
+ - uses : actions/checkout@v3
26
26
-
uses :
werf/actions/[email protected]
27
27
- name : Werf lint chart
28
28
run : cd "$CHART_DIR" && werf helm lint
29
29
- name : Werf render chart
30
30
run : cd "$CHART_DIR" && werf helm template .
31
31
publish-charts :
32
- runs-on : " ubuntu-20.04 "
32
+ runs-on : ubuntu-latest
33
33
if : " github.event_name == 'push' && github.ref == 'refs/heads/master'"
34
34
needs : tests
35
35
steps :
36
- - uses : " actions/checkout@v2 "
36
+ - uses : actions/checkout@v3
37
37
-
uses :
werf/actions/[email protected]
38
38
- name : Package werf charts
39
39
run : |
Original file line number Diff line number Diff line change @@ -15,28 +15,11 @@ jobs:
15
15
test :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/setup-go@v2
18
+ - uses : actions/setup-go@v4
19
19
with :
20
20
go-version : ' 1.19'
21
21
22
- - id : go-cache-paths
23
- run : |
24
- echo "::set-output name=go-build::$(go env GOCACHE)"
25
- echo "::set-output name=go-mod::$(go env GOMODCACHE)"
26
-
27
- - name : Go Build Cache
28
- uses : actions/cache@v2
29
- with :
30
- path : ${{ steps.go-cache-paths.outputs.go-build }}
31
- key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
32
-
33
- - name : Go Mod Cache
34
- uses : actions/cache@v2
35
- with :
36
- path : ${{ steps.go-cache-paths.outputs.go-mod }}
37
- key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
38
-
39
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v3
40
23
41
24
- name : Test With Coverage
42
25
run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
@@ -46,17 +29,19 @@ jobs:
46
29
files : coverage.txt
47
30
48
31
- name : golangci-lint
49
- uses : golangci/golangci-lint-action@v2
32
+ uses : golangci/golangci-lint-action@v3
50
33
with :
51
34
args : --timeout=5m
35
+ # since go test already does it in a previous step
36
+ skip-pkg-cache : true
52
37
build :
53
38
runs-on : ubuntu-latest
54
39
needs : test
55
40
permissions :
56
41
contents : read
57
42
packages : write
58
43
steps :
59
- - uses : actions/checkout@v2
44
+ - uses : actions/checkout@v3
60
45
# Login against a Docker registry except on PR
61
46
# https://github.com/docker/login-action
62
47
- name : Log into registry ${{ env.REGISTRY }}
Original file line number Diff line number Diff line change 1
1
k8sImageAvailabilityExporter :
2
2
image :
3
3
repository : registry.deckhouse.io/k8s-image-availability-exporter/k8s-image-availability-exporter
4
- tag : v0.3.0
4
+ tag : v0.5.1
5
5
pullPolicy : IfNotPresent
6
6
replicas : 1
7
7
resources : {}
Original file line number Diff line number Diff line change @@ -56,11 +56,8 @@ func (ci ControllerIndexers) validCi(cis *controllerWithContainerInfos) bool {
56
56
}
57
57
58
58
nsList , _ := ci .namespaceIndexer .ByIndex (labeledNSIndexName , cis .Namespace )
59
- if len (nsList ) == 0 {
60
- return false
61
- }
62
59
63
- return true
60
+ return len ( nsList ) != 0
64
61
}
65
62
66
63
func namespaceIndexers (nsLabel string ) cache.Indexers {
You can’t perform that action at this time.
0 commit comments