Skip to content

Commit

Permalink
Archive old azure releases (#1293)
Browse files Browse the repository at this point in the history
* archive old azure releases

* ignore requests.yaml for azure

* ignore requests.yaml for azure

* ignore requests.yaml for azure
  • Loading branch information
njuettner authored Jun 26, 2024
1 parent af25ec4 commit ffb8cd6
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 57 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ to all Giant Swarm installations.

- v20
- v20.0
- [v20.0.0-beta1](https://github.com/giantswarm/releases/tree/master/azure/v20.0.0-beta1)
- [v20.0.0-beta1](https://github.com/giantswarm/releases/tree/master/azure/archived/v20.0.0-beta1)

- v19
- v19.1
- [v19.1.0](https://github.com/giantswarm/releases/tree/master/azure/v19.1.0)
- [v19.1.0](https://github.com/giantswarm/releases/tree/master/azure/archived/v19.1.0)

- v19.0
- [v19.0.1](https://github.com/giantswarm/releases/tree/master/azure/v19.0.1)
- [v19.0.1](https://github.com/giantswarm/releases/tree/master/azure/archived/v19.0.1)
- [v19.0.0](https://github.com/giantswarm/releases/tree/master/azure/archived/v19.0.0)

- v18
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ spec:
- name: etcd
version: 3.5.7
date: "2023-02-07T10:48:28Z"
state: active
state: deprecated
status:
inUse: false
ready: false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ spec:
- name: etcd
version: 3.5.9
date: "2023-06-26T07:36:21Z"
state: active
state: deprecated
status:
inUse: false
ready: false
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ spec:
- name: etcd
version: 3.5.7
date: "2023-05-16T07:47:34Z"
state: active
state: deprecated
status:
inUse: false
ready: false
4 changes: 0 additions & 4 deletions azure/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
commonAnnotations:
giantswarm.io/docs: https://docs.giantswarm.io/ui-api/management-api/crd/releases.release.giantswarm.io/
resources:
- v19.0.1
- v19.1.0
- v20.0.0-beta1
transformers:
- releaseNotesTransformer.yaml
37 changes: 0 additions & 37 deletions azure/requests.yaml

This file was deleted.

22 changes: 12 additions & 10 deletions releases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,18 @@ func Test_Releases(t *testing.T) {
providerRequests := []releaseRequest{}
{
var providerRequestsFile requestsFile
providerRequestsData, err := ioutil.ReadFile(filepath.Join(tc.provider, requestsFilename))
if err != nil {
t.Fatal(err)
}
err = yaml.UnmarshalStrict(providerRequestsData, &providerRequestsFile)
if err != nil {
t.Fatal(err)
}
for _, release := range providerRequestsFile.Releases {
providerRequests = append(providerRequests, release)
if tc.provider != "azure" {
providerRequestsData, err := ioutil.ReadFile(filepath.Join(tc.provider, requestsFilename))
if err != nil {
t.Fatal(err)
}
err = yaml.UnmarshalStrict(providerRequestsData, &providerRequestsFile)
if err != nil {
t.Fatal(err)
}
for _, release := range providerRequestsFile.Releases {
providerRequests = append(providerRequests, release)
}
}
}

Expand Down

0 comments on commit ffb8cd6

Please sign in to comment.