Skip to content

Commit

Permalink
feat: configure log_level
Browse files Browse the repository at this point in the history
  • Loading branch information
knechtionscoding committed Apr 5, 2023
1 parent a0d7a4e commit a42c1aa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/ecr-cleanup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.8
version: 0.2.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.2.8"
appVersion: "0.2.9"
3 changes: 2 additions & 1 deletion charts/ecr-cleanup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Deploys a job that cleans up an ECR repo based on the following rules.
3. Has the container been tagged with the word `keep`
4. Is the container the only tag in the ECR repository

![Version: 0.2.8](https://img.shields.io/badge/Version-0.2.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.8](https://img.shields.io/badge/AppVersion-0.2.8-informational?style=flat-square)
![Version: 0.2.9](https://img.shields.io/badge/Version-0.2.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.9](https://img.shields.io/badge/AppVersion-0.2.9-informational?style=flat-square)

## Values

Expand All @@ -21,6 +21,7 @@ Deploys a job that cleans up an ECR repo based on the following rules.
| image.repository | string | `"knechtionscoding/ecr-cleanup"` | Image Repository |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | List of imagePullSecrets to use when getting images |
| logLevel | string | `"INFO"` | Configure Log level of application |
| nameOverride | string | `""` | Overriding the Name |
| podAnnotations | object | `{}` | Annotations to add to the pod |
| podSecurityContext | object | `{}` | Security Context for Pod |
Expand Down
3 changes: 3 additions & 0 deletions charts/ecr-cleanup/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ spec:
env:
- name: AWS_REGISTRY_ID
value: "{{ .Values.awsRegistryId }}"
- name: LOG_LEVEL
value: "{{ .Values.logLevel }}"
{{- if .Values.dryRun }}
- name: DRY_RUN
value: "{{ .Values.dryRun }}"
{{- end }}

command: {{ .Values.command }}
securityContext:
{{- toYaml .Values.securityContext | nindent 16 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/ecr-cleanup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ awsRegistryId: ""
# -- Should the tool run in dryrun
dryRun: false

# -- Configure Log level of application
logLevel: INFO

# -- List of imagePullSecrets to use when getting images
imagePullSecrets: []
# -- Overriding the Name
Expand Down

0 comments on commit a42c1aa

Please sign in to comment.