Skip to content

Commit

Permalink
build new crd
Browse files Browse the repository at this point in the history
  • Loading branch information
f41gh7 committed Jul 25, 2022
1 parent dbe2771 commit d6038fa
Show file tree
Hide file tree
Showing 17 changed files with 508 additions and 10 deletions.
60 changes: 60 additions & 0 deletions api/v1beta1/zz_generated.deepcopy.go

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

40 changes: 40 additions & 0 deletions config/crd/bases/operator.victoriametrics.com_vmagents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,34 @@ spec:
of the cluster and will discover API servers automatically and use
the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.
properties:
authorization:
description: Authorization configures generic authorization params
properties:
credentials:
description: Reference to the secret with value for authorization
properties:
key:
description: The key of the secret to select from. Must
be a valid secret key.
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
optional:
description: Specify whether the Secret or its key must
be defined
type: boolean
required:
- key
type: object
credentialsFile:
description: File with value for authorization
type: string
type:
description: Type of authorization, default to bearer
type: string
type: object
basicAuth:
description: BasicAuth allow an endpoint to authenticate over
basic authentication
Expand Down Expand Up @@ -1198,6 +1226,13 @@ spec:
required:
- key
type: object
headers:
description: 'Headers allow configuring custom http headers
Must be in form of semicolon separated header with value e.g.
headerName: headerValue vmagent supports since 1.79.0 version'
items:
type: string
type: array
inlineUrlRelabelConfig:
description: InlineUrlRelabelConfig defines relabeling config
for remoteWriteURL, it can be defined at crd spec.
Expand Down Expand Up @@ -1540,6 +1575,11 @@ spec:
description: Path to directory where temporary data for remote
write component is stored (default vmagent-remotewrite-data)
type: string
useMultiTenantMode:
description: Configures vmagent in multi-tenant mode with direct
cluster support docs https://docs.victoriametrics.com/vmagent.html#multitenancy
it's global setting and affects all remote storage configurations
type: boolean
type: object
replicaCount:
description: ReplicaCount is the expected size of the VMAgent cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ spec:
extraArgs:
additionalProperties:
type: string
description: 'ExtraArgs that will be passed to VMAlertmanager pod for example
log.level: debug'
description: 'ExtraArgs that will be passed to VMAlertmanager pod
for example log.level: debug'
type: object
extraEnvs:
description: ExtraEnvs that will be added to VMAlertmanager pod
Expand Down
5 changes: 3 additions & 2 deletions config/crd/bases/operator.victoriametrics.com_vmclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,9 @@ spec:
node network namespace
type: boolean
hpa:
description: EmbeddedHPA embeds HorizontalPodAutoScaler spec v2.
https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2beta2/
description: Configures horizontal pod autoscaling. Note, enabling
this option disables vmselect to vmselect communication. In
most cases it's not an issue.
type: object
x-kubernetes-preserve-unknown-fields: true
image:
Expand Down
38 changes: 37 additions & 1 deletion config/crd/bases/operator.victoriametrics.com_vmnodescrapes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ spec:
spec:
description: VMNodeScrapeSpec defines specification for VMNodeScrape.
properties:
authorization:
description: Authorization with http header Authorization
properties:
credentials:
description: Reference to the secret with value for authorization
properties:
key:
description: The key of the secret to select from. Must be
a valid secret key.
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
optional:
description: Specify whether the Secret or its key must be
defined
type: boolean
required:
- key
type: object
credentialsFile:
description: File with value for authorization
type: string
type:
description: Type of authorization, default to bearer
type: string
type: object
basicAuth:
description: 'BasicAuth allow an endpoint to authenticate over basic
authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints'
Expand Down Expand Up @@ -404,7 +432,7 @@ spec:
type: string
type: array
tlsConfig:
description: TLSConfig configuration to use when scraping the node
description: TLSConfig specifies TLSConfig configuration parameters.
properties:
ca:
description: Stuct containing the CA cert to use for the targets.
Expand Down Expand Up @@ -529,6 +557,14 @@ spec:
type: boolean
disable_keep_alive:
type: boolean
headers:
description: 'Headers allows sending custom headers to scrape
targets must be in of semicolon separated header with it''s
value eg: headerName: headerValue vmagent supports since 1.79.0
version'
items:
type: string
type: array
metric_relabel_debug:
type: boolean
proxy_client_config:
Expand Down
36 changes: 36 additions & 0 deletions config/crd/bases/operator.victoriametrics.com_vmpodscrapes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,34 @@ spec:
description: PodMetricsEndpoint defines a scrapeable endpoint of
a Kubernetes Pod serving Prometheus metrics.
properties:
authorization:
description: Authorization with http header Authorization
properties:
credentials:
description: Reference to the secret with value for authorization
properties:
key:
description: The key of the secret to select from. Must
be a valid secret key.
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
optional:
description: Specify whether the Secret or its key must
be defined
type: boolean
required:
- key
type: object
credentialsFile:
description: File with value for authorization
type: string
type:
description: Type of authorization, default to bearer
type: string
type: object
basicAuth:
description: 'BasicAuth allow an endpoint to authenticate over
basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints'
Expand Down Expand Up @@ -528,6 +556,14 @@ spec:
type: boolean
disable_keep_alive:
type: boolean
headers:
description: 'Headers allows sending custom headers to scrape
targets must be in of semicolon separated header with
it''s value eg: headerName: headerValue vmagent supports
since 1.79.0 version'
items:
type: string
type: array
metric_relabel_debug:
type: boolean
proxy_client_config:
Expand Down
36 changes: 36 additions & 0 deletions config/crd/bases/operator.victoriametrics.com_vmprobes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ spec:
spec:
description: VMProbeSpec contains specification parameters for a Probe.
properties:
authorization:
description: Authorization with http header Authorization
properties:
credentials:
description: Reference to the secret with value for authorization
properties:
key:
description: The key of the secret to select from. Must be
a valid secret key.
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
optional:
description: Specify whether the Secret or its key must be
defined
type: boolean
required:
- key
type: object
credentialsFile:
description: File with value for authorization
type: string
type:
description: Type of authorization, default to bearer
type: string
type: object
basicAuth:
description: 'BasicAuth allow an endpoint to authenticate over basic
authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints'
Expand Down Expand Up @@ -558,6 +586,14 @@ spec:
type: boolean
disable_keep_alive:
type: boolean
headers:
description: 'Headers allows sending custom headers to scrape
targets must be in of semicolon separated header with it''s
value eg: headerName: headerValue vmagent supports since 1.79.0
version'
items:
type: string
type: array
metric_relabel_debug:
type: boolean
proxy_client_config:
Expand Down
Loading

0 comments on commit d6038fa

Please sign in to comment.