Skip to content

Commit 85dedfc

Browse files
author
Oleg Sucharevich
committed
add ability to pass the storage class when creating runtime-environment
1 parent 40be904 commit 85dedfc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.1
1+
0.9.0

pkg/codefresh/runtime_enrionment.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ type (
6363
}
6464

6565
CreateRuntimeOptions struct {
66-
Cluster string
67-
Namespace string
68-
HasAgent bool
66+
Cluster string
67+
Namespace string
68+
HasAgent bool
69+
StorageClass string
6970
}
7071

7172
ValidateRuntimeOptions struct {
@@ -99,8 +100,9 @@ func (r *runtimeEnvironment) Create(opt *CreateRuntimeOptions) (*RuntimeEnvironm
99100
},
100101
}
101102
body := map[string]interface{}{
102-
"clusterName": opt.Cluster,
103-
"namespace": opt.Namespace,
103+
"clusterName": opt.Cluster,
104+
"namespace": opt.Namespace,
105+
"storageClassName": opt.StorageClass,
104106
}
105107
if opt.HasAgent {
106108
body["agent"] = true

0 commit comments

Comments
 (0)