Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Authorization installation so that fields are configurable #164

Merged
merged 9 commits into from
Feb 16, 2023
32 changes: 32 additions & 0 deletions api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,38 @@ type ContainerTemplate struct {
// Selector which must match a node's labels for the pod to be scheduled on that node.
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="NodeSelector"
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector"`

// ProxyService is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Proxy Service Container Image"
ProxyService string `json:"proxyService,omitempty" yaml:"proxyService,omitempty"`

// TenantService is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Tenant Service Container Image"
TenantService string `json:"tenantService,omitempty" yaml:"tenantService,omitempty"`

// RoleService is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Role Service Container Image"
RoleService string `json:"roleService,omitempty" yaml:"roleService,omitempty"`

// StorageService is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Storage Service Container Image"
StorageService string `json:"storageService,omitempty" yaml:"storageService,omitempty"`

// Redis is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Redis Container Image"
Redis string `json:"redis,omitempty" yaml:"redis,omitempty"`

// Commander is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Commander Container Image"
Commander string `json:"commander,omitempty" yaml:"commander,omitempty"`

// Opa is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Opa Container Image"
Opa string `json:"opa,omitempty" yaml:"opa,omitempty"`

// OpaKubeMgmt is the image tag for the Container
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Opa Kube Management Container Image"
OpaKubeMgmt string `json:"opaKubeMgmt,omitempty" yaml:"opaKubeMgmt,omitempty"`
}

// SnapshotClass struct
Expand Down
144 changes: 144 additions & 0 deletions config/crd/bases/storage.dell.com_containerstoragemodules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ spec:
items:
type: string
type: array
commander:
description: Commander is the image tag for the Container
type: string
enabled:
description: Enabled is used to indicate wether or not to
deploy a module
Expand Down Expand Up @@ -207,6 +210,27 @@ spec:
for the pod to fit on a node. Selector which must match
a node's labels for the pod to be scheduled on that node.
type: object
opa:
description: Opa is the image tag for the Container
type: string
opaKubeMgmt:
description: OpaKubeMgmt is the image tag for the Container
type: string
proxyService:
description: ProxyService is the image tag for the Container
type: string
redis:
description: Redis is the image tag for the Container
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
tenantService:
description: TenantService is the image tag for the Container
type: string
tolerations:
description: Tolerations is the list of tolerations for the
driver pods
Expand Down Expand Up @@ -264,6 +288,9 @@ spec:
items:
type: string
type: array
commander:
description: Commander is the image tag for the Container
type: string
enabled:
description: Enabled is used to indicate wether or not to
deploy a module
Expand Down Expand Up @@ -400,6 +427,27 @@ spec:
for the pod to fit on a node. Selector which must match
a node's labels for the pod to be scheduled on that node.
type: object
opa:
description: Opa is the image tag for the Container
type: string
opaKubeMgmt:
description: OpaKubeMgmt is the image tag for the Container
type: string
proxyService:
description: ProxyService is the image tag for the Container
type: string
redis:
description: Redis is the image tag for the Container
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
tenantService:
description: TenantService is the image tag for the Container
type: string
tolerations:
description: Tolerations is the list of tolerations for the
driver pods
Expand Down Expand Up @@ -476,6 +524,9 @@ spec:
items:
type: string
type: array
commander:
description: Commander is the image tag for the Container
type: string
enabled:
description: Enabled is used to indicate wether or not to
deploy a module
Expand Down Expand Up @@ -613,6 +664,27 @@ spec:
for the pod to fit on a node. Selector which must match
a node's labels for the pod to be scheduled on that node.
type: object
opa:
description: Opa is the image tag for the Container
type: string
opaKubeMgmt:
description: OpaKubeMgmt is the image tag for the Container
type: string
proxyService:
description: ProxyService is the image tag for the Container
type: string
redis:
description: Redis is the image tag for the Container
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
tenantService:
description: TenantService is the image tag for the Container
type: string
tolerations:
description: Tolerations is the list of tolerations for
the driver pods
Expand Down Expand Up @@ -667,6 +739,9 @@ spec:
items:
type: string
type: array
commander:
description: Commander is the image tag for the Container
type: string
enabled:
description: Enabled is used to indicate wether or not to
deploy a module
Expand Down Expand Up @@ -803,6 +878,27 @@ spec:
for the pod to fit on a node. Selector which must match
a node's labels for the pod to be scheduled on that node.
type: object
opa:
description: Opa is the image tag for the Container
type: string
opaKubeMgmt:
description: OpaKubeMgmt is the image tag for the Container
type: string
proxyService:
description: ProxyService is the image tag for the Container
type: string
redis:
description: Redis is the image tag for the Container
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
tenantService:
description: TenantService is the image tag for the Container
type: string
tolerations:
description: Tolerations is the list of tolerations for the
driver pods
Expand Down Expand Up @@ -862,6 +958,9 @@ spec:
items:
type: string
type: array
commander:
description: Commander is the image tag for the Container
type: string
enabled:
description: Enabled is used to indicate wether or not to
deploy a module
Expand Down Expand Up @@ -999,6 +1098,27 @@ spec:
for the pod to fit on a node. Selector which must match
a node's labels for the pod to be scheduled on that node.
type: object
opa:
description: Opa is the image tag for the Container
type: string
opaKubeMgmt:
description: OpaKubeMgmt is the image tag for the Container
type: string
proxyService:
description: ProxyService is the image tag for the Container
type: string
redis:
description: Redis is the image tag for the Container
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
tenantService:
description: TenantService is the image tag for the Container
type: string
tolerations:
description: Tolerations is the list of tolerations for
the driver pods
Expand Down Expand Up @@ -1082,6 +1202,9 @@ spec:
items:
type: string
type: array
commander:
description: Commander is the image tag for the Container
type: string
enabled:
description: Enabled is used to indicate wether or not
to deploy a module
Expand Down Expand Up @@ -1221,6 +1344,27 @@ spec:
match a node's labels for the pod to be scheduled on
that node.
type: object
opa:
description: Opa is the image tag for the Container
type: string
opaKubeMgmt:
description: OpaKubeMgmt is the image tag for the Container
type: string
proxyService:
description: ProxyService is the image tag for the Container
type: string
redis:
description: Redis is the image tag for the Container
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
tenantService:
description: TenantService is the image tag for the Container
type: string
tolerations:
description: Tolerations is the list of tolerations for
the driver pods
Expand Down
Loading