Skip to content

Commit

Permalink
Merge pull request #21 from SAP/sidecars
Browse files Browse the repository at this point in the history
redis-operator adapted for the sidecars
  • Loading branch information
jaroslav-viravec authored Sep 26, 2023
2 parents 2bbfd72 + bd2408b commit c0266cf
Show file tree
Hide file tree
Showing 4 changed files with 3,065 additions and 121 deletions.
3 changes: 3 additions & 0 deletions api/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SPDX-License-Identifier: Apache-2.0
package v1alpha1

import (
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
Expand All @@ -22,6 +23,7 @@ type RedisSpec struct {
Replicas int `json:"replicas,omitempty"`
component.KubernetesPodProperties `json:",inline"`
component.KubernetesContainerProperties `json:",inline"`
Sidecars []corev1.Container `json:"sidecars,omitempty"`
Sentinel *SentinelProperties `json:"sentinel,omitempty"`
Metrics *MetricsProperties `json:"metrics,omitempty"`
TLS *TLSProperties `json:"tls,omitempty"`
Expand Down Expand Up @@ -64,6 +66,7 @@ type PersistenceProperties struct {
Enabled bool `json:"enabled,omitempty"`
Size *resource.Quantity `json:"size,omitempty"`
StorageClass string `json:"storageClass,omitempty"`
ExtraVolumes []corev1.Volume `json:"extraVolumes,omitempty"`
}

// BindingProperties models custom properties for the generated binding secret
Expand Down
15 changes: 15 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c0266cf

Please sign in to comment.