Skip to content

Commit

Permalink
Support Multiple Replicas for Redis deployment in Authorization (#553)
Browse files Browse the repository at this point in the history
* Changes for Auth

* add new changes as per helm

* Updating CRDs

* Resolving yaml errors

* Resolving script issues and removing hardcoded values

* Empty Config Map

* Values changes

* Resolving formatting issues

* Resolving formatting checks

* Resolving rebase issues

* Getting the sentinel values dynamically

* Addressed review comments

* Changes from v1.1.10 to v2.0.0-alpha

* Resolving Unit test errors

* Removing Hardcoded values

* Addressing review comments

* Adding Vault as separate component

* Moving the ConfigMap

* Moving ConfigMap t0 v2.0.0-alpha

* Remving extra newline
  • Loading branch information
harshitap26 authored May 14, 2024
1 parent 5d1d151 commit a0813ec
Show file tree
Hide file tree
Showing 12 changed files with 730 additions and 75 deletions.
20 changes: 20 additions & 0 deletions api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,26 @@ type ContainerTemplate struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Proxy Server Redis storage class"
RedisStorageClass string `json:"storageclass,omitempty" yaml:"storageclass,omitempty"`

// VaultAddress is the address of the vault
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authorization Vault Address"
VaultAddress string `json:"vaultAddress,omitempty" yaml:"vaultAddress,omitempty"`

// RedisName is the name of the redis statefulset
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Redis StatefulSet Name"
RedisName string `json:"redisName,omitempty" yaml:"redisName,omitempty"`

// RedisCommander is the name of the redis deployment
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Redis Deployment Name"
RedisCommander string `json:"redisCommander,omitempty" yaml:"redisCommander,omitempty"`

// RedisReplicas is the number of replicas for the redis deployment
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Redis Deployment Replicas"
RedisReplicas int `json:"redisReplicas,omitempty" yaml:"redisReplicas,omitempty"`

// Sentinel is the name of the sentinel statefulSet
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Sentinel StatefulSet Name"
Sentinel string `json:"sentinel,omitempty" yaml:"sentinel,omitempty"`

// ReplicaCount is the replica count for app mobility
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Application Mobility Replica Count"
ReplicaCount string `json:"replicaCount,omitempty" yaml:"replicaCount,omitempty"`
Expand Down
48 changes: 48 additions & 0 deletions config/crd/bases/storage.dell.com_apexconnectivityclients.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,25 @@ spec:
redis:
description: Redis is the image tag for the Container
type: string
redisCommander:
description: RedisCommander is the name of the redis deployment
type: string
redisName:
description: RedisName is the name of the redis statefulset
type: string
redisReplicas:
description: RedisReplicas is the number of replicas for the
redis deployment
type: integer
replicaCount:
description: ReplicaCount is the replica count for app mobility
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
sentinel:
description: Sentinel is the name of the sentinel statefulSet
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
Expand Down Expand Up @@ -355,6 +368,9 @@ spec:
description: UseSnapshot is to check whether volume snapshot
is enabled under velero component
type: boolean
vaultAddress:
description: VaultAddress is the address of the vault
type: string
veleroNamespace:
description: VeleroNamespace is the namespace that Velero
is installed in
Expand Down Expand Up @@ -613,12 +629,25 @@ spec:
redis:
description: Redis is the image tag for the Container
type: string
redisCommander:
description: RedisCommander is the name of the redis deployment
type: string
redisName:
description: RedisName is the name of the redis statefulset
type: string
redisReplicas:
description: RedisReplicas is the number of replicas for
the redis deployment
type: integer
replicaCount:
description: ReplicaCount is the replica count for app mobility
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
sentinel:
description: Sentinel is the name of the sentinel statefulSet
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
Expand Down Expand Up @@ -673,6 +702,9 @@ spec:
description: UseSnapshot is to check whether volume snapshot
is enabled under velero component
type: boolean
vaultAddress:
description: VaultAddress is the address of the vault
type: string
veleroNamespace:
description: VeleroNamespace is the namespace that Velero
is installed in
Expand Down Expand Up @@ -916,12 +948,25 @@ spec:
redis:
description: Redis is the image tag for the Container
type: string
redisCommander:
description: RedisCommander is the name of the redis deployment
type: string
redisName:
description: RedisName is the name of the redis statefulset
type: string
redisReplicas:
description: RedisReplicas is the number of replicas for
the redis deployment
type: integer
replicaCount:
description: ReplicaCount is the replica count for app mobility
type: string
roleService:
description: RoleService is the image tag for the Container
type: string
sentinel:
description: Sentinel is the name of the sentinel statefulSet
type: string
storageService:
description: StorageService is the image tag for the Container
type: string
Expand Down Expand Up @@ -976,6 +1021,9 @@ spec:
description: UseSnapshot is to check whether volume snapshot
is enabled under velero component
type: boolean
vaultAddress:
description: VaultAddress is the address of the vault
type: string
veleroNamespace:
description: VeleroNamespace is the namespace that Velero
is installed in
Expand Down
Loading

0 comments on commit a0813ec

Please sign in to comment.