Skip to content

Commit 6c8a054

Browse files
committed
coroot-operator v1.5.1
1 parent 18f89ba commit 6c8a054

File tree

2 files changed

+53
-7
lines changed

2 files changed

+53
-7
lines changed

charts/operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: coroot-operator
33
description: A Helm chart to deploy the Coroot Operator for Kubernetes
44
type: application
5-
version: 0.5.0
6-
appVersion: "1.5.0"
5+
version: 0.5.1
6+
appVersion: "1.5.1"

charts/operator/templates/crd.yaml

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6418,7 +6418,7 @@ spec:
64186418
properties:
64196419
apiKeys:
64206420
description: Project API keys, used by agents to send telemetry
6421-
data (required unless memberProjects is set).
6421+
data (required unless memberProjects or remoteCoroot is set).
64226422
items:
64236423
properties:
64246424
description:
@@ -6854,14 +6854,60 @@ spec:
68546854
required:
68556855
- baseURL
68566856
type: object
6857+
remoteCoroot:
6858+
description: Use another Coroot instance as the data source
6859+
for this project.
6860+
properties:
6861+
apiKey:
6862+
description: API key of the remote project.
6863+
type: string
6864+
apiKeySecret:
6865+
description: Secret containing the API key.
6866+
properties:
6867+
key:
6868+
description: The key of the secret to select from. Must
6869+
be a valid secret key.
6870+
type: string
6871+
name:
6872+
default: ""
6873+
description: |-
6874+
Name of the referent.
6875+
This field is effectively required, but due to backwards compatibility is
6876+
allowed to be empty. Instances of this type with an empty value here are
6877+
almost certainly wrong.
6878+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
6879+
type: string
6880+
optional:
6881+
description: Specify whether the Secret or its key must
6882+
be defined
6883+
type: boolean
6884+
required:
6885+
- key
6886+
type: object
6887+
x-kubernetes-map-type: atomic
6888+
metricResolution:
6889+
description: Prometheus query resolution/refresh interval
6890+
(e.g. 15s).
6891+
pattern: ^[0-9]+[smhdwy]$
6892+
type: string
6893+
tlsSkipVerify:
6894+
description: Whether to skip verification of the Coroot
6895+
server's TLS certificate.
6896+
type: boolean
6897+
url:
6898+
description: Base URL of the remote Coroot instance.
6899+
pattern: ^https?://.+$
6900+
type: string
6901+
type: object
68576902
required:
68586903
- name
68596904
type: object
68606905
x-kubernetes-validations:
6861-
- message: Exactly one of memberProjects or apiKeys must be non-empty.
6862-
rule: 'has(self.memberProjects) && size(self.memberProjects) >
6863-
0 ? !has(self.apiKeys) || size(self.apiKeys) == 0 : has(self.apiKeys)
6864-
&& size(self.apiKeys) > 0'
6906+
- message: Exactly one of memberProjects, remoteCoroot, or apiKeys
6907+
must be set.
6908+
rule: '(has(self.memberProjects) && size(self.memberProjects)
6909+
> 0 ? 1 : 0) + (has(self.remoteCoroot) ? 1 : 0) + (has(self.apiKeys)
6910+
&& size(self.apiKeys) > 0 ? 1 : 0) == 1'
68656911
type: array
68666912
prometheus:
68676913
description: Prometheus configuration.

0 commit comments

Comments
 (0)