Skip to content

Commit 9b1ffa8

Browse files
authored
chore: prepare v1.0.0-beta.1 release (#512)
Prepare v1.0.0-beta.1 release Signed-off-by: Peter Engelbert <[email protected]> Signed-off-by: Peter Engelbert <[email protected]>
1 parent 6d62496 commit 9b1ffa8

File tree

29 files changed

+796
-28
lines changed

29 files changed

+796
-28
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := v0.5.0
1+
VERSION := v1.0.0-beta.1
22

33
# Image URL to use all building/pushing image targets
44
TRIVY_SCANNER_IMG ?= ghcr.io/azure/eraser-trivy-scanner:${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: 0.5.0
6-
appVersion: v0.5.0
5+
version: 1.0.0-beta.1
6+
appVersion: v1.0.0-beta.1
77
home: https://github.com/Azure/eraser
88
sources:
99
- https://github.com/Azure/eraser.git

charts/eraser/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ _See [helm install](https://helm.sh/docs/helm/helm_install/) for command documen
3333
| Parameter | Description | Default |
3434
| :-------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------ |
3535
| controllerManager.image.repository | Image repository | `ghcr.io/azure/eraser-manager` |
36-
| controllerManager.image.tag | Image tag | Current release version: `v0.5.0` |
36+
| controllerManager.image.tag | Image tag | Current release version: `v1.0.0-beta.1` |
3737
| controllerManager.image.pullPolicy | Image pull policy | `Always` |
3838
| controllerManager.securityContext | Security context applied on the container | `{ allowPrivilegeEscalation: false }` |
3939
| controllerManager.resources | The resource request/limits for the container image | limits: 0.1 CPU, 30Mi, requests: 0.1 CPU, 20Mi |
4040
| controllerManager.nodeSelector | The node selector to use for pod scheduling | `kubernetes.io/os: linux` |
4141
| controllerManager.tolerations | The tolerations to use for pod scheduling | `[]` |
4242
| controllerManager.affinity | The node affinity to use for pod scheduling | `{}` |
4343
| eraser.image.repository | Image repository for worker | `ghcr.io/azure/eraser` |
44-
| eraser.image.tag | Image tag for worker | Current release version: `v0.5.0` |
44+
| eraser.image.tag | Image tag for worker | Current release version: `v1.0.0-beta.1` |
4545
| nameOverride | Override name if needed | `""` |

charts/eraser/templates/eraser-controller-manager-deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
control-plane: controller-manager
2828
helm.sh/chart: '{{ template "eraser.name" . }}'
2929
spec:
30+
{{- if .Values.imagePullSecrets }}
31+
imagePullSecrets:
32+
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
33+
{{- end }}
3034
affinity:
3135
{{- toYaml .Values.controllerManager.affinity | nindent 8 }}
3236
containers:
@@ -42,11 +46,15 @@ spec:
4246
command:
4347
- /manager
4448
env:
49+
- name: ERASER_PULL_SECRET_NAMES
50+
value: "{{- range $i, $e := .Values.imagePullSecrets -}}{{- range $k, $v := $e }}{{- if $i -}},{{- end -}}{{- $v -}}{{- end -}}{{- end }}"
4551
- name: POD_NAMESPACE
4652
valueFrom:
4753
fieldRef:
4854
apiVersion: v1
4955
fieldPath: metadata.namespace
56+
- name: OTEL_SERVICE_NAME
57+
value: eraser-manager
5058
image: '{{ .Values.controllerManager.image.repository }}:{{ .Values.controllerManager.image.tag | default .Chart.AppVersion }}'
5159
imagePullPolicy: '{{ .Values.controllerManager.image.pullPolicy }}'
5260
livenessProbe:

charts/eraser/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ scanner:
4343
args: []
4444

4545
nameOverride: ""
46+
imagePullSecrets: []

config/manager/kustomization.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ kind: Kustomization
99
images:
1010
- name: controller
1111
newName: ghcr.io/azure/eraser-manager
12-
newTag: v0.5.0
12+
newTag: v1.0.0-beta.1
1313

1414
patches:
1515
- patch: |-
1616
- op: add
1717
path: /spec/template/spec/containers/0/args/-
18-
value: --eraser-image=ghcr.io/azure/eraser:v0.5.0
18+
value: --eraser-image=ghcr.io/azure/eraser:v1.0.0-beta.1
1919
- op: add
2020
path: /spec/template/spec/containers/0/args/-
21-
value: --collector-image=ghcr.io/azure/collector:v0.5.0
21+
value: --collector-image=ghcr.io/azure/collector:v1.0.0-beta.1
2222
- op: add
2323
path: /spec/template/spec/containers/0/args/-
24-
value: --scanner-image=ghcr.io/azure/eraser-trivy-scanner:v0.5.0
24+
value: --scanner-image=ghcr.io/azure/eraser-trivy-scanner:v1.0.0-beta.1
2525
target:
2626
kind: Deployment

deploy/eraser.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4417,9 +4417,9 @@ spec:
44174417
containers:
44184418
- args:
44194419
- --leader-elect=false
4420-
- --eraser-image=ghcr.io/azure/eraser:v0.5.0
4421-
- --collector-image=ghcr.io/azure/collector:v0.5.0
4422-
- --scanner-image=ghcr.io/azure/eraser-trivy-scanner:v0.5.0
4420+
- --eraser-image=ghcr.io/azure/eraser:v1.0.0-beta.1
4421+
- --collector-image=ghcr.io/azure/collector:v1.0.0-beta.1
4422+
- --scanner-image=ghcr.io/azure/eraser-trivy-scanner:v1.0.0-beta.1
44234423
command:
44244424
- /manager
44254425
env:
@@ -4428,7 +4428,9 @@ spec:
44284428
fieldRef:
44294429
apiVersion: v1
44304430
fieldPath: metadata.namespace
4431-
image: ghcr.io/azure/eraser-manager:v0.5.0
4431+
- name: OTEL_SERVICE_NAME
4432+
value: eraser-manager
4433+
image: ghcr.io/azure/eraser-manager:v1.0.0-beta.1
44324434
livenessProbe:
44334435
httpGet:
44344436
path: /healthz
@@ -4444,7 +4446,6 @@ spec:
44444446
periodSeconds: 10
44454447
resources:
44464448
limits:
4447-
cpu: 100m
44484449
memory: 30Mi
44494450
requests:
44504451
cpu: 100m
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
Note: metrics are not yet implemented in Eraser v0.4.x, but will be available in the upcoming v1.0.0 release.
18+
19+
<img title="manual cleanup" src="/eraser/docs/img/eraser_manual.png" />
20+
21+
## Automated analysis, scanning, and cleanup
22+
23+
<img title="automated cleanup" src="/eraser/docs/img/eraser_timer.png" />
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Code of Conduct
3+
---
4+
5+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
6+
7+
Resources:
8+
9+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
10+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
11+
- Contact [[email protected]](mailto:[email protected]) with questions or concerns
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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://azure.github.io/eraser/docs/development)
11+
12+
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
13+
14+
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
15+
16+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

0 commit comments

Comments
 (0)