Skip to content

Commit

Permalink
chore: Prepare v1.3.1 release
Browse files Browse the repository at this point in the history
Signed-off-by: ashnamehrotra <[email protected]>
  • Loading branch information
ashnamehrotra committed Feb 1, 2024
1 parent 4eef4e6 commit 1ba9a73
Show file tree
Hide file tree
Showing 31 changed files with 1,096 additions and 108 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := v1.3.0
VERSION := v1.3.1

MANAGER_TAG ?= ${VERSION}
TRIVY_SCANNER_TAG ?= ${VERSION}
Expand Down
4 changes: 2 additions & 2 deletions charts/eraser/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: eraser
description: A Helm chart for Eraser
type: application
version: 1.3.0
appVersion: v1.3.0
version: 1.3.1
appVersion: v1.3.1
home: https://github.com/eraser-dev/eraser
sources:
- https://github.com/eraser-dev/eraser.git

This file was deleted.

41 changes: 0 additions & 41 deletions charts/eraser/templates/eraser-manager-role-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ metadata:
helm.sh/chart: '{{ template "eraser.name" . }}'
name: eraser-manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
Expand All @@ -29,29 +17,6 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- podtemplates
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
resources:
Expand All @@ -61,8 +26,6 @@ rules:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
Expand All @@ -77,12 +40,8 @@ rules:
resources:
- imagelists
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
Expand Down
47 changes: 47 additions & 0 deletions charts/eraser/templates/eraser-manager-role-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/instance: '{{ .Release.Name }}'
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
app.kubernetes.io/name: '{{ template "eraser.name" . }}'
helm.sh/chart: '{{ template "eraser.name" . }}'
name: eraser-manager-role
namespace: '{{ .Release.Namespace }}'
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- podtemplates
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
labels:
app.kubernetes.io/instance: '{{ .Release.Name }}'
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
app.kubernetes.io/name: '{{ template "eraser.name" . }}'
helm.sh/chart: '{{ template "eraser.name" . }}'
name: eraser-imagejob-pods-cluster-rolebinding
name: eraser-manager-rolebinding
namespace: '{{ .Release.Namespace }}'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: eraser-imagejob-pods-cluster-role
kind: Role
name: eraser-manager-role
subjects:
- kind: ServiceAccount
name: eraser-imagejob-pods
name: eraser-controller-manager
namespace: '{{ .Release.Namespace }}'
8 changes: 4 additions & 4 deletions charts/eraser/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runtimeConfig:
enabled: true
image:
# repo: ""
tag: "v1.3.0"
tag: "v1.3.1"
request: {}
# mem: ""
# cpu: ""
Expand All @@ -50,7 +50,7 @@ runtimeConfig:
enabled: true
image:
# repo: ""
tag: "v1.3.0"
tag: "v1.3.1"
request: {}
# mem: ""
# cpu: ""
Expand Down Expand Up @@ -81,7 +81,7 @@ runtimeConfig:
remover:
image:
# repo: ""
tag: "v1.3.0"
tag: "v1.3.1"
request: {}
# mem: ""
# cpu: ""
Expand All @@ -94,7 +94,7 @@ deploy:
repo: ghcr.io/eraser-dev/eraser-manager
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v1.3.0"
tag: "v1.3.1"
additionalArgs: []
priorityClassName: ""

Expand Down
55 changes: 26 additions & 29 deletions deploy/eraser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,11 @@ metadata:
namespace: eraser-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: eraser-imagejob-pods-cluster-role
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: Role
metadata:
creationTimestamp: null
name: eraser-manager-role
namespace: eraser-system
rules:
- apiGroups:
- ""
Expand All @@ -284,33 +279,40 @@ rules:
- apiGroups:
- ""
resources:
- nodes
- pods
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- pods
- podtemplates
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: eraser-manager-role
rules:
- apiGroups:
- ""
resources:
- podtemplates
- nodes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
Expand All @@ -321,8 +323,6 @@ rules:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
Expand All @@ -337,12 +337,8 @@ rules:
resources:
- imagelists
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
Expand All @@ -354,16 +350,17 @@ rules:
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: eraser-imagejob-pods-cluster-rolebinding
name: eraser-manager-rolebinding
namespace: eraser-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: eraser-imagejob-pods-cluster-role
kind: Role
name: eraser-manager-role
subjects:
- kind: ServiceAccount
name: eraser-imagejob-pods
name: eraser-controller-manager
namespace: eraser-system
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -413,7 +410,7 @@ data:
enabled: true
image:
repo: ghcr.io/eraser-dev/collector
tag: v1.3.0
tag: v1.3.1
request:
mem: 25Mi
cpu: 7m
Expand All @@ -425,7 +422,7 @@ data:
enabled: true
image:
repo: ghcr.io/eraser-dev/eraser-trivy-scanner # supply custom image for custom scanner
tag: v1.3.0
tag: v1.3.1
request:
mem: 500Mi
cpu: 1000m
Expand Down Expand Up @@ -462,7 +459,7 @@ data:
remover:
image:
repo: ghcr.io/eraser-dev/remover
tag: v1.3.0
tag: v1.3.1
request:
mem: 25Mi
# https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run
Expand Down Expand Up @@ -505,7 +502,7 @@ spec:
fieldPath: metadata.namespace
- name: OTEL_SERVICE_NAME
value: eraser-manager
image: ghcr.io/eraser-dev/eraser-manager:v1.3.0
image: ghcr.io/eraser-dev/eraser-manager:v1.3.1
livenessProbe:
httpGet:
path: /healthz
Expand Down
21 changes: 21 additions & 0 deletions docs/versioned_docs/version-v1.3.1/architecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Architecture
---
At a high level, Eraser has two main modes of operation: manual and automated.

Manual image removal involves supplying a list of images to remove; Eraser then
deploys pods to clean up the images you supplied.

Automated image removal runs on a timer. By default, the automated process
removes images based on the results of a vulnerability scan. The default
vulnerability scanner is Trivy, but others can be provided in its place. Or,
the scanner can be disabled altogether, in which case Eraser acts as a garbage
collector -- it will remove all non-running images in your cluster.

## Manual image cleanup

<img title="manual cleanup" src="/eraser/docs/img/eraser_manual.png" />

## Automated analysis, scanning, and cleanup

<img title="automated cleanup" src="/eraser/docs/img/eraser_timer.png" />
10 changes: 10 additions & 0 deletions docs/versioned_docs/version-v1.3.1/code-of-conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Code of Conduct
---

This project has adopted the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).

Resources:

- [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md)
- [Code of Conduct Reporting](https://github.com/cncf/foundation/blob/main/code-of-conduct.md)
Loading

0 comments on commit 1ba9a73

Please sign in to comment.