Skip to content

Commit ef4af34

Browse files
chore: Prepare v1.4.0-beta.0 release (#949)
Signed-off-by: Sertac Ozercan <[email protected]> Co-authored-by: ashnamehrotra <[email protected]>
1 parent 0dd595c commit ef4af34

File tree

27 files changed

+1031
-31
lines changed

27 files changed

+1031
-31
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := v1.3.0-beta.0
1+
VERSION := v1.4.0-beta.0
22

33
MANAGER_TAG ?= ${VERSION}
44
TRIVY_SCANNER_TAG ?= ${VERSION}

charts/eraser/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: eraser
33
description: A Helm chart for Eraser
44
type: application
5-
version: 1.3.0-beta.0
6-
appVersion: v1.3.0-beta.0
5+
version: 1.4.0-beta.0
6+
appVersion: v1.4.0-beta.0
77
home: https://github.com/eraser-dev/eraser
88
sources:
99
- https://github.com/eraser-dev/eraser.git

charts/eraser/values.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
runtimeConfig:
2-
apiVersion: eraser.sh/v1alpha2
2+
apiVersion: eraser.sh/v1alpha3
33
kind: EraserConfig
44
health: {}
55
# healthProbeBindAddress: :8081
@@ -11,7 +11,9 @@ runtimeConfig:
1111
# leaderElect: true
1212
# resourceName: e29e094a.k8s.io
1313
manager:
14-
runtime: containerd
14+
runtime:
15+
name: containerd
16+
address: unix:///run/containerd/containerd.sock
1517
otlpEndpoint: ""
1618
logLevel: info
1719
scheduling: {}
@@ -37,7 +39,7 @@ runtimeConfig:
3739
enabled: true
3840
image:
3941
# repo: ""
40-
tag: "v1.3.0-beta.0"
42+
tag: "v1.4.0-beta.0"
4143
request: {}
4244
# mem: ""
4345
# cpu: ""
@@ -48,7 +50,7 @@ runtimeConfig:
4850
enabled: true
4951
image:
5052
# repo: ""
51-
tag: "v1.3.0-beta.0"
53+
tag: "v1.4.0-beta.0"
5254
request: {}
5355
# mem: ""
5456
# cpu: ""
@@ -72,13 +74,14 @@ runtimeConfig:
7274
# - HIGH
7375
# - MEDIUM
7476
# - LOW
77+
# ignoredStatuses:
7578
# timeout:
7679
# total: 23h
7780
# perImage: 1h
7881
remover:
7982
image:
8083
# repo: ""
81-
tag: "v1.3.0-beta.0"
84+
tag: "v1.4.0-beta.0"
8285
request: {}
8386
# mem: ""
8487
# cpu: ""
@@ -91,7 +94,7 @@ deploy:
9194
repo: ghcr.io/eraser-dev/eraser-manager
9295
pullPolicy: IfNotPresent
9396
# Overrides the image tag whose default is the chart appVersion.
94-
tag: "v1.3.0-beta.0"
97+
tag: "v1.4.0-beta.0"
9598
additionalArgs: []
9699
priorityClassName: ""
97100

deploy/eraser.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,12 @@ subjects:
382382
apiVersion: v1
383383
data:
384384
controller_manager_config.yaml: |
385-
apiVersion: eraser.sh/v1alpha2
385+
apiVersion: eraser.sh/v1alpha3
386386
kind: EraserConfig
387387
manager:
388-
runtime: containerd
388+
runtime:
389+
name: containerd
390+
address: unix:///run/containerd/containerd.sock
389391
otlpEndpoint: ""
390392
logLevel: info
391393
scheduling:
@@ -411,7 +413,7 @@ data:
411413
enabled: true
412414
image:
413415
repo: ghcr.io/eraser-dev/collector
414-
tag: v1.3.0-beta.0
416+
tag: v1.4.0-beta.0
415417
request:
416418
mem: 25Mi
417419
cpu: 7m
@@ -423,7 +425,7 @@ data:
423425
enabled: true
424426
image:
425427
repo: ghcr.io/eraser-dev/eraser-trivy-scanner # supply custom image for custom scanner
426-
tag: v1.3.0-beta.0
428+
tag: v1.4.0-beta.0
427429
request:
428430
mem: 500Mi
429431
cpu: 1000m
@@ -453,13 +455,14 @@ data:
453455
- HIGH
454456
- MEDIUM
455457
- LOW
458+
ignoredStatuses:
456459
timeout:
457460
total: 23h
458461
perImage: 1h
459462
remover:
460463
image:
461464
repo: ghcr.io/eraser-dev/remover
462-
tag: v1.3.0-beta.0
465+
tag: v1.4.0-beta.0
463466
request:
464467
mem: 25Mi
465468
# https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run
@@ -502,7 +505,7 @@ spec:
502505
fieldPath: metadata.namespace
503506
- name: OTEL_SERVICE_NAME
504507
value: eraser-manager
505-
image: ghcr.io/eraser-dev/eraser-manager:v1.3.0-beta.0
508+
image: ghcr.io/eraser-dev/eraser-manager:v1.4.0-beta.0
506509
livenessProbe:
507510
httpGet:
508511
path: /healthz
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Architecture
3+
---
4+
At a high level, Eraser has two main modes of operation: manual and automated.
5+
6+
Manual image removal involves supplying a list of images to remove; Eraser then
7+
deploys pods to clean up the images you supplied.
8+
9+
Automated image removal runs on a timer. By default, the automated process
10+
removes images based on the results of a vulnerability scan. The default
11+
vulnerability scanner is Trivy, but others can be provided in its place. Or,
12+
the scanner can be disabled altogether, in which case Eraser acts as a garbage
13+
collector -- it will remove all non-running images in your cluster.
14+
15+
## Manual image cleanup
16+
17+
<img title="manual cleanup" src="/eraser/docs/img/eraser_manual.png" />
18+
19+
## Automated analysis, scanning, and cleanup
20+
21+
<img title="automated cleanup" src="/eraser/docs/img/eraser_timer.png" />
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Code of Conduct
3+
---
4+
5+
This project has adopted the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
6+
7+
Resources:
8+
9+
- [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md)
10+
- [Code of Conduct Reporting](https://github.com/cncf/foundation/blob/main/code-of-conduct.md)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Contributing
3+
---
4+
5+
There are several ways to get involved with Eraser
6+
7+
- Join the [mailing list](https://groups.google.com/u/1/g/eraser-dev) to get notifications for releases, security announcements, etc.
8+
- Participate in the [biweekly community meetings](https://docs.google.com/document/d/1Sj5u47K3WUGYNPmQHGFpb52auqZb1FxSlWAQnPADhWI/edit) to disucss development, issues, use cases, etc.
9+
- Join the `#eraser` channel on the [Kubernetes Slack](https://slack.k8s.io/)
10+
- View the [development setup instructions](https://eraser-dev.github.io/eraser/docs/development)
11+
12+
This project welcomes contributions and suggestions.
13+
14+
This project has adopted the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Custom Scanner
3+
---
4+
5+
## Creating a Custom Scanner
6+
To create a custom scanner for non-compliant images, use the following [template](https://github.com/eraser-dev/eraser-scanner-template/).
7+
8+
In order to customize your scanner, start by creating a `NewImageProvider()`. The ImageProvider interface can be found can be found [here](../../pkg/scanners/template/scanner_template.go).
9+
10+
The ImageProvider will allow you to retrieve the list of all non-running and non-excluded images from the collector container through the `ReceiveImages()` function. Process these images with your customized scanner and threshold, and use `SendImages()` to pass the images found non-compliant to the eraser container for removal. Finally, complete the scanning process by calling `Finish()`.
11+
12+
When complete, provide your custom scanner image to Eraser in deployment.

0 commit comments

Comments
 (0)