Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: 009-multisource-helm
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.1.0

# 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: "1.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $.Values.nameOverride }}
labels:
app: test
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: test
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
replicaCount: 1
image:
name: nginx
tag: "1.17.0"
nameOverride: "009-multisource-helm"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
replicaCount: 1
image:
name: docker.io/library/nginx
tag: "latest"
nameOverride: "nginx"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
replicaCount: 1
image:
name: docker.io/library/redis
tag: "latest"
nameOverride: "redis"
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: image-updater-009
spec:
source:
path: ./008-simple-helm-app
repoURL: https://10.42.0.1:30003/testdata.git
targetRevision: HEAD
status:
health:
status: Healthy
sync:
status: Synced
summary:
images:
- gcr.io/heptio-images/ks-guestbook-demo:0.1@sha256:fe18e00a6aeece16b5b2f77a32ee60929e8a60e27c71df8df66bf804f5677f47
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: image-updater-009
spec:
source:
path: ./009-multisource-helm
repoURL: https://10.42.0.1:30003/testdata.git
targetRevision: HEAD
status:
health:
status: Healthy
sync:
status: Synced
summary:
images:
- nginx:1.17.0
---
apiVersion: v1
kind: Pod
metadata:
namespace: image-updater-e2e-009
spec:
containers:
- image: gcr.io/heptio-images/ks-guestbook-demo:0.1@sha256:fe18e00a6aeece16b5b2f77a32ee60929e8a60e27c71df8df66bf804f5677f47
- image: nginx:1.17.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Namespace
metadata:
name: image-updater-e2e-009
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: image-updater-009
annotations:
argocd-image-updater.argoproj.io/image-list: "gcr.io/heptio-images/ks-guestbook-demo:0.2,nginx:1.17.10"
argocd-image-updater.argoproj.io/update-strategy: digest
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
- repoURL: https://10.42.0.1:30003/testdata.git
path: ./008-simple-helm-app
targetRevision: HEAD
- repoURL: https://10.42.0.1:30003/testdata.git
path: ./009-multisource-helm
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: image-updater-e2e-009
syncPolicy:
automated: {}
retry:
limit: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: image-updater-009
spec:
source:
path: ./008-simple-helm-app
repoURL: https://10.42.0.1:30003/testdata.git
targetRevision: HEAD
status:
health:
status: Healthy
sync:
status: Synced
summary:
images:
- gcr.io/heptio-images/ks-guestbook-demo:0.2@sha256:e6fbd640820c32c847a53b93eb7b404f25ffb56df1cc16d0711eec3a405d6509
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: image-updater-009
spec:
source:
path: ./009-multisource-helm
repoURL: https://10.42.0.1:30003/testdata.git
targetRevision: HEAD
status:
health:
status: Healthy
sync:
status: Synced
summary:
images:
- nginx:1.17.10
---
apiVersion: v1
kind: Pod
metadata:
namespace: image-updater-e2e-009
spec:
containers:
- image: gcr.io/heptio-images/ks-guestbook-demo:0.2@sha256:e6fbd640820c32c847a53b93eb7b404f25ffb56df1cc16d0711eec3a405d6509
- image: nginx:1.17.10
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
${SRC_DIR}/dist/argocd-image-updater run --once \
--argocd-namespace argocd-image-updater-e2e \
--registries-conf-path ${SRC_DIR}/test/e2e/assets/registries.conf \
--loglevel debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 120
delete:
- apiVersion: argoproj.io/v1alpha1
kind: Application
name: image-updater-009
- apiVersion: v1
kind: Namespace
name: image-updater-e2e-009
Loading