Skip to content

Commit eae440e

Browse files
feat: inspector-exporter 0.0.1 (#14)
1 parent c53bb03 commit eae440e

File tree

8 files changed

+354
-0
lines changed

8 files changed

+354
-0
lines changed

charts/inspector-exporter/.helmignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/inspector-exporter/Chart.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: v2
2+
name: inspector-exporter
3+
description: A Helm chart for the AWS Inspector Prometheus exporter
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.0.1
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
appVersion: 0.0.1
24+
25+
keywords:
26+
- prometheus
27+
- inspector
28+
- aws
29+
- monitoring
30+
31+
home: https://github.com/aws-exporters/charts/tree/main/charts/inspector-exporter
32+
33+
sources:
34+
- https://github.com/aws-exporters/inspector
35+
- https://aws.amazon.com/inspector/
36+
37+
maintainers:
38+
- name: js-timbirkett
39+
40+
annotations:
41+
artifacthub.io/changes: |
42+
- Inspector exporter version 0.0.1

charts/inspector-exporter/README.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# inspector-exporter
2+
3+
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)
4+
5+
A Helm chart for the AWS Inspector Prometheus exporter
6+
7+
**Homepage:** <https://github.com/aws-exporters/charts/tree/main/charts/inspector-exporter>
8+
9+
## Installation
10+
```
11+
helm repo add aws-exporters https://aws-exporters.github.io/charts/
12+
helm install inspector-exporter aws-exporters/inspector-exporter
13+
```
14+
15+
## Maintainers
16+
17+
| Name | Email | Url |
18+
| ---- | ------ | --- |
19+
| js-timbirkett | | |
20+
21+
## Source Code
22+
23+
* <https://github.com/aws-exporters/inspector>
24+
* <https://aws.amazon.com/inspector/>
25+
26+
## Values
27+
28+
| Key | Type | Default | Description |
29+
|-----|------|---------|-------------|
30+
| affinity | object | `{}` | |
31+
| env | list | `[]` | |
32+
| fullnameOverride | string | `""` | |
33+
| image.pullPolicy | string | `"Always"` | |
34+
| image.repository | string | `"ghcr.io/aws-exporters/prometheus-inspector-exporter"` | |
35+
| image.tag | string | `""` | |
36+
| imagePullSecrets | list | `[]` | |
37+
| livenessProbe.httpGet.path | string | `"/metrics"` | |
38+
| livenessProbe.httpGet.port | string | `"http"` | |
39+
| livenessProbe.initialDelaySeconds | int | `30` | |
40+
| livenessProbe.periodSeconds | int | `10` | |
41+
| livenessProbe.timeoutSeconds | int | `5` | |
42+
| nameOverride | string | `""` | |
43+
| nodeSelector | object | `{}` | |
44+
| podAnnotations | object | `{}` | |
45+
| podSecurityContext | object | `{}` | |
46+
| replicaCount | int | `1` | |
47+
| resources | object | `{}` | |
48+
| securityContext.allowPrivilegeEscalation | bool | `false` | |
49+
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
50+
| securityContext.readOnlyRootFilesystem | bool | `true` | |
51+
| securityContext.runAsNonRoot | bool | `true` | |
52+
| securityContext.runAsUser | int | `1000` | |
53+
| serviceAccount.annotations | object | `{}` | |
54+
| serviceAccount.create | bool | `true` | |
55+
| serviceAccount.name | string | `""` | |
56+
| tolerations | list | `[]` | |
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{ template "chart.header" . }}
2+
{{ template "chart.deprecationWarning" . }}
3+
4+
{{ template "chart.badgesSection" . }}
5+
6+
{{ template "chart.description" . }}
7+
8+
{{ template "chart.homepageLine" . }}
9+
10+
## Installation
11+
```
12+
helm repo add aws-exporters https://aws-exporters.github.io/charts/
13+
helm install {{ template "chart.name" . }} aws-exporters/{{ template "chart.name" . }}
14+
```
15+
16+
{{ template "chart.maintainersSection" . }}
17+
18+
{{ template "chart.sourcesSection" . }}
19+
20+
{{ template "chart.requirementsSection" . }}
21+
22+
{{ template "chart.valuesSection" . }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "inspector-exporter.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "inspector-exporter.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "inspector-exporter.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "inspector-exporter.labels" -}}
37+
helm.sh/chart: {{ include "inspector-exporter.chart" . }}
38+
{{ include "inspector-exporter.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "inspector-exporter.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "inspector-exporter.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "inspector-exporter.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "inspector-exporter.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ include "inspector-exporter.fullname" . }}
5+
labels:
6+
{{- include "inspector-exporter.labels" . | nindent 4 }}
7+
spec:
8+
replicas: {{ .Values.replicaCount }}
9+
selector:
10+
matchLabels:
11+
{{- include "inspector-exporter.selectorLabels" . | nindent 6 }}
12+
template:
13+
metadata:
14+
annotations:
15+
prometheus.io/path: "/metrics"
16+
prometheus.io/scrape: "true"
17+
prometheus.io/port: "9000"
18+
{{- with .Values.podAnnotations }}
19+
{{- toYaml . | nindent 8 }}
20+
{{- end }}
21+
labels:
22+
{{- include "inspector-exporter.selectorLabels" . | nindent 8 }}
23+
spec:
24+
{{- with .Values.imagePullSecrets }}
25+
imagePullSecrets:
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
28+
serviceAccountName: {{ include "inspector-exporter.serviceAccountName" . }}
29+
automountServiceAccountToken: false
30+
securityContext:
31+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
32+
containers:
33+
- name: {{ .Chart.Name }}
34+
securityContext:
35+
{{- toYaml .Values.securityContext | nindent 12 }}
36+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
37+
imagePullPolicy: {{ .Values.image.pullPolicy }}
38+
ports:
39+
- name: http
40+
containerPort: 9000
41+
protocol: TCP
42+
livenessProbe:
43+
{{- toYaml .Values.livenessProbe | nindent 12 }}
44+
readinessProbe:
45+
httpGet:
46+
path: /metrics
47+
port: http
48+
periodSeconds: 10
49+
timeoutSeconds: 5
50+
resources:
51+
{{- toYaml .Values.resources | nindent 12 }}
52+
{{- with .Values.env }}
53+
env:
54+
{{- toYaml . | nindent 12 }}
55+
{{- end }}
56+
{{- with .Values.nodeSelector }}
57+
nodeSelector:
58+
{{- toYaml . | nindent 8 }}
59+
{{- end }}
60+
{{- with .Values.affinity }}
61+
affinity:
62+
{{- toYaml . | nindent 8 }}
63+
{{- end }}
64+
{{- with .Values.tolerations }}
65+
tolerations:
66+
{{- toYaml . | nindent 8 }}
67+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if .Values.serviceAccount.create -}}
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: {{ include "inspector-exporter.serviceAccountName" . }}
6+
labels:
7+
{{- include "inspector-exporter.labels" . | nindent 4 }}
8+
{{- with .Values.serviceAccount.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
12+
{{- end }}

charts/inspector-exporter/values.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Default values for ecr-exporter.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
replicaCount: 1
6+
7+
image:
8+
repository: ghcr.io/aws-exporters/prometheus-inspector-exporter
9+
pullPolicy: Always
10+
# Overrides the image tag whose default is the chart appVersion.
11+
tag: ""
12+
13+
imagePullSecrets: []
14+
nameOverride: ""
15+
fullnameOverride: ""
16+
17+
serviceAccount:
18+
# Specifies whether a service account should be created
19+
create: true
20+
# Annotations to add to the service account
21+
annotations: {}
22+
# The name of the service account to use.
23+
# If not set and create is true, a name is generated using the fullname template
24+
name: ""
25+
26+
podAnnotations: {}
27+
28+
podSecurityContext: {}
29+
# fsGroup: 2000
30+
31+
securityContext:
32+
allowPrivilegeEscalation: false
33+
readOnlyRootFilesystem: true
34+
runAsNonRoot: true
35+
runAsUser: 1000
36+
capabilities:
37+
drop:
38+
- ALL
39+
40+
resources: {}
41+
# We usually recommend not to specify default resources and to leave this as a conscious
42+
# choice for the user. This also increases chances charts run on environments with little
43+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
44+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
45+
# limits:
46+
# cpu: 100m
47+
# memory: 128Mi
48+
# requests:
49+
# cpu: 100m
50+
# memory: 128Mi
51+
52+
nodeSelector: {}
53+
54+
tolerations: []
55+
56+
affinity: {}
57+
58+
env: []
59+
# - name: ECR_REGISTRY_ID
60+
# value: "112233445566"
61+
# - name: CACHE_REFRESH_INTERVAL
62+
# value: "3600"
63+
64+
livenessProbe:
65+
httpGet:
66+
path: /metrics
67+
port: http
68+
initialDelaySeconds: 30
69+
periodSeconds: 10
70+
timeoutSeconds: 5

0 commit comments

Comments
 (0)