From 3c2a2d86cc24b530be24fa37cdf641df6b453e71 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 18 Nov 2022 15:04:33 +0100 Subject: [PATCH] fix: [#53] StorageClassName in PVC required in newer k8s versions. --- cmd/yaam/main.go | 7 ++++++- deployments/k8s-openshift/deploy.yml | 1 + docs/CHANGELOG.md | 12 ++++++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cmd/yaam/main.go b/cmd/yaam/main.go index ac70c2d..1b9345b 100644 --- a/cmd/yaam/main.go +++ b/cmd/yaam/main.go @@ -5,6 +5,7 @@ import ( "io" "net/http" "os" + "path/filepath" "time" "github.com/030/logging/pkg/logging" @@ -198,7 +199,11 @@ func main() { if logLevelEnv != "" { logLevel = logLevelEnv } - l := logging.Logging{File: "yaam.log", Level: logLevel, Syslog: true} + h, err := project.Home() + if err != nil { + log.Fatal(err) + } + l := logging.Logging{File: filepath.Join(h, "yaam.log"), Level: logLevel, Syslog: true} if _, err := l.Setup(); err != nil { log.Fatal(err) } diff --git a/deployments/k8s-openshift/deploy.yml b/deployments/k8s-openshift/deploy.yml index 9ed91ba..f0fa635 100644 --- a/deployments/k8s-openshift/deploy.yml +++ b/deployments/k8s-openshift/deploy.yml @@ -190,6 +190,7 @@ metadata: name: repositories spec: volumeName: repositories + storageClassName: standard accessModes: - ReadWriteOnce resources: diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8863022..e92f8bc 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,11 +2,14 @@ ## [Unreleased] + +## [v0.5.2] - 2022-11-18 +### Fix +- [[#53](https://github.com/030/yaam/issues/53)] StorageClassName in PVC required in newer k8s versions. + + ## [v0.5.1] - 2022-11-16 -### Build -- **deps:** Update versions. - ### Fix - Publish code coverage by using v3 action. @@ -61,7 +64,8 @@ ## v0.2.1 - 2022-08-23 -[Unreleased]: https://github.com/030/yaam/compare/v0.5.1...HEAD +[Unreleased]: https://github.com/030/yaam/compare/v0.5.2...HEAD +[v0.5.2]: https://github.com/030/yaam/compare/v0.5.1...v0.5.2 [v0.5.1]: https://github.com/030/yaam/compare/v0.5.0...v0.5.1 [v0.5.0]: https://github.com/030/yaam/compare/v0.4.2...v0.5.0 [v0.4.2]: https://github.com/030/yaam/compare/v0.4.1...v0.4.2