Skip to content

Commit

Permalink
Merge branch 'master' into fleet-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
p-se authored Feb 29, 2024
2 parents 8d832b3 + 64fad0f commit 0870956
Show file tree
Hide file tree
Showing 19 changed files with 2,766 additions and 1,320 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: golangci/golangci-lint-action@v3.7.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.55
version: v1.56

args: --timeout=10m --config=.golangci.json

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-against-rancher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.21.*'
SETUP_GO_VERSION: '1.22.*'

jobs:
create-rancher-pr:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.suse.com/bci/golang:1.21
FROM registry.suse.com/bci/golang:1.22

ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
Expand Down
3,533 changes: 2,325 additions & 1,208 deletions charts/fleet-crd/templates/crds.yaml

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions e2e/assets/imagescan/pre-releases-ignored/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pause-prerelease
labels:
app: pause
spec:
replicas: 1
selector:
matchLabels:
app: pause
template:
metadata:
labels:
app: pause
spec:
containers:
- name: pause
image: {{.ImageWithTag}} # {"$imagescan": "test-scan"}
ports:
- containerPort: 80
21 changes: 21 additions & 0 deletions e2e/assets/imagescan/pre-releases-ignored/fleet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
imageScans:
# specify the policy to retrieve images, can be semver or alphabetical order
- policy:
# if range is specified, it will take the latest image according to semver order in the range
# for more details on how to use semver, see https://github.com/Masterminds/semver
# in this test case we're going to use prerelease versions.
# as we're specifying * semver will ignore new tags but should not crash the fleet controller
semver:
range: "*"
# can use ascending or descending order
alphabetical:
order: asc

# specify images to scan
image: {{.Image}}

# Specify the tag name, it has to be unique in the same bundle
tagName: test-scan

# Specify the scan interval
interval: 5s
21 changes: 21 additions & 0 deletions e2e/assets/imagescan/pre-releases-ok/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pause-prerelease
labels:
app: pause
spec:
replicas: 1
selector:
matchLabels:
app: pause
template:
metadata:
labels:
app: pause
spec:
containers:
- name: pause
image: {{.ImageWithTag}} # {"$imagescan": "test-scan"}
ports:
- containerPort: 80
19 changes: 19 additions & 0 deletions e2e/assets/imagescan/pre-releases-ok/fleet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
imageScans:
# specify the policy to retrieve images, can be semver or alphabetical order
- policy:
# if range is specified, it will take the latest image according to semver order in the range
# for more details on how to use semver, see https://github.com/Masterminds/semver
semver:
range: ">= 0.0.0-40"
# can use ascending or descending order
alphabetical:
order: asc

# specify images to scan
image: {{.Image}}

# Specify the tag name, it has to be unique in the same bundle
tagName: test-scan

# Specify the scan interval
interval: 5s
Loading

0 comments on commit 0870956

Please sign in to comment.