Skip to content

Commit

Permalink
Auth module deployment (#119)
Browse files Browse the repository at this point in the history
* added powerflex support to auth

* update references to include powerflex
  • Loading branch information
ChristianAtDell committed Oct 15, 2024
1 parent bdb280c commit 1e33512
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ build: gen-semver fmt vet ## Build manager binary.
run: generate gen-semver fmt vet static-manifests ## Run a controller from your host.
go run ./main.go

podman-build: gen-semver ## Build podman image with the manager.
podman build . -t ${DEFAULT_IMG}

docker-build: gen-semver ## Build docker image with the manager.
docker build . -t ${DEFAULT_IMG}

Expand Down
9 changes: 9 additions & 0 deletions operatorconfig/moduleconfig/common/version-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ powerscale:
authorization: "v1.4.0"
replication: "v1.3.0"
observability: "v1.3.0"
powerflex:
# List of Driver versions and modules that supports the version
v2.3.0:
authorization: "v1.3.0"
replication: "v1.3.0"
v2.4.0:
authorization: "v1.4.0"
replication: "v1.3.0"
observability: "v1.3.0"
8 changes: 8 additions & 0 deletions pkg/drivers/powerflex.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ import (
"sigs.k8s.io/yaml"
)

const (
// PowerFlexPluginIdentifier -
PowerFlexPluginIdentifier = "powerflex"

// PowerFlexConfigParamsVolumeMount -
PowerFlexConfigParamsVolumeMount = "vxflexos-config-params"
)

// PrecheckPowerFlex do input validation
func PrecheckPowerFlex(ctx context.Context, cr *csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, ct client.Client) error {

Expand Down
10 changes: 9 additions & 1 deletion pkg/modules/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ var AuthorizationSupportedDrivers = map[string]SupportedDriverParam{
"isilon": {
PluginIdentifier: drivers.PowerScalePluginIdentifier,
DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
}, // either powerscale or isilon are valid types
},
"powerflex": {
PluginIdentifier: drivers.PowerFlexPluginIdentifier,
DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
},
"vxflexos": {
PluginIdentifier: drivers.PowerFlexPluginIdentifier,
DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
}, // powerscale/isilon & powerflex/vxflexos are valid types
}

func getAuthorizationModule(cr csmv1.ContainerStorageModule) (csmv1.Module, error) {
Expand Down

0 comments on commit 1e33512

Please sign in to comment.