forked from OCP-on-NERC/nerc-ocp-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ExtSecret for acm-metrics-2Ti objstore
partly fixing nerc-project/operations#745 - New ExternalSecret for ACM metrics 2Ti object storage in `open-cluster-management-observability` namespace. - Updated the ACM observability bundle to include the new resource in the kustomization. - Patch for the infra overlay to map the bucket, endpoint, access_key, and secret_key for ACM metrics 2Ti object storage. - Manually, outside of github: added bucket, endpoint, access_key, and secret_key to vault infra. This new storage is for testing our problems with nooba, scaling storage pools, and ODF operator. nerc-project/operations#688 To reproduce the error or solve it. Signed-off-by: /Thor(sten)?/ Schwesig <[email protected]>
- Loading branch information
Showing
5 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
.../open-cluster-management-observability-acm-metrics-2ti-object-storage/externalsecret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: open-cluster-management-observability-acm-metrics-2ti-object-storage | ||
namespace: open-cluster-management-observability | ||
spec: | ||
refreshInterval: 15s | ||
secretStoreRef: | ||
name: nerc-cluster-secrets | ||
kind: ClusterSecretStore | ||
target: | ||
name: acm-metrics-2ti-object-storage | ||
template: | ||
type: Opaque | ||
engineVersion: v2 | ||
data: | ||
acm-metrics.yaml: | | ||
type: s3 | ||
config: | ||
bucket: "{{ .bucket }}" | ||
endpoint: "{{ .endpoint }}" | ||
insecure: false | ||
access_key: "{{ .access_key }}" | ||
secret_key: "{{ .secret_key }}" | ||
http_config: | ||
tls_config: | ||
ca_file: "/run/secrets/kubernetes.io/serviceaccount/service-ca.crt" | ||
data: | ||
- secretKey: bucket | ||
remoteRef: | ||
key: $ENV/$CLUSTER/open-cluster-management-observability/acm-metrics-2ti/object-storage # the path-details will be replaced in the overlay patch | ||
property: bucket | ||
- secretKey: endpoint | ||
remoteRef: | ||
key: $ENV/$CLUSTER/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: endpoint | ||
- secretKey: access_key | ||
remoteRef: | ||
key: $ENV/$CLUSTER/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: access_key | ||
- secretKey: secret_key | ||
remoteRef: | ||
key: $ENV/$CLUSTER/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: secret_key |
7 changes: 7 additions & 0 deletions
7
...s/open-cluster-management-observability-acm-metrics-2ti-object-storage/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
commonLabels: | ||
nerc.mghpcc.org/kustomized: "true" | ||
|
||
resources: | ||
- externalsecret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...alsecrets/open-cluster-management-observability-acm-metrics-2ti-object-storage_patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: open-cluster-management-observability-acm-metrics-2ti-object-storage | ||
namespace: open-cluster-management-observability | ||
spec: | ||
data: | ||
- secretKey: bucket | ||
remoteRef: | ||
key: nerc/nerc-ocp-infra/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: bucket | ||
- secretKey: endpoint | ||
remoteRef: | ||
key: nerc/nerc-ocp-infra/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: endpoint | ||
- secretKey: access_key | ||
remoteRef: | ||
key: nerc/nerc-ocp-infra/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: access_key | ||
- secretKey: secret_key | ||
remoteRef: | ||
key: nerc/nerc-ocp-infra/open-cluster-management-observability/acm-metrics-2ti/object-storage | ||
property: secret_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters