Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging is prod #22

Merged
merged 174 commits into from
Dec 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
81ab843
4s is too aggressive
Dec 1, 2021
33f4dc2
the next Flux kustomization occasionally spamming
Dec 2, 2021
e3c5cf4
deis-example clusterrole
Dec 3, 2021
4a13b69
upgrade to rbac/v1
Dec 3, 2021
b6b6b75
forget this example
Dec 3, 2021
42bad0c
revert kustomization changes
Dec 3, 2021
447cca4
enable wait: true to block on health checks
yebyen Dec 3, 2021
faa6da0
since we have some traefik API resources
yebyen Dec 3, 2021
1507977
Merge branch 'health-check-crd' into staging
yebyen Dec 3, 2021
6d0e4f5
upgrade from kustomization v1beta1 to beta2
yebyen Dec 3, 2021
1a1356a
finish upgrading
yebyen Dec 3, 2021
ea636b4
Merge branch 'v1beta2' into staging
yebyen Dec 3, 2021
d7beccc
"disable validation"
Dec 6, 2021
826b57e
Merge pull request #19 from kingdonb/remove-validation
Dec 6, 2021
df20c05
deploy kuby app (kuby-test)
Dec 7, 2021
95f519d
make something wrong
Dec 8, 2021
92b708c
Revert "make something wrong"
Dec 8, 2021
80efdce
add traefik ingressroute for dashboard + htpasswd
Dec 10, 2021
4a21b52
enable certificates generation for dashboard
Dec 10, 2021
76e3b37
traefik will not use the builtin cert for kubytest
Dec 10, 2021
9ce2c61
use provider namespace for tls certresolver
Dec 10, 2021
64457dd
myresolver.acme
Dec 10, 2021
6c6a725
'myresolver' was probably correct
Dec 10, 2021
d675caa
a new kuby-tester image was pushed
Dec 10, 2021
7832889
rookie mistake
Dec 10, 2021
8f518a4
add an annotation to enable tls
Dec 10, 2021
7d53645
holy hell how did I miss this
Dec 10, 2021
2ca5eab
try including the resolver again
Dec 10, 2021
b4c15a8
no resolvers
Dec 10, 2021
7d385ce
get config from a central place
Dec 10, 2021
dc23082
correct syntax error
Dec 10, 2021
d66b406
kubytest-release-config
Dec 10, 2021
315d474
use myresolver
Dec 10, 2021
b916a4e
Revert "use myresolver"
Dec 10, 2021
f93f6ee
kuby deploy
yebyen Dec 11, 2021
5000092
enable flux ImageupdateAutomation in kuby-test app
Dec 11, 2021
40bcfad
Merge pull request #20 from kingdonb/image-update-automation
Dec 11, 2021
31a0d01
correct namespaces
Dec 11, 2021
14f406e
clean up exported secret
Dec 11, 2021
b27dfd5
correct one more misplaced namespace
Dec 11, 2021
7e740b4
point correctly at staging branch
Dec 11, 2021
2532f09
reify namespace error in image policy
Dec 11, 2021
cedd938
ghcr.io/kingdonb/kuby-tester:20211211165754
fluxcdbot Dec 11, 2021
73707a2
fixup
Dec 11, 2021
5444a54
ghcr.io/kingdonb/kuby-tester:20211211165754
fluxcdbot Dec 11, 2021
5e34569
increase intervals
Dec 11, 2021
f19011b
add an image webhook for kuby-tester
Dec 11, 2021
e7fef4e
ghcr.io/kingdonb/kuby-tester:20211211181306
fluxcdbot Dec 11, 2021
5998ade
validated the contents of the receiver
Dec 11, 2021
fc1f0b7
generic-hmac receiver type
Dec 11, 2021
825d75d
resources refs have to be specific (!!)
Dec 11, 2021
2826248
for some reason ghcr.io package hooks only work as
Dec 11, 2021
e75743a
ghcr.io/kingdonb/kuby-tester:20211211185609
fluxcdbot Dec 11, 2021
fef6c6f
ghcr.io/kingdonb/kuby-tester:20211211191718
fluxcdbot Dec 11, 2021
fd50b7c
still have to find a way to update these ...
Dec 11, 2021
603ad13
ghcr.io/kingdonb/kuby-tester:20211211193452
fluxcdbot Dec 11, 2021
1c7e74a
fixup for the next demo - it will be smoother
Dec 11, 2021
86de853
add tls for blog
Dec 13, 2021
32e51e4
Revert "add tls for blog"
Dec 13, 2021
70b3b30
ghcr.io/kingdonb/kuby-tester:20211213142638
fluxcdbot Dec 13, 2021
18d154e
I have a feeling this will work without the race
Dec 13, 2021
0c6d257
ghcr.io/kingdonb/kuby-tester:20211213143734
fluxcdbot Dec 13, 2021
bec774c
ghcr.io/kingdonb/kuby-tester:20211213194940
fluxcdbot Dec 13, 2021
8b5a13f
ghcr.io/kingdonb/kuby-tester:20211213205123
fluxcdbot Dec 13, 2021
f8a952c
ghcr.io/kingdonb/kuby-tester:20211213205744
fluxcdbot Dec 13, 2021
30e039e
ghcr.io/kingdonb/kuby-tester:20211213210349
fluxcdbot Dec 13, 2021
61c6fa1
wait until assets image is pushed to begin rollout
Dec 13, 2021
43a3ed7
ghcr.io/kingdonb/kuby-tester:20211213210349-assets
fluxcdbot Dec 13, 2021
4450c76
ghcr.io/kingdonb/kuby-tester:20211213211745-assets
fluxcdbot Dec 13, 2021
5c73882
ghcr.io/kingdonb/kuby-tester:20211213212345-assets
fluxcdbot Dec 13, 2021
64eb850
ghcr.io/kingdonb/kuby-tester:20211214121451-assets
fluxcdbot Dec 14, 2021
69de634
ghcr.io/kingdonb/kuby-tester:20211214123006-assets
fluxcdbot Dec 14, 2021
093d401
ghcr.io/kingdonb/kuby-tester:20211214141451-assets
fluxcdbot Dec 14, 2021
e24badc
ghcr.io/kingdonb/kuby-tester:20211214142213-assets
fluxcdbot Dec 14, 2021
86f38e8
ghcr.io/kingdonb/kuby-tester:20211214155610-assets
fluxcdbot Dec 14, 2021
cb20f12
try an illegal setting
Dec 15, 2021
9af9c9f
15m interval again
Dec 15, 2021
955c8e1
ghcr.io/kingdonb/kuby-tester:20211215174458-assets
fluxcdbot Dec 15, 2021
44aa31b
suspend 32-keycloak kustomization temporarily
Dec 17, 2021
b21d289
ghcr.io/kingdonb/kuby-tester:20211217162245-assets
fluxcdbot Dec 17, 2021
f8ccad3
ghcr.io/kingdonb/kuby-tester:20211217162433-assets
fluxcdbot Dec 17, 2021
0a1d5eb
pin a version that passed CI
Dec 17, 2021
5fe7bc9
ghcr.io/kingdonb/kuby-tester:20211217164810-assets
fluxcdbot Dec 17, 2021
f0f8292
ghcr.io/kingdonb/kuby-tester:20211217190056-assets
fluxcdbot Dec 17, 2021
e23d1d2
ghcr.io/kingdonb/kuby-tester:20211217192700-assets
fluxcdbot Dec 17, 2021
0dadfeb
ghcr.io/kingdonb/kuby-tester:20211217195225-assets
fluxcdbot Dec 17, 2021
c783480
ghcr.io/kingdonb/kuby-tester:20211217203437-assets
fluxcdbot Dec 17, 2021
13ed13b
apply manifest updates from upstream
Dec 17, 2021
d3bf061
ghcr.io/kingdonb/kuby-tester:20211217210004-assets
fluxcdbot Dec 17, 2021
5f437ef
ghcr.io/kingdonb/kuby-tester:20211218160220-assets
fluxcdbot Dec 18, 2021
d191f59
ghcr.io/kingdonb/kuby-tester:20211218230331-assets
fluxcdbot Dec 18, 2021
f0fd110
no longer depend on the default ingress class
Dec 19, 2021
18ea368
add the ingressClassName
Dec 19, 2021
70fa8c8
add traefik ingressclass
Dec 19, 2021
ee7daca
re-enable webhook by setting traefik ingressclass
Dec 19, 2021
f190bb3
fixup traefik ingressclass
Dec 19, 2021
1d01277
make blog tls again
Dec 19, 2021
be72087
make a prodresolver
Dec 19, 2021
5d52bc3
use the prod letsencrypt
Dec 19, 2021
35770b1
use this persistent volume
Dec 19, 2021
8b23561
add an insecure endpoint for the blog
Dec 19, 2021
e2ba259
try without this wizard shiz
Dec 19, 2021
6f53f82
add vpn ingressroute through traefik
Dec 19, 2021
e2a49be
there is no alternate Service kind for TCP ingress
Dec 19, 2021
7aed493
oh right this was a public service
Dec 19, 2021
54de8c5
add minio-stage for prebundler
Dec 19, 2021
cf2a232
fixup helmrelease
Dec 19, 2021
47e90f6
add minio
Dec 19, 2021
33272e0
add flux-kustomization for minio-stage
Dec 19, 2021
ac9121f
ghcr.io/kingdonb/kuby-tester:20211219224545-assets
fluxcdbot Dec 19, 2021
bb4a900
ghcr.io/kingdonb/kuby-tester:20211219224852-assets
fluxcdbot Dec 19, 2021
dc5d310
hey IngressRoute for minio
Dec 19, 2021
253e5bb
ghcr.io/kingdonb/kuby-tester:20211219234033-assets
fluxcdbot Dec 19, 2021
a611fd0
ghcr.io/kingdonb/kuby-tester:20211219235329-assets
fluxcdbot Dec 20, 2021
421040f
ghcr.io/kingdonb/kuby-tester:20211220001056-assets
fluxcdbot Dec 20, 2021
c9236e2
ghcr.io/kingdonb/kuby-tester:20211220003600-assets
fluxcdbot Dec 20, 2021
e92b40b
ghcr.io/kingdonb/kuby-tester:20211220010200-assets
fluxcdbot Dec 20, 2021
6a9269d
ghcr.io/kingdonb/kuby-tester:20211220010954-assets
fluxcdbot Dec 20, 2021
4308a2c
ghcr.io/kingdonb/kuby-tester:20211220011224-assets
fluxcdbot Dec 20, 2021
f9630e0
ghcr.io/kingdonb/kuby-tester:20211220011541-assets
fluxcdbot Dec 20, 2021
3a934ff
set up new image update automation things
Dec 20, 2021
9ccc036
wait for ready states
Dec 20, 2021
849ea18
ghcr.io/kingdonb/kuby-tester:20211220022019
fluxcdbot Dec 20, 2021
04b4771
ghcr.io/kingdonb/kuby-tester:20211220022019-assets
fluxcdbot Dec 20, 2021
6dd0659
ghcr.io/kingdonb/kuby-tester:20211220024409
fluxcdbot Dec 20, 2021
b7f6220
ghcr.io/kingdonb/kuby-tester:20211220024409-assets
fluxcdbot Dec 20, 2021
8e67551
ghcr.io/kingdonb/kuby-tester:20211220025549
fluxcdbot Dec 20, 2021
c970eac
ghcr.io/kingdonb/kuby-tester:20211220025549-assets
fluxcdbot Dec 20, 2021
3661cdf
let's try patching with a patch
Dec 20, 2021
fdff14e
let's try something that doesn't make sense
Dec 20, 2021
f5e31cc
ghcr.io/kingdonb/kuby-tester:20211221214228
fluxcdbot Dec 21, 2021
515d612
ghcr.io/kingdonb/kuby-tester:20211221214228-assets
fluxcdbot Dec 21, 2021
aeebbdd
ghcr.io/kingdonb/kuby-tester:20211221214618
fluxcdbot Dec 21, 2021
3db31be
ghcr.io/kingdonb/kuby-tester:20211221224641
fluxcdbot Dec 21, 2021
4d4b74f
ghcr.io/kingdonb/kuby-tester:20211221224641-assets
fluxcdbot Dec 21, 2021
b2f33af
add routers app
Dec 23, 2021
67ff93d
add socryx-topled routes
Dec 23, 2021
30fb016
make socryx-topled ingressroute + tcp live
Dec 23, 2021
654d0eb
add more minio traefik routers
Dec 24, 2021
a239256
add juozas-storage
Dec 24, 2021
5ed4771
Merge pull request #21 from kingdonb/juozas-storage
Dec 24, 2021
d76e09b
add some changes to Hephy (beta workflow release)
Dec 29, 2021
b9082bd
patch deis-controller image to use canary build
Dec 29, 2021
9727cf1
add a rule to the ClusterRole deis-controller
Dec 29, 2021
b44da35
include the whole thing
Dec 29, 2021
c2f1f5c
do not include helm garbage whoops
Dec 29, 2021
d570d0c
add chartmuseum helmrepo
Dec 29, 2021
7d83b39
add flux kustomization for chartmuseum
Dec 29, 2021
b122e3b
host a chartmuseum in our kustomize overlay
Dec 29, 2021
1ee30a0
fix this error from an unused config
Dec 29, 2021
b8544d3
add secret to chartmuseum namespace for minio
Dec 29, 2021
e7b1525
move the helmrepo to the chartmuseum ns
Dec 29, 2021
de57193
the chartmuseum installed
Dec 29, 2021
4f55a6c
add an ingressroute and tcp route for charts-beta
Dec 29, 2021
f1fc3b4
whoops
Dec 29, 2021
ffa82fc
try with published beta chart
Dec 29, 2021
3721bb8
kuby-test should depend on infrastructure
Dec 29, 2021
04877a2
add an encrypted copy of the kubytest-tls cert
Dec 29, 2021
be619b3
doh
Dec 29, 2021
de2a048
ghcr.io/kingdonb/kuby-tester:20211229210454
fluxcdbot Dec 29, 2021
f8b2538
ghcr.io/kingdonb/kuby-tester:20211229210454-assets
fluxcdbot Dec 29, 2021
11eaa74
ghcr.io/kingdonb/kuby-tester:20211229211747
fluxcdbot Dec 29, 2021
f5a0330
ghcr.io/kingdonb/kuby-tester:20211229211747-assets
fluxcdbot Dec 29, 2021
462579e
the chartmuseum runs off of minio-stage
Dec 30, 2021
51451b6
persistence fails to come up sometimes
yebyen Dec 30, 2021
5e2ad27
these should not be started
yebyen Dec 30, 2021
2ec7789
hephy will not start well if ingress is not ready
Dec 30, 2021
a893e45
this is a bad habit
Dec 30, 2021
6dd441d
patch deis-builder with a new image
Dec 30, 2021
029bd9e
this was unnecessary
Dec 30, 2021
6551237
add harbor helmrelease
Dec 30, 2021
06ef64b
harbor will depend on the local-path-provisioner
Dec 30, 2021
17c3df3
make kustomization.yaml
Dec 30, 2021
dcd147a
Merge pull request #23 from kingdonb/harbor
Dec 31, 2021
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
11 changes: 11 additions & 0 deletions apps/base/hephy/hephy-workflow-beta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: hephy-workflow-beta
namespace: deis
spec:
interval: 1m0s
ref:
branch: main
url: https://github.com/kingdonb/hephy-workflow-beta
1 change: 1 addition & 0 deletions apps/base/hephy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ kind: Kustomization
resources:
- helmrelease-deis-hephy.yaml
- teamhephy-repo.yaml
- hephy-workflow-beta.yaml
4 changes: 4 additions & 0 deletions apps/base/minio/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- minio-stage-ns.yaml
4 changes: 4 additions & 0 deletions apps/base/minio/minio-stage-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# apiVersion: v1
# kind: Namespace
# metadata:
# name: minio-stage
3 changes: 2 additions & 1 deletion apps/base/traefik/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ spec:
name: storage-volume
volumes:
- name: storage-volume
emptyDir: {}
persistentVolumeClaim:
claimName: traefik-tls
35 changes: 35 additions & 0 deletions apps/chartmuseum/charts-beta-ingressroute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: charts-beta-public-access
namespace: chartmuseum
spec:
entryPoints:
- web
routes:
- kind: Rule
match: Host(`charts-beta.hephy.pro`)
services:
- kind: Service
name: chartmuseum-chartmuseum
namespace: chartmuseum
port: 8080
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: charts-beta-public-access-https
namespace: chartmuseum
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`charts-beta.hephy.pro`)
services:
- kind: Service
name: chartmuseum-chartmuseum
namespace: chartmuseum
port: 8080
tls:
certResolver: prodresolver
36 changes: 36 additions & 0 deletions apps/chartmuseum/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: chartmuseum
namespace: chartmuseum
spec:
chart:
spec:
chart: chartmuseum
sourceRef:
kind: HelmRepository
name: chartmuseum
targetNamespace: chartmuseum
storageNamespace: chartmuseum
interval: 15m0s
values:
env:
open:
STORAGE: amazon
STORAGE_AMAZON_BUCKET: charts-beta
STORAGE_AMAZON_PREFIX:
STORAGE_AMAZON_REGION: us-east-1
STORAGE_AMAZON_ENDPOINT: https://minio.hephy.pro
# secret:
# AWS_ACCESS_KEY_ID: "********" ## aws access key id value
# AWS_SECRET_ACCESS_KEY: "********" ## aws access key secret value
valuesFrom:
- kind: Secret
name: minio-user
valuesKey: accesskey
targetPath: env.secret.AWS_ACCESS_KEY_ID
- kind: Secret
name: minio-user
valuesKey: secretkey
targetPath: env.secret.AWS_SECRET_ACCESS_KEY
10 changes: 10 additions & 0 deletions apps/chartmuseum/helmrepo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: chartmuseum
namespace: chartmuseum
spec:
interval: 1h1m49s
url: https://chartmuseum.github.io/charts

14 changes: 14 additions & 0 deletions apps/harbor/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: harbor
spec:
chart:
spec:
chart: harbor
sourceRef:
kind: HelmRepository
name: harbor
version: 1.8.1
interval: 15m15s
timeout: 10m0s
9 changes: 9 additions & 0 deletions apps/harbor/helmrepo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: harbor
spec:
interval: 1h1m49s
url: https://helm.goharbor.io

6 changes: 6 additions & 0 deletions apps/harbor/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: harbor
resources:
- helmrelease.yaml
- helmrepo.yaml
21 changes: 20 additions & 1 deletion apps/hephy/blog-ingressroute.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: blog
name: blog-insecure
spec:
entryPoints:
- web
Expand All @@ -13,3 +14,21 @@ spec:
name: blog
namespace: blog
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: blog
spec:
entryPoints:
- websecure
routes:
- match: Host(`blog.teamhephy.info`)
kind: Rule
services:
- kind: Service
name: blog
namespace: blog
port: 80
tls:
certResolver: prodresolver
31 changes: 28 additions & 3 deletions apps/hephy/hephy-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,42 @@ spec:
chart:
spec:
sourceRef:
kind: HelmRepository
name: teamhephy
kind: GitRepository
name: hephy-workflow-beta
namespace: deis
version: 2.23.0
version: ^2.24.0-0
interval: 15m15s
timeout: 10m0s
storageNamespace: deis
targetNamespace: deis
dependsOn:
- namespace: ingress-nginx
name: internal-ingress
- namespace: ingress-nginx
name: public-ingress
postRenderers:
- kustomize:
patchesStrategicMerge:
# - kind: Deployment
# apiVersion: apps/v1
# metadata:
# name: deis-builder
# spec:
# template:
# spec:
# containers:
# - name: deis-builder
# image: kingdonb/builder:git-a3cb9b2
- kind: Deployment
apiVersion: apps/v1
metadata:
name: deis-controller
spec:
template:
spec:
containers:
- name: deis-controller
image: kingdonb/controller:git-7beda111
- kind: Service
apiVersion: v1
metadata:
Expand Down
2 changes: 1 addition & 1 deletion apps/keycloak/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace: keycloak
resources:
- keycloak-ingress.yaml
- keycloak-db-user-configmap.yaml
- https://raw.githubusercontent.com/keycloak/keycloak-quickstarts/latest/kubernetes-examples/keycloak.yaml
- https://raw.githubusercontent.com/keycloak/keycloak-quickstarts/15.1.0/kubernetes-examples/keycloak.yaml
patchesStrategicMerge:
- |-
apiVersion: v1
Expand Down
27 changes: 27 additions & 0 deletions apps/kuby-test/dashboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-dashboard
namespace: traefik-staging
spec:
routes:
- match: Host(`dashboard.hephy.pro`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
kind: Rule
services:
- name: api@internal
kind: TraefikService
middlewares:
- name: auth
entryPoints:
- websecure
tls:
certResolver: myresolver
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: auth
namespace: traefik-staging
spec:
basicAuth:
secret: traefik-dashboard-auth-htpasswd
15 changes: 15 additions & 0 deletions apps/kuby-test/flux-system-rw-gitrepo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: flux-system-rw
namespace: kubytest-production
spec:
gitImplementation: go-git
interval: 30m0s
ref:
branch: staging
secretRef:
name: flux-system-rw
timeout: 20s
url: ssh://git@github.com/kingdonb/bootstrap-repo
13 changes: 13 additions & 0 deletions apps/kuby-test/image-webhook-recv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Receiver
metadata:
name: image-webhook
namespace: kubytest-production
spec:
resources:
- apiVersion: image.toolkit.fluxcd.io/v1alpha1
kind: ImageRepository
name: kuby-tester
secretRef:
name: webhook-token
type: generic
16 changes: 16 additions & 0 deletions apps/kuby-test/kuby-tester-assets-imagepol.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: kuby-tester-assets
namespace: kubytest-production
spec:
filterTags:
extract: $ts
pattern: ^(?P<ts>[0-9]+)-assets$
imageRepositoryRef:
name: kuby-tester
policy:
numerical:
order: asc

26 changes: 26 additions & 0 deletions apps/kuby-test/kuby-tester-imageauto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: kuby-tester
namespace: kubytest-production
spec:
git:
checkout:
ref:
branch: staging
commit:
author:
email: fluxcdbot@users.noreply.github.com
name: fluxcdbot
messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}'
push:
branch: staging
interval: 30m0s
sourceRef:
kind: GitRepository
name: flux-system-rw
update:
path: ./clusters/moo-cluster/kuby-test
strategy: Setters

16 changes: 16 additions & 0 deletions apps/kuby-test/kuby-tester-imagepol.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: kuby-tester
namespace: kubytest-production
spec:
filterTags:
extract: $ts
pattern: ^(?P<ts>[0-9]+)$
imageRepositoryRef:
name: kuby-tester
policy:
numerical:
order: asc

11 changes: 11 additions & 0 deletions apps/kuby-test/kuby-tester-imagerepo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageRepository
metadata:
name: kuby-tester
namespace: kubytest-production
spec:
image: ghcr.io/kingdonb/kuby-tester
interval: 10m0s
secretRef:
name: kubytest-registry-secret
Loading