Skip to content

Commit

Permalink
add tlsSecretMountPath for tlsSecretName (stolostron#1247) (stolostro…
Browse files Browse the repository at this point in the history
…n#1248)

Signed-off-by: David Luong <[email protected]>
Co-authored-by: David Luong <[email protected]>
  • Loading branch information
subbarao-meduri and davidtluong authored Sep 29, 2023
1 parent 36de572 commit eb9bda2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ type PreConfiguredStorage struct {
// TLS secret contains the custom certificate for the object store
// +optional
TLSSecretName string `json:"tlsSecretName,omitempty"`
// TLS secret mount path for the custom certificate for the object store
// +optional
TLSSecretMountPath string `json:"tlsSecretMountPath,omitempty"`
// serviceAccountProjection indicates whether mount service account token to thanos pods. Default is false.
// +optional
ServiceAccountProjection bool `json:"serviceAccountProjection,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ spec:
tlsSecretName:
description: TLS secret contains the custom certificate for the object store
type: string
tlsSecretMountPath:
description: TLS secret mount path for the custom certificate for the object store
type: string
required:
- key
- name
Expand Down Expand Up @@ -748,6 +751,9 @@ spec:
tlsSecretName:
description: TLS secret contains the custom certificate for the object store
type: string
tlsSecretMountPath:
description: TLS secret mount path for the custom certificate for the object store
type: string
required:
- key
- name
Expand Down Expand Up @@ -781,6 +787,9 @@ spec:
tlsSecretName:
description: TLS secret contains the custom certificate for the object store
type: string
tlsSecretMountPath:
description: TLS secret mount path for the custom certificate for the object store
type: string
required:
- key
- name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ spec:
description: TLS secret contains the custom certificate for
the object store
type: string
tlsSecretMountPath:
description: TLS secret mount path for the custom certificate for
the object store
type: string
required:
- key
- name
Expand Down Expand Up @@ -894,6 +898,10 @@ spec:
description: TLS secret contains the custom certificate for
the object store
type: string
tlsSecretMountPath:
description: TLS secret mount path for the custom certificate for
the object store
type: string
required:
- key
- name
Expand Down Expand Up @@ -935,6 +943,10 @@ spec:
description: TLS secret contains the custom certificate
for the object store
type: string
tlsSecretMountPath:
description: TLS secret mount path for the custom certificate
for the object store
type: string
required:
- key
- name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func newDefaultObservatoriumSpec(cl client.Client, mco *mcov1beta2.MultiClusterO
obs.ObjectStorageConfig.Thanos.Name = objStorageConf.Name
obs.ObjectStorageConfig.Thanos.Key = objStorageConf.Key
obs.ObjectStorageConfig.Thanos.TLSSecretName = objStorageConf.TLSSecretName
obs.ObjectStorageConfig.Thanos.TLSSecretMountPath = tlsSecretMountPath
obs.ObjectStorageConfig.Thanos.TLSSecretMountPath = objStorageConf.TLSSecretMountPath
obs.ObjectStorageConfig.Thanos.ServiceAccountProjection =
mco.Spec.StorageConfig.MetricObjectStorage.ServiceAccountProjection
}
Expand Down

0 comments on commit eb9bda2

Please sign in to comment.