Skip to content

Commit

Permalink
Merge pull request #263 from stuggi/redis_optional
Browse files Browse the repository at this point in the history
Make RedisServiceName optional and add listType annotations
  • Loading branch information
openshift-merge-bot[bot] authored Dec 16, 2024
2 parents 6bb92cd + 8928e66 commit 7bc56aa
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions api/bases/designate.openstack.org_designatecentrals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Central Replicas
Expand Down
1 change: 1 addition & 0 deletions api/bases/designate.openstack.org_designateproducers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Producer Replicas
Expand Down
3 changes: 2 additions & 1 deletion api/bases/designate.openstack.org_designates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Central Replicas
Expand Down Expand Up @@ -1063,6 +1064,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Producer Replicas
Expand Down Expand Up @@ -1548,7 +1550,6 @@ spec:
- designateProducer
- designateWorker
- rabbitMqClusterName
- redisServiceName
- secret
type: object
status:
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/designate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ type DesignateSpecBase struct {
// DesignateNetworkAttachment is a NetworkAttachment resource name for the Designate Control Network
DesignateNetworkAttachment string `json:"designateNetworkAttachment"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:Optional
// +kubebuilder:default="designate-redis"
// RedisServiceName is the name of the Redis instance to be used (must be in the same namespace as designate)
RedisServiceName string `json:"redisServiceName"`
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/designatecentral_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type DesignateCentralSpecBase struct {
TLS tls.Ca `json:"tls,omitempty"`

// List of Redis Host IP addresses
// +listType:=atomic
RedisHostIPs []string `json:"redisHostIPs,omitempty"`
}

Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/designateproducer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type DesignateProducerSpecBase struct {
TLS tls.Ca `json:"tls,omitempty"`

// List of Redis Host IP addresses
// +listType:=atomic
RedisHostIPs []string `json:"redisHostIPs,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Central Replicas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Producer Replicas
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/designate.openstack.org_designates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Central Replicas
Expand Down Expand Up @@ -1063,6 +1064,7 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
replicas:
default: 1
description: Replicas - Designate Producer Replicas
Expand Down Expand Up @@ -1548,7 +1550,6 @@ spec:
- designateProducer
- designateWorker
- rabbitMqClusterName
- redisServiceName
- secret
type: object
status:
Expand Down

0 comments on commit 7bc56aa

Please sign in to comment.