Skip to content

Commit

Permalink
adds a possibility to edit a LocalStorageClass resource to recreate a…
Browse files Browse the repository at this point in the history
… corresponding Storage Class

Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
  • Loading branch information
ViktorKram committed Mar 6, 2024
1 parent 33cdecc commit d14a68a
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 55 deletions.
3 changes: 0 additions & 3 deletions crds/localstorageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ spec:
- Thin
lvmVolumeGroups:
type: array
x-kubernetes-validations:
- rule: self == oldSelf
message: Value is immutable.
description: |
LVMVolumeGroup resources where Persistent Volume will be create on.
items:
Expand Down
2 changes: 1 addition & 1 deletion images/sds-local-volume-controller/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func main() {

log.Info("[main] CfgParams has been successfully created")
log.Info(fmt.Sprintf("[main] %s = %s", config.LogLevel, cfgParams.Loglevel))
log.Info(fmt.Sprintf("[main] %s = %s", config.RequeueInterval, cfgParams.RequeueInterval.String()))
log.Info(fmt.Sprintf("[main] %s = %d", config.RequeueInterval, cfgParams.RequeueInterval))

kConfig, err := kubutils.KubernetesDefaultConfigCreate()
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions images/sds-local-volume-controller/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
)

const (
NodeName = "KUBE_NODE_NAME"
LogLevel = "LOG_LEVEL"
RequeueInterval = "REQUEUE_INTERVAL"
)
Expand All @@ -40,7 +39,7 @@ func NewConfig() *Options {
opts.Loglevel = logger.Verbosity(loglevel)
}

opts.RequeueInterval = 5
opts.RequeueInterval = 10

return &opts
}
Loading

0 comments on commit d14a68a

Please sign in to comment.