forked from IBM-Cloud/terraform-provider-ibm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates * file renamed * Return error
- Loading branch information
Showing
6 changed files
with
169 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
ibm/service/kubernetes/utils/softwaredefinedstorage/NoopSds.go
This file was deleted.
Oops, something went wrong.
11 changes: 9 additions & 2 deletions
11
ibm/service/kubernetes/utils/softwaredefinedstorage/constants.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
package softwaredefinedstorage | ||
|
||
const ( | ||
APP = "app" | ||
app = "app" | ||
monLabel = "rook-ceph-mon" | ||
osdLabel = "rook-ceph-osd" | ||
crashcollectorLabel = "rook-ceph-crashcollector" | ||
modId = "mon" | ||
monId = "mon" | ||
osdId = "ceph-osd-id" | ||
crashcollectorId = "node_name" | ||
odfNamespace = "openshift-storage" | ||
) | ||
|
||
var AppLabelId = map[string]string{ | ||
monLabel: monId, | ||
osdLabel: osdId, | ||
crashcollectorLabel: crashcollectorId, | ||
} |
25 changes: 25 additions & 0 deletions
25
ibm/service/kubernetes/utils/softwaredefinedstorage/noopSds.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package softwaredefinedstorage | ||
|
||
import ( | ||
"log" | ||
|
||
v2 "github.com/IBM-Cloud/bluemix-go/api/container/containerv2" | ||
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc" | ||
) | ||
|
||
// No Operation SDS Struct Defined | ||
type noopSds struct{} | ||
|
||
func NewSdsNoop() Sds { | ||
return &noopSds{} | ||
} | ||
|
||
func (noop noopSds) PreWorkerReplace(worker v2.Worker) error { | ||
log.Println("In NoopSds PreWorkerReplace") | ||
return nil | ||
} | ||
|
||
func (noop noopSds) PostWorkerReplace(worker v2.Worker) error { | ||
log.Println("In NoopSds PostWorkerReplace") | ||
return nil | ||
} |
Oops, something went wrong.