Skip to content

Commit 6b8ba66

Browse files
committed
impr: remove longhorn adherence
1 parent 60e9eb9 commit 6b8ba66

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

environment/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
default: 'latest'
2020
storage-class-name:
2121
description: 'The StorageClassName for the PersistenVolumeClaim'
22-
default: 'longhorn'
22+
default: ''
2323
storage-size:
2424
description: 'The storage size'
2525
default: '50M'

environment/deploy/parts/romeo.go

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ type (
6464
)
6565

6666
const (
67-
coverdir = "/etc/coverdir"
68-
defaultTag = "dev"
69-
defaultStorageClassName = "longhorn"
70-
defaultStorageSize = "50M"
67+
coverdir = "/etc/coverdir"
68+
defaultTag = "dev"
69+
defaultStorageSize = "50M"
7170
)
7271

7372
// NewRomeoEnvironment deploys a Romeo instance on Kubernetes.
@@ -107,15 +106,11 @@ func (renv *RomeoEnvironment) defaults(args *RomeoEnvironmentArgs) *RomeoEnviron
107106
}).(pulumi.StringOutput)
108107
}
109108

110-
// Default storage class name to longhorn
111-
args.storageClassName = pulumi.String(defaultStorageClassName).ToStringOutput()
109+
// Don't default storage class name -> will select the default one
110+
// on the K8s cluster.
111+
args.storageClassName = pulumi.String("").ToStringOutput()
112112
if args.StorageClassName != nil {
113-
args.storageClassName = args.StorageClassName.ToStringOutput().ApplyT(func(scn string) string {
114-
if scn == "" {
115-
return defaultStorageClassName
116-
}
117-
return scn
118-
}).(pulumi.StringOutput)
113+
args.storageClassName = args.StorageClassName.ToStringOutput()
119114
}
120115

121116
// Default storage size to 50M

0 commit comments

Comments
 (0)