Skip to content

Commit

Permalink
fix: [#53] StorageClassName in PVC required in newer k8s versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Nov 18, 2022
1 parent dca8f2b commit 3c2a2d8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion cmd/yaam/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io"
"net/http"
"os"
"path/filepath"
"time"

"github.com/030/logging/pkg/logging"
Expand Down Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions deployments/k8s-openshift/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ metadata:
name: repositories
spec:
volumeName: repositories
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
Expand Down
12 changes: 8 additions & 4 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
## [Unreleased]


<a name="v0.5.2"></a>
## [v0.5.2] - 2022-11-18
### Fix
- [[#53](https://github.com/030/yaam/issues/53)] StorageClassName in PVC required in newer k8s versions.


<a name="v0.5.1"></a>
## [v0.5.1] - 2022-11-16
### Build
- **deps:** Update versions.

### Fix
- Publish code coverage by using v3 action.

Expand Down Expand Up @@ -61,7 +64,8 @@
<a name="v0.2.1"></a>
## 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
Expand Down

0 comments on commit 3c2a2d8

Please sign in to comment.