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

Add Fleet versions to CI #43

Merged
merged 2 commits into from
Jan 15, 2024
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci-0.5.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI v0.5

on:
schedule:
- cron: '0 5 * * *'
pull_request:
branches:
- 'releases/v0.5'
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-0.6.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI v0.6

on:
schedule:
- cron: '0 5 * * *'
pull_request:
branches:
- 'releases/v0.6'
workflow_dispatch:

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
fail-fast: false
matrix:
fleet_version:
- "v0.7.0-AGENT-rc.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we deliberately not covering 0.7.x anymore? Granted, Rancher 2.7.x provides 0.8.x, but since we still have active workflows for 0.5 and 0.6...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, 0.7 would require another branch with "expected" files.

- "v0.8.1"
- "v0.9.0"

steps:
-
Expand Down
8 changes: 8 additions & 0 deletions tests/expected/multi-cluster/helm-external/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
name: test
namespace: fleet-default
spec:
correctDrift: {}
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
ignore: {}
namespace: fleet-mc-helm-external-example
resources:
- content: |
Expand Down Expand Up @@ -238,25 +240,31 @@ spec:
- clusterSelector:
matchLabels:
env: dev
correctDrift: {}
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
values:
replication: false
ignore: {}
name: dev
- clusterSelector:
matchLabels:
env: test
correctDrift: {}
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
values:
replicas: 3
ignore: {}
name: test
- clusterSelector:
matchLabels:
env: prod
correctDrift: {}
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
values:
replicas: 3
serviceType: LoadBalancer
ignore: {}
name: prod
8 changes: 8 additions & 0 deletions tests/expected/multi-cluster/helm-kustomize/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
name: test
namespace: fleet-default
spec:
correctDrift: {}
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
ignore: {}
namespace: fleet-mc-helm-kustomize-example
resources:
- content: |
Expand Down Expand Up @@ -289,18 +291,24 @@ spec:
- clusterSelector:
matchLabels:
env: dev
correctDrift: {}
ignore: {}
kustomize:
dir: overlays/dev
name: dev
- clusterSelector:
matchLabels:
env: test
correctDrift: {}
ignore: {}
kustomize:
dir: overlays/test
name: test
- clusterSelector:
matchLabels:
env: prod
correctDrift: {}
ignore: {}
kustomize:
dir: overlays/prod
name: prod
8 changes: 8 additions & 0 deletions tests/expected/multi-cluster/helm/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
name: test
namespace: fleet-default
spec:
correctDrift: {}
ignore: {}
namespace: fleet-mc-helm-example
resources:
- content: |
Expand Down Expand Up @@ -234,22 +236,28 @@ spec:
- clusterSelector:
matchLabels:
env: dev
correctDrift: {}
helm:
values:
replication: false
ignore: {}
name: dev
- clusterSelector:
matchLabels:
env: test
correctDrift: {}
helm:
values:
replicas: 3
ignore: {}
name: test
- clusterSelector:
matchLabels:
env: prod
correctDrift: {}
helm:
values:
replicas: 3
serviceType: LoadBalancer
ignore: {}
name: prod
8 changes: 8 additions & 0 deletions tests/expected/multi-cluster/kustomize/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
name: test
namespace: fleet-default
spec:
correctDrift: {}
ignore: {}
namespace: fleet-mc-kustomize-example
resources:
- content: |
Expand Down Expand Up @@ -281,18 +283,24 @@ spec:
- clusterSelector:
matchLabels:
env: dev
correctDrift: {}
ignore: {}
kustomize:
dir: overlays/dev
name: dev
- clusterSelector:
matchLabels:
env: test
correctDrift: {}
ignore: {}
kustomize:
dir: overlays/test
name: test
- clusterSelector:
matchLabels:
env: prod
correctDrift: {}
ignore: {}
kustomize:
dir: overlays/prod
name: prod
8 changes: 8 additions & 0 deletions tests/expected/multi-cluster/manifests/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
name: test
namespace: fleet-default
spec:
correctDrift: {}
ignore: {}
namespace: fleet-mc-manifest-example
resources:
- content: |
Expand Down Expand Up @@ -232,20 +234,26 @@ spec:
- clusterSelector:
matchLabels:
env: dev
correctDrift: {}
ignore: {}
name: dev
yaml:
overlays:
- noreplication
- clusterSelector:
matchLabels:
env: test
correctDrift: {}
ignore: {}
name: test
yaml:
overlays:
- scale3
- clusterSelector:
matchLabels:
env: prod
correctDrift: {}
ignore: {}
name: prod
yaml:
overlays:
Expand Down
4 changes: 4 additions & 0 deletions tests/expected/single-cluster/helm-kustomize/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
name: test
namespace: fleet-local
spec:
correctDrift: {}
helm:
chart: https://github.com/rancher/fleet-examples/releases/download/example/guestbook-0.0.0.tgz
ignore: {}
kustomize:
dir: overlays/dev
namespace: fleet-helm-kustomize-example
Expand Down Expand Up @@ -221,4 +223,6 @@ spec:
name: overlays/dev/redis-slave-service.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default
12 changes: 12 additions & 0 deletions tests/expected/single-cluster/helm-multi-chart/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ metadata:
name: test-guestbook
namespace: fleet-local
spec:
correctDrift: {}
helm:
releaseName: guestbook
values:
replicas: 2
ignore: {}
namespace: fleet-multi-chart-helm-example
resources:
- content: |
Expand Down Expand Up @@ -202,6 +204,8 @@ spec:
name: values.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default
apiVersion: fleet.cattle.io/v1alpha1
kind: Bundle
Expand All @@ -211,6 +215,7 @@ metadata:
name: test-rancher-monitoring
namespace: fleet-local
spec:
correctDrift: {}
defaultNamespace: cattle-monitoring-system
diff:
comparePatches:
Expand All @@ -231,6 +236,7 @@ spec:
releaseName: rancher-monitoring
repo: https://charts.rancher.io/
version: 100.1.2+up19.0.3
ignore: {}
resources:
- content: H4sIAAAAAAAA/+RabW8cOXL+rl9RsD+sBMz0jL1AzvYlAXSyk/h2bQujlYFgsVhyumumuWKTHZI944HX/z0ovjVbGsleO8kGuE/SdPOlqvhU1VPFfgwXLVdblHp7ci4lKO34WiLU/qmFjdEduBZh6K0zyDu4NLpD1+Jg4V2PhjttaLRxsBdSwhqBNw024DS4VljYCInVycnjx/DzJa9v+BbhPRortILl8heYw9Pl0+V8+Zf5k+cnjx8/hnOafTIPf+HnYrvzhvcOzS+nrXO9fbFYbIVrh3VV627RouwWXgy7cAZx0XHr0CysV2fR51XmPKxyBtwChwZ7VA2q+hAE/iJFnQYupd7DYNFY+okfem0R6sE63UGHzoi6MF6DGz5IVy4plHVc1fSul/qADawPwWB+j5M5rLDTOwRWyK6jHItaIldDP69NY6sD7yQDrpp7xo5jskDHdMuKByWFgg3faQN6A78N1sFghdr62Rerl9AIg7XTxtvNKyNlemmrfH526HttHGy0AWZu8EIrZ7SUaN5wxbdo2Mw/v6pbbAaZf18a/eHAZkErc4OvXN0wuBxsS2+8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2oP8gBBt/gaCAq7S1SqvM0kUj48UZVPFDknfqOo/8K7R6TyrNgrGEhSbFwQLThXd74GrrceNXp3Oa3vgGobI4kS9EFQorFsn1mAnvxT6zWA9GuMOFVg4/OBY7aLphuV8zvfFI6GQfH5lBndu3Wq20do9ewCNnBnw0g/D82qKhh0+Wy+WjT4HyGuwlr8vbTt8j7W1/bfG8789NR6y5/ITmzsjzTIbtv3z8xCY9smNlZwihZVNLH61+Ql3XaLT+ejkVUFdY17rz10tJwIKP+/h1eXVpK7j2HTtKZVzu+YE201QiOx0vC0NkKeeGO+WiWUu296Tv6jJ+KCQP0z4wJg6ULngmJ5s70PdTjFxQhhjuvMXIINb5zxAM9gYtKhcqrdyz8+4er4jXRa9xfQjh5JTiEHO9JPY4xh6ecn/84sCj30sO/3n+5ses5b0ALZoo0w8h+DB2/kO3dN9qqkbR2jwrxqT3AvdofLc7kMfg0lxpdej0YNO0MWWOF8f27tcpSTYqOIkshnIeeM4HXlUSR6Sly8Y+WconGaIQtZMQWUSs69MiuQsO169jCBwFHjVGRehNa4Z+CDdI9mnpGEOHJ+a1m2cWzi9fQ/hiawbrwfkQSbBdpOON7XvvMTk5iRBLe8l9UPL0u1TKY2jPYwcnu1H6BqOQhs4v9HR8m4e91Q1eauNYaimcfQUYmrJdNl7607Eke0bzpjVaqjp6vsXqvwMAAP//9sLvjswpAAA=
encoding: base64+gz
Expand Down Expand Up @@ -1557,6 +1563,8 @@ spec:
name: fleet.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default
apiVersion: fleet.cattle.io/v1alpha1
kind: Bundle
Expand All @@ -1566,12 +1574,14 @@ metadata:
name: test-rancher-monitoring-crd
namespace: fleet-local
spec:
correctDrift: {}
defaultNamespace: cattle-monitoring-system
helm:
chart: rancher-monitoring-crd
releaseName: rancher-monitoring-crd
repo: https://charts.rancher.io/
version: 100.1.2+up19.0.3
ignore: {}
resources:
- content: H4sIAAAAAAAA/3yQsU4DMQyG9zyF1RVduIOJrLCwMrBbiduzlLMj263Ut0cUgRhOHW39nz/rRxENDFbxkgAqBnY95YoRnTLrYyULPjK1AoZSV7Ld2MqtkRQ4hJ3psBsR3MgHVirws5w2FQ41ltPkVw/adjmjTug0ffN/T/xnq7WEgz/JnFUKXJbUyKvxiNv8Lh7Yu0OsBK8fbw5HtZ1DOd1VxHVQARyjc701li6/xmWe85KfHs5jeclzfk5fAQAA//+bbBLeVwEAAA==
encoding: base64+gz
Expand Down Expand Up @@ -1626,4 +1636,6 @@ spec:
name: fleet.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default
4 changes: 4 additions & 0 deletions tests/expected/single-cluster/helm/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ metadata:
name: test
namespace: fleet-local
spec:
correctDrift: {}
helm:
releaseName: guestbook
values:
replicas: 2
ignore: {}
namespace: fleet-helm-example
resources:
- content: |
Expand Down Expand Up @@ -221,4 +223,6 @@ spec:
name: values.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default
4 changes: 4 additions & 0 deletions tests/expected/single-cluster/kustomize/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
name: test
namespace: fleet-local
spec:
correctDrift: {}
ignore: {}
kustomize: {}
namespace: fleet-kustomize-example
resources:
Expand Down Expand Up @@ -215,4 +217,6 @@ spec:
name: overlays/dev/redis-slave-service.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default
4 changes: 4 additions & 0 deletions tests/expected/single-cluster/manifests/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
name: test
namespace: fleet-local
spec:
correctDrift: {}
ignore: {}
namespace: fleet-manifest-example
resources:
- content: |
Expand Down Expand Up @@ -172,4 +174,6 @@ spec:
name: services/redis-slave-service.yaml
targets:
- clusterGroup: default
correctDrift: {}
ignore: {}
name: default