1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Maintenance] Update Features Description, Supported K8S Versions (#1563)

This commit is contained in:
Adam Janikowski 2024-01-08 16:58:01 +01:00 committed by GitHub
parent 1e8749850d
commit b76b0de839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
195 changed files with 3921 additions and 704 deletions

View file

@ -82,7 +82,7 @@ jobs:
echo "This is not a pull request. Skipping..."
exit 0
fi
make verify-generated synchronize-v2alpha1-with-v1 generate-internal fmt yamlfmt
make update-generated synchronize-v2alpha1-with-v1 generate-internal fmt yamlfmt
if [ ! -z "$(git status --porcelain)" ]; then
echo "There are uncommited changes!"
git status

View file

@ -3,6 +3,7 @@
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
- (Documentation) Improve documentation rendering for GitHub Pages
- (Maintenance) Reduce binary size
- (Maintenance) Update Features Description, Supported K8S Versions and K8S Dependency to 1.28.5
## [1.2.36](https://github.com/arangodb/kube-arangodb/tree/1.2.36) (2024-01-08)
- (Documentation) Improvements and fixes for rendered documentation (GH pages)

View file

@ -9,8 +9,8 @@ ifeq ($(shell uname),Darwin)
REALPATH ?= grealpath
endif
KUBERNETES_VERSION_MINOR:=25
KUBERNETES_VERSION_PATCH:=13
KUBERNETES_VERSION_MINOR:=28
KUBERNETES_VERSION_PATCH:=5
PROJECT := arangodb_operator
SCRIPTDIR := $(shell pwd)
@ -261,7 +261,7 @@ PROTOSOURCES := $(shell find ./ -type f -name '*.proto' $(foreach EXCLUDE_DIR,$
.DEFAULT_GOAL := all
.PHONY: all
all: check-vars verify-generated build
all: check-vars build
.PHONY: compile
compile: check-vars build
@ -394,7 +394,7 @@ update-generated:
@ln -s -f $(SCRIPTDIR) $(ORGDIR)/kube-arangodb
@$(SED) -e 's/^/\/\/ /' -e 's/ *$$//' $(ROOTDIR)/tools/codegen/license-header.txt > $(ROOTDIR)/tools/codegen/boilerplate.go.txt
GOPATH=$(GOBUILDDIR) $(VENDORDIR)/k8s.io/code-generator/generate-groups.sh \
"all" \
"client lister informer deepcopy" \
"github.com/arangodb/kube-arangodb/pkg/generated" \
"github.com/arangodb/kube-arangodb/pkg/apis" \
"deployment:v1 replication:v1 storage:v1alpha backup:v1 deployment:v2alpha1 replication:v2alpha1 apps:v1 ml:v1alpha1" \
@ -408,10 +408,6 @@ update-generated:
--go-header-file "./tools/codegen/boilerplate.go.txt" \
$(VERIFYARGS)
.PHONY: verify-generated
verify-generated:
@${MAKE} -B -s VERIFYARGS=--verify-only update-generated
dashboard/assets.go:
cd $(DASHBOARDDIR) && docker build -t $(DASHBOARDBUILDIMAGE) -f Dockerfile.build $(DASHBOARDDIR)
@mkdir -p $(DASHBOARDDIR)/build

View file

@ -19,7 +19,6 @@ Each of these uses involves a different custom resource:
Continue with [Using the ArangoDB Kubernetes Operator](docs/using-the-operator.md)
to learn how to install the ArangoDB Kubernetes operator and create your first deployment.
## State
The ArangoDB Kubernetes Operator is Production ready.
@ -121,6 +120,85 @@ To upgrade to the Enterprise Edition, you need to get in touch with the ArangoDB
[END_INJECT]: # (featuresEnterpriseTable)
## Flags
```
Flags:
--action.PVCResize.concurrency int Define limit of concurrent PVC Resizes on the cluster (default 32)
--agency.refresh-delay duration The Agency refresh delay (0 = no delay) (default 500ms)
--agency.refresh-interval duration The Agency refresh interval (0 = do not refresh)
--agency.retries int The Agency retries (0 = no retries) (default 1)
--api.enabled Enable operator HTTP and gRPC API (default true)
--api.grpc-port int gRPC API port to listen on (default 8728)
--api.http-port int HTTP API port to listen on (default 8628)
--api.jwt-key-secret-name string Name of secret containing key used to sign JWT. If there is no such secret present, value will be saved here (default "arangodb-operator-api-jwt-key")
--api.jwt-secret-name string Name of secret which will contain JWT to authenticate API requests. (default "arangodb-operator-api-jwt")
--api.tls-secret-name string Name of secret containing tls.crt & tls.key for HTTPS API (if empty, self-signed certificate is used)
--backup-concurrent-uploads int Number of concurrent uploads per deployment (default 4)
--chaos.allowed Set to allow chaos in deployments. Only activated when allowed and enabled in deployment
--crd.install Install missing CRD if access is possible (default true)
--crd.validation-schema stringArray Overrides default set of CRDs which should have validation schema enabled <crd-name>=<true/false>.
--deployment.feature.agency-poll Enable Agency Poll for Enterprise deployments - Required ArangoDB 3.8.0 or higher (default true)
--deployment.feature.all Enable ALL Features
--deployment.feature.async-backup-creation Create backups asynchronously to avoid blocking the operator and reaching the timeout - Required ArangoDB 3.8.0 or higher
--deployment.feature.deployment-spec-defaults-restore Restore defaults from last accepted state of deployment - Required ArangoDB 3.8.0 or higher (default true)
--deployment.feature.enforced-resign-leadership Enforce ResignLeadership and ensure that Leaders are moved from restarted DBServer - Required ArangoDB 3.8.0 or higher (default true)
--deployment.feature.ephemeral-volumes Enables ephemeral volumes for apps and tmp directory - Required ArangoDB 3.8.0 or higher
--deployment.feature.failover-leadership Support for leadership in fail-over mode - Required ArangoDB 3.8.0 or higher
--deployment.feature.init-containers-copy-resources Copy resources spec to built-in init containers if they are not specified - Required ArangoDB 3.8.0 or higher (default true)
--deployment.feature.init-containers-upscale-resources Copy resources spec to built-in init containers if they are not specified or lower - Required ArangoDB 3.8.0 or higher (default true)
--deployment.feature.local-storage.pass-reclaim-policy [LocalStorage] Pass ReclaimPolicy from StorageClass instead of using hardcoded Retain - Required ArangoDB 3.8.0 or higher
--deployment.feature.local-volume-replacement-check Replace volume for local-storage if volume is unschedulable (ex. node is gone) - Required ArangoDB 3.8.0 or higher
--deployment.feature.random-pod-names Enables generating random pod names - Required ArangoDB 3.8.0 or higher
--deployment.feature.rebalancer-v2 Rebalancer V2 feature - Required ArangoDB 3.10.0 or higher
--deployment.feature.restart-policy-always Allow to restart containers with always restart policy - Required ArangoDB 3.8.0 or higher
--deployment.feature.secured-containers Create server's containers with non root privileges. It enables 'ephemeral-volumes' feature implicitly - Required ArangoDB 3.8.0 or higher
--deployment.feature.sensitive-information-protection Hide sensitive information from metrics and logs - Required ArangoDB 3.8.0 or higher
--deployment.feature.short-pod-names Enable Short Pod Names - Required ArangoDB 3.8.0 or higher
--deployment.feature.timezone-management Enable timezone management for pods - Required ArangoDB 3.8.0 or higher
--deployment.feature.tls-sni TLS SNI Support - Required ArangoDB EE 3.8.0 or higher (default true)
--deployment.feature.upgrade-version-check Enable initContainer with pre version check - Required ArangoDB 3.8.0 or higher (default true)
--deployment.feature.upgrade-version-check-v2 Enable initContainer with pre version check based by Operator - Required ArangoDB 3.8.0 or higher
--features-config-map-name string Name of the Feature Map ConfigMap (default "arangodb-operator-feature-config-map")
-h, --help help for arangodb_operator
--internal.scaling-integration Enable Scaling Integration
--kubernetes.burst int Burst for the k8s API (default 30)
--kubernetes.max-batch-size int Size of batch during objects read (default 256)
--kubernetes.qps float32 Number of queries per second for k8s API (default 15)
--log.format string Set log format. Allowed values: 'pretty', 'JSON'. If empty, default format is used (default "pretty")
--log.level stringArray Set log levels in format <level> or <logger>=<level>. Possible loggers: action, agency, api-server, assertion, backup-operator, chaos-monkey, crd, deployment, deployment-ci, deployment-reconcile, deployment-replication, deployment-resilience, deployment-resources, deployment-storage, deployment-storage-pc, deployment-storage-service, http, inspector, k8s-client, ml-batchjob-operator, ml-cronjob-operator, ml-extension-operator, ml-extension-shutdown, ml-storage-operator, monitor, operator, operator-arangojob-handler, operator-v2, operator-v2-event, operator-v2-worker, panics, pod_compare, root, root-event-recorder, server, server-authentication (default [debug])
--memory-limit uint Define memory limit for hard shutdown and the dump of goroutines. Used for testing
--metrics.excluded-prefixes stringArray List of the excluded metrics prefixes
--mode.single Enable single mode in Operator. WARNING: There should be only one replica of Operator, otherwise Operator can take unexpected actions
--operator.apps Enable to run the ArangoApps operator
--operator.backup Enable to run the ArangoBackup operator
--operator.deployment Enable to run the ArangoDeployment operator
--operator.deployment-replication Enable to run the ArangoDeploymentReplication operator
--operator.ml Enable to run the ArangoML operator
--operator.reconciliation.retry.count int Count of retries during Object Update operations in the Reconciliation loop (default 25)
--operator.reconciliation.retry.delay duration Delay between Object Update operations in the Reconciliation loop (default 1s)
--operator.storage Enable to run the ArangoLocalStorage operator
--operator.version Enable only version endpoint in Operator
--reconciliation.delay duration Delay between reconciliation loops (<= 0 -> Disabled)
--scope string Define scope on which Operator works. Legacy - pre 1.1.0 scope with limited cluster access (default "legacy")
--server.admin-secret-name string Name of secret containing username + password for login to the dashboard (default "arangodb-operator-dashboard")
--server.allow-anonymous-access Allow anonymous access to the dashboard
--server.host string Host to listen on (default "0.0.0.0")
--server.port int Port to listen on (default 8528)
--server.tls-secret-name string Name of secret containing tls.crt & tls.key for HTTPS server (if empty, self-signed certificate is used)
--shutdown.delay duration The delay before running shutdown handlers (default 2s)
--shutdown.timeout duration Timeout for shutdown handlers (default 30s)
--timeout.agency duration The Agency read timeout (default 10s)
--timeout.arangod duration The request timeout to the ArangoDB (default 5s)
--timeout.arangod-check duration The version check request timeout to the ArangoDB (default 2s)
--timeout.backup-arangod duration The request timeout to the ArangoDB during backup calls (default 30s)
--timeout.backup-upload duration The request timeout to the ArangoDB during uploading files (default 5m0s)
--timeout.k8s duration The request timeout to the kubernetes (default 2s)
--timeout.reconciliation duration The reconciliation timeout to the ArangoDB CR (default 1m0s)
--timeout.shard-rebuild duration Timeout after which particular out-synced shard is considered as failed and rebuild is triggered (default 1h0m0s)
--timeout.shard-rebuild-retry duration Timeout after which rebuild shards retry flow is triggered (default 4h0m0s)
```
## Installation and Usage
Docker images:

109
go.mod
View file

@ -8,17 +8,17 @@ replace (
github.com/stretchr/testify => github.com/stretchr/testify v1.5.1
github.com/ugorji/go => github.com/ugorji/go v0.0.0-20181209151446-772ced7fd4c2
k8s.io/api => k8s.io/api v0.25.13
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.25.13
k8s.io/apimachinery => k8s.io/apimachinery v0.25.13
k8s.io/apiserver => k8s.io/apiserver v0.25.13
k8s.io/client-go => k8s.io/client-go v0.25.13
k8s.io/cloud-provider => k8s.io/cloud-provider v0.25.13
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.25.13
k8s.io/api => k8s.io/api v0.28.5
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.28.5
k8s.io/apimachinery => k8s.io/apimachinery v0.28.5
k8s.io/apiserver => k8s.io/apiserver v0.28.5
k8s.io/client-go => k8s.io/client-go v0.28.5
k8s.io/cloud-provider => k8s.io/cloud-provider v0.28.5
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.28.5
k8s.io/code-generator => ./deps/k8s.io/code-generator
k8s.io/component-base => k8s.io/component-base v0.25.13
k8s.io/kubernetes => k8s.io/kubernetes v0.25.13
k8s.io/metrics => k8s.io/metrics v0.25.13
k8s.io/component-base => k8s.io/component-base v0.28.5
k8s.io/kubernetes => k8s.io/kubernetes v0.28.5
k8s.io/metrics => k8s.io/metrics v0.28.5
)
require (
@ -44,12 +44,12 @@ require (
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.44.1
github.com/prometheus-operator/prometheus-operator/pkg/client v0.0.0-00010101000000-000000000000
github.com/prometheus/client_golang v1.15.1
github.com/prometheus/client_golang v1.16.0
github.com/prometheus/client_model v0.4.0
github.com/prometheus/prom2json v1.3.3
github.com/robfig/cron v1.2.0
github.com/rs/zerolog v1.19.0
github.com/spf13/cobra v1.4.0
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.4
golang.org/x/sync v0.3.0
@ -59,33 +59,43 @@ require (
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.31.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.25.13
k8s.io/apiextensions-apiserver v0.25.13
k8s.io/apimachinery v0.25.13
k8s.io/client-go v0.25.13
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1
sigs.k8s.io/yaml v1.2.0
k8s.io/api v0.28.5
k8s.io/apiextensions-apiserver v0.28.5
k8s.io/apimachinery v0.28.5
k8s.io/client-go v0.28.5
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9
sigs.k8s.io/yaml v1.3.0
)
require (
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
github.com/arangodb-managed/apis v0.85.0 // indirect
github.com/arangodb-managed/integration-apis v0.1.1 // indirect
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/bytedance/sonic v1.9.1 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dchest/siphash v1.2.2 // indirect
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/swag v0.21.1 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.0 // indirect
@ -93,11 +103,17 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/cel-go v0.16.1 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kkdai/maglev v0.2.0 // indirect
@ -106,6 +122,7 @@ require (
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
@ -114,21 +131,53 @@ require (
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
github.com/stoewer/go-strcase v1.2.0 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
go.etcd.io/etcd/client/v3 v3.5.9 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.35.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.1 // indirect
go.opentelemetry.io/otel v1.10.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.10.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.10.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.10.0 // indirect
go.opentelemetry.io/otel/metric v0.31.0 // indirect
go.opentelemetry.io/otel/sdk v1.10.0 // indirect
go.opentelemetry.io/otel/trace v1.10.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.19.0 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/exp v0.0.0-20230125214544-b3c2aaf6208d // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/tools v0.12.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/klog/v2 v2.70.1 // indirect
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
k8s.io/apiserver v0.28.5 // indirect
k8s.io/cloud-provider v0.28.5 // indirect
k8s.io/cluster-bootstrap v0.28.5 // indirect
k8s.io/code-generator v0.28.5 // indirect
k8s.io/component-base v0.28.5 // indirect
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect
k8s.io/klog/v2 v2.100.1 // indirect
k8s.io/kms v0.28.5 // indirect
k8s.io/metrics v0.28.5 // indirect
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
)

1498
go.sum

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -33,11 +33,10 @@ import (
"github.com/arangodb/go-driver"
"github.com/arangodb/kube-arangodb/internal/md"
"github.com/arangodb/kube-arangodb/pkg/deployment/features"
"github.com/arangodb/kube-arangodb/pkg/util"
)
const minSupportedArangoDBVersion = ">= 3.8.0"
type PlatformsDoc struct {
Platforms Platforms `json:"platforms,omitempty" yaml:"platforms,omitempty"`
}
@ -218,7 +217,7 @@ func GenerateReadmeFeatures(root, basePath string, eeOnly bool) (string, error)
feature: n,
oVersion: util.TypeOrDefault[string](util.First(r.OperatorVersion, f.OperatorVersion), "ANY"),
introduced: util.TypeOrDefault[string](f.Releases[0].OperatorVersion, "ANY"),
aVersion: util.TypeOrDefault[string](util.First(r.ArangoDBVersion, f.ArangoDBVersion), minSupportedArangoDBVersion),
aVersion: util.TypeOrDefault[string](util.First(r.ArangoDBVersion, f.ArangoDBVersion), fmt.Sprintf(">= %s", features.MinSupportedArangoDBVersion)),
aEdition: util.TypeOrDefault[string](util.First(r.ArangoDBEdition, f.ArangoDBEdition), "Community, Enterprise"),
aEdition: util.TypeOrDefault[string](util.First(r.ArangoDBEdition, f.ArangoDBEdition), "Community, Enterprise"),
state: util.TypeOrDefault[string](util.First(r.State, f.State), "Alpha"),

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -4,7 +4,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -13,6 +13,9 @@ v1:
backoffLimit:
format: int32
type: integer
backoffLimitPerIndex:
format: int32
type: integer
completionMode:
type: string
completions:
@ -20,6 +23,9 @@ v1:
type: integer
manualSelector:
type: boolean
maxFailedIndexes:
format: int32
type: integer
parallelism:
format: int32
type: integer
@ -54,6 +60,8 @@ v1:
type: object
type: array
type: object
podReplacementPolicy:
type: string
selector:
properties:
matchExpressions:
@ -772,8 +780,24 @@ v1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -783,6 +807,8 @@ v1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1283,8 +1309,24 @@ v1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1294,6 +1336,8 @@ v1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1800,8 +1844,24 @@ v1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1811,6 +1871,8 @@ v1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -2004,12 +2066,33 @@ v1:
type: string
type: object
type: array
resourceClaims:
items:
properties:
name:
type: string
source:
properties:
resourceClaimName:
type: string
resourceClaimTemplateName:
type: string
type: object
type: object
type: array
restartPolicy:
type: string
runtimeClassName:
type: string
schedulerName:
type: string
schedulingGates:
items:
properties:
name:
type: string
type: object
type: array
securityContext:
properties:
fsGroup:
@ -2396,9 +2479,18 @@ v1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string

File diff suppressed because it is too large Load diff

View file

@ -25,6 +25,13 @@ v1:
resources:
description: Resources holds resource requests & limits. Overrides template provided on the group level.
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -140,9 +147,18 @@ v1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -185,6 +201,10 @@ v1:
items:
type: string
type: array
allocatedResourceStatuses:
additionalProperties:
type: string
type: object
allocatedResources:
additionalProperties:
type: string
@ -214,8 +234,6 @@ v1:
type: array
phase:
type: string
resizeStatus:
type: string
type: object
type: object
type: object
@ -925,8 +943,24 @@ v1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -936,6 +970,8 @@ v1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1436,8 +1472,24 @@ v1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1447,6 +1499,8 @@ v1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1953,8 +2007,24 @@ v1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1964,6 +2034,8 @@ v1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -2157,12 +2229,33 @@ v1:
type: string
type: object
type: array
resourceClaims:
items:
properties:
name:
type: string
source:
properties:
resourceClaimName:
type: string
resourceClaimTemplateName:
type: string
type: object
type: object
type: array
restartPolicy:
type: string
runtimeClassName:
type: string
schedulerName:
type: string
schedulingGates:
items:
properties:
name:
type: string
type: object
type: array
securityContext:
properties:
fsGroup:
@ -2549,9 +2642,18 @@ v1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -2975,6 +3077,13 @@ v1alpha:
resources:
description: Resources holds resource requests & limits. Overrides template provided on the group level.
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -3090,9 +3199,18 @@ v1alpha:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -3135,6 +3253,10 @@ v1alpha:
items:
type: string
type: array
allocatedResourceStatuses:
additionalProperties:
type: string
type: object
allocatedResources:
additionalProperties:
type: string
@ -3164,8 +3286,6 @@ v1alpha:
type: array
phase:
type: string
resizeStatus:
type: string
type: object
type: object
type: object
@ -3875,8 +3995,24 @@ v1alpha:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -3886,6 +4022,8 @@ v1alpha:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -4386,8 +4524,24 @@ v1alpha:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -4397,6 +4551,8 @@ v1alpha:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -4903,8 +5059,24 @@ v1alpha:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -4914,6 +5086,8 @@ v1alpha:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -5107,12 +5281,33 @@ v1alpha:
type: string
type: object
type: array
resourceClaims:
items:
properties:
name:
type: string
source:
properties:
resourceClaimName:
type: string
resourceClaimTemplateName:
type: string
type: object
type: object
type: array
restartPolicy:
type: string
runtimeClassName:
type: string
schedulerName:
type: string
schedulingGates:
items:
properties:
name:
type: string
type: object
type: array
securityContext:
properties:
fsGroup:
@ -5499,9 +5694,18 @@ v1alpha:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -5925,6 +6129,13 @@ v2alpha1:
resources:
description: Resources holds resource requests & limits. Overrides template provided on the group level.
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -6040,9 +6251,18 @@ v2alpha1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -6085,6 +6305,10 @@ v2alpha1:
items:
type: string
type: array
allocatedResourceStatuses:
additionalProperties:
type: string
type: object
allocatedResources:
additionalProperties:
type: string
@ -6114,8 +6338,6 @@ v2alpha1:
type: array
phase:
type: string
resizeStatus:
type: string
type: object
type: object
type: object
@ -6825,8 +7047,24 @@ v2alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -6836,6 +7074,8 @@ v2alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -7336,8 +7576,24 @@ v2alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -7347,6 +7603,8 @@ v2alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -7853,8 +8111,24 @@ v2alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -7864,6 +8138,8 @@ v2alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -8057,12 +8333,33 @@ v2alpha1:
type: string
type: object
type: array
resourceClaims:
items:
properties:
name:
type: string
source:
properties:
resourceClaimName:
type: string
resourceClaimTemplateName:
type: string
type: object
type: object
type: array
restartPolicy:
type: string
runtimeClassName:
type: string
schedulerName:
type: string
schedulingGates:
items:
properties:
name:
type: string
type: object
type: array
securityContext:
properties:
fsGroup:
@ -8449,9 +8746,18 @@ v2alpha1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string

View file

@ -475,6 +475,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -638,6 +645,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -846,6 +860,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1382,6 +1403,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1949,6 +1977,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -2510,6 +2545,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -3075,6 +3117,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -3636,6 +3685,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string

View file

@ -9,6 +9,9 @@ v1alpha1:
backoffLimit:
format: int32
type: integer
backoffLimitPerIndex:
format: int32
type: integer
completionMode:
type: string
completions:
@ -16,6 +19,9 @@ v1alpha1:
type: integer
manualSelector:
type: boolean
maxFailedIndexes:
format: int32
type: integer
parallelism:
format: int32
type: integer
@ -50,6 +56,8 @@ v1alpha1:
type: object
type: array
type: object
podReplacementPolicy:
type: string
selector:
properties:
matchExpressions:
@ -768,8 +776,24 @@ v1alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -779,6 +803,8 @@ v1alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1279,8 +1305,24 @@ v1alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1290,6 +1332,8 @@ v1alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1796,8 +1840,24 @@ v1alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1807,6 +1867,8 @@ v1alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -2000,12 +2062,33 @@ v1alpha1:
type: string
type: object
type: array
resourceClaims:
items:
properties:
name:
type: string
source:
properties:
resourceClaimName:
type: string
resourceClaimTemplateName:
type: string
type: object
type: object
type: array
restartPolicy:
type: string
runtimeClassName:
type: string
schedulerName:
type: string
schedulingGates:
items:
properties:
name:
type: string
type: object
type: array
securityContext:
properties:
fsGroup:
@ -2392,9 +2475,18 @@ v1alpha1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string

View file

@ -94,6 +94,9 @@ v1alpha1:
backoffLimit:
format: int32
type: integer
backoffLimitPerIndex:
format: int32
type: integer
completionMode:
type: string
completions:
@ -101,6 +104,9 @@ v1alpha1:
type: integer
manualSelector:
type: boolean
maxFailedIndexes:
format: int32
type: integer
parallelism:
format: int32
type: integer
@ -135,6 +141,8 @@ v1alpha1:
type: object
type: array
type: object
podReplacementPolicy:
type: string
selector:
properties:
matchExpressions:
@ -853,8 +861,24 @@ v1alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -864,6 +888,8 @@ v1alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1364,8 +1390,24 @@ v1alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1375,6 +1417,8 @@ v1alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -1881,8 +1925,24 @@ v1alpha1:
format: int32
type: integer
type: object
resizePolicy:
items:
properties:
resourceName:
type: string
restartPolicy:
type: string
type: object
type: array
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string
@ -1892,6 +1952,8 @@ v1alpha1:
type: string
type: object
type: object
restartPolicy:
type: string
securityContext:
properties:
allowPrivilegeEscalation:
@ -2085,12 +2147,33 @@ v1alpha1:
type: string
type: object
type: array
resourceClaims:
items:
properties:
name:
type: string
source:
properties:
resourceClaimName:
type: string
resourceClaimTemplateName:
type: string
type: object
type: object
type: array
restartPolicy:
type: string
runtimeClassName:
type: string
schedulerName:
type: string
schedulingGates:
items:
properties:
name:
type: string
type: object
type: array
securityContext:
properties:
fsGroup:
@ -2477,9 +2560,18 @@ v1alpha1:
type: string
name:
type: string
namespace:
type: string
type: object
resources:
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string

View file

@ -155,6 +155,13 @@ v1alpha1:
resources:
description: Resources holds resource requests & limits for container
properties:
claims:
items:
properties:
name:
type: string
type: object
type: array
limits:
additionalProperties:
type: string

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -32,6 +32,7 @@ import (
"github.com/arangodb/kube-arangodb/pkg/debug_package/shared"
"github.com/arangodb/kube-arangodb/pkg/util/errors"
"github.com/arangodb/kube-arangodb/pkg/util/kclient"
"github.com/arangodb/kube-arangodb/pkg/util/shutdown"
)
const LocalBinDir = "/usr/bin/arangodb_operator"
@ -121,7 +122,7 @@ func discoverExecFunc() (ArangoOperatorExecFunc, error) {
var stderr, stdout bytes.Buffer
if err := shared.ExecuteCommandInPod(k, "operator", v.GetName(), v.GetNamespace(), []string{LocalBinDir, "version"}, nil, &stdout, &stderr); err != nil {
if err := shared.ExecuteCommandInPod(shutdown.Context(), k, "operator", v.GetName(), v.GetNamespace(), []string{LocalBinDir, "version"}, nil, &stdout, &stderr); err != nil {
continue
}
@ -142,7 +143,7 @@ func discoverExecFunc() (ArangoOperatorExecFunc, error) {
in[id+1] = args[id]
}
err := shared.ExecuteCommandInPod(k, "operator", id, cli.GetInput().Namespace, in, nil, &stdout, &stderr)
err := shared.ExecuteCommandInPod(shutdown.Context(), k, "operator", id, cli.GetInput().Namespace, in, nil, &stdout, &stderr)
return stdout.Bytes(), stderr.Bytes(), err
}, nil

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -21,6 +21,7 @@
package shared
import (
"context"
"io"
core "k8s.io/api/core/v1"
@ -31,7 +32,7 @@ import (
)
// ExecuteCommandInPod executes command in pod with the given pod name and namespace.
func ExecuteCommandInPod(k kclient.Client, container, podName, namespace string,
func ExecuteCommandInPod(ctx context.Context, k kclient.Client, container, podName, namespace string,
command []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error {
req := k.Kubernetes().CoreV1().RESTClient().Post().Resource("pods").Name(podName).
@ -56,7 +57,7 @@ func ExecuteCommandInPod(k kclient.Client, container, podName, namespace string,
return err
}
return exec.Stream(remotecommand.StreamOptions{
return exec.StreamWithContext(ctx, remotecommand.StreamOptions{
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -130,81 +130,6 @@ func TestEnsurePod_ArangoDB_TLS_SNI(t *testing.T) {
},
},
},
{
Name: "Pod SNI Mounts - Enterprise - 3.6.0",
ArangoDeployment: &api.ArangoDeployment{
Spec: api.DeploymentSpec{
Image: util.NewType[string](createTestImageForVersion("3.6.0")),
Authentication: noAuthentication,
TLS: func() api.TLSSpec {
s := tlsSpec.DeepCopy()
s.SNI = &api.TLSSNISpec{
Mapping: map[string][]string{
"sni1": {
"a",
"b",
},
"sni2": {
"c",
"d",
},
}}
return *s
}(),
},
},
Features: testCaseFeatures{
TLSSNI: true,
},
Resources: func(t *testing.T, deployment *Deployment) {
createTLSSNISecret(t, deployment.SecretsModInterface(), "sni1", deployment.Namespace())
createTLSSNISecret(t, deployment.SecretsModInterface(), "sni2", deployment.Namespace())
},
Helper: func(t *testing.T, deployment *Deployment, testCase *testCaseStruct) {
deployment.currentObjectStatus = &api.DeploymentStatus{
Members: api.DeploymentStatusMembers{
Coordinators: api.MemberStatusList{
firstCoordinatorStatus,
},
},
Images: createTestImagesWithVersion(true, "3.6.0"),
}
testCase.createTestPodData(deployment, api.ServerGroupCoordinators, firstCoordinatorStatus)
},
ExpectedEvent: "member coordinator is created",
ExpectedPod: core.Pod{
Spec: core.PodSpec{
Volumes: []core.Volume{
k8sutil.CreateVolumeEmptyDir(shared.ArangodVolumeName),
createTestTLSVolume(api.ServerGroupCoordinatorsString, firstCoordinatorStatus.ID),
},
Containers: []core.Container{
{
Name: shared.ServerContainerName,
Image: createTestImageForVersion("3.6.0"),
Command: createTestCommandForCoordinator(firstCoordinatorStatus.ID, true, false),
Ports: createTestPorts(api.ServerGroupAgents),
VolumeMounts: []core.VolumeMount{
k8sutil.ArangodVolumeMount(),
k8sutil.TlsKeyfileVolumeMount(),
},
Resources: emptyResources,
ReadinessProbe: createTestReadinessProbe(httpProbe, true, ""),
ImagePullPolicy: core.PullIfNotPresent,
SecurityContext: securityContext.NewSecurityContext(),
},
},
RestartPolicy: core.RestartPolicyNever,
TerminationGracePeriodSeconds: &defaultCoordinatorTerminationTimeout,
Hostname: testDeploymentName + "-" + api.ServerGroupCoordinatorsString + "-" + firstCoordinatorStatus.ID,
Subdomain: testDeploymentName + "-int",
Affinity: k8sutil.CreateAffinity(testDeploymentName, api.ServerGroupCoordinatorsString,
false, ""),
},
},
},
{
Name: "Pod SNI Mounts - 3.7.0",
ArangoDeployment: &api.ArangoDeployment{

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var agencyPoll = &feature{
name: "agency-poll",
description: "Enable Agency Poll for Enterprise deployments",
version: "3.5.0",
enterpriseRequired: false,
operatorEnterpriseRequired: true,
enabledByDefault: true,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var asyncBackupCreation = &feature{
name: "async-backup-creation",
description: "Create backups asynchronously to avoid blocking the operator and reaching the timeout",
version: "3.7.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var deploymentSpecDefaultsRestore = &feature{
name: "deployment-spec-defaults-restore",
description: "Restore defaults from last accepted state of deployment",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
hidden: false,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var encryptionRotation = &feature{
name: "encryption-rotation",
description: "Encryption Key rotation in runtime",
version: "3.7.0",
enterpriseRequired: true,
enabledByDefault: false,
hidden: true,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var failoverLeadership = &feature{
name: "failover-leadership",
description: "Support for leadership in fail-over mode",
version: "3.7.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ func init() {
var gracefulShutdown = &feature{
name: "graceful-shutdown",
description: "Define graceful shutdown, using finalizers, is enabled",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
hidden: true,
@ -37,7 +36,6 @@ var gracefulShutdown = &feature{
var optionalGracefulShutdown = &feature{
name: "optional-graceful-shutdown",
description: "Define graceful shutdown, using finalizers, is optional and can fail in case of connection issues",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: false,
hidden: true,

View file

@ -28,7 +28,6 @@ func init() {
var initContainerCopyResources = &feature{
name: "init-containers-copy-resources",
description: "Copy resources spec to built-in init containers if they are not specified",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
hidden: false,
@ -37,7 +36,6 @@ var initContainerCopyResources = &feature{
var initContainerUpscaleResources = &feature{
name: "init-containers-upscale-resources",
description: "Copy resources spec to built-in init containers if they are not specified or lower",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
hidden: false,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var jwtRotation = &feature{
name: "jwt-rotation",
description: "JWT Token rotation in runtime",
version: "3.7.0",
enterpriseRequired: true,
enabledByDefault: true,
hidden: true,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -35,6 +35,8 @@ import (
const prefixArg = "deployment.feature"
const MinSupportedArangoDBVersion = "3.8.0"
var features Features
var featuresLock sync.Mutex
var enableAll = false
@ -88,16 +90,16 @@ func Init(cmd *cobra.Command) error {
for _, feature := range features {
z := ""
if v := feature.Version(); v != "" || feature.EnterpriseRequired() {
if v != "" && feature.EnterpriseRequired() {
z = fmt.Sprintf("%s - Required version %s and Enterprise Edition", feature.Description(), v)
} else if v != "" {
z = fmt.Sprintf("%s - Required version %s", feature.Description(), v)
} else if feature.EnterpriseRequired() {
z = fmt.Sprintf("%s - Required Enterprise Edition", feature.Description())
} else {
z = feature.Description()
version := feature.Version()
if version == "" {
version = MinSupportedArangoDBVersion
}
if feature.EnterpriseRequired() {
z = fmt.Sprintf("%s - Required ArangoDB EE %s or higher", feature.Description(), version)
} else {
z = fmt.Sprintf("%s - Required ArangoDB %s or higher", feature.Description(), version)
}
featureArgName = GetFeatureArgName(feature.Name())

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var maintenance = &feature{
name: "maintenance",
description: "Database maintenance mode management",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
hidden: true,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -31,7 +31,6 @@ func init() {
var metricsExporter = &feature{
name: "metrics-exporter",
description: "Define if internal metrics-exporter should be used",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
deprecated: "It is always set to True",

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ func init() {
var shortPodNames = &feature{
name: "short-pod-names",
description: "Enable Short Pod Names",
version: "3.5.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var rebuildOutSyncedShards = &feature{
name: "force-rebuild-out-synced-shards",
description: "Force rebuild permanently out-synced shards due to a bug in ArangoDB 3.8-3.10",
version: "3.8.0",
enterpriseRequired: false,
enabledByDefault: false,
hidden: true,

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var enforcedResignLeadership = &feature{
name: "enforced-resign-leadership",
description: "Enforce ResignLeadership and ensure that Leaders are moved from restarted DBServer",
version: "3.7.0",
enterpriseRequired: false,
enabledByDefault: true,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var restartPolicyAlways = &feature{
name: "restart-policy-always",
description: "Allow to restart containers with always restart policy",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -32,7 +32,6 @@ var securedContainers = &feature{
name: "secured-containers",
description: fmt.Sprintf("Create server's containers with non root privileges. "+
"It enables '%s' feature implicitly", ephemeralVolumes.Name()),
version: "3.7.0",
enterpriseRequired: false,
enabledByDefault: false,
dependencies: []Feature{ephemeralVolumes},

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ func init() {
var ephemeralVolumes = &feature{
name: "ephemeral-volumes",
description: "Enables ephemeral volumes for apps and tmp directory",
version: "3.7.0",
enterpriseRequired: false,
enabledByDefault: false,
}
@ -36,7 +35,6 @@ var ephemeralVolumes = &feature{
var sensitiveInformationProtection = &feature{
name: "sensitive-information-protection",
description: "Hide sensitive information from metrics and logs",
version: "3.7.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -27,7 +27,6 @@ func init() {
var timezone = &feature{
name: "timezone-management",
description: "Enable timezone management for pods",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ func init() {
var tlsRotation Feature = &feature{
name: "tls-rotation",
description: "TLS Keyfile rotation in runtime",
version: "3.7.0",
enterpriseRequired: true,
enabledByDefault: true,
hidden: true,
@ -41,7 +40,6 @@ func TLSRotation() Feature {
var tlsSNI Feature = &feature{
name: "tls-sni",
description: "TLS SNI Support",
version: "3.7.0",
enterpriseRequired: true,
enabledByDefault: true,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ func init() {
var upgradeVersionCheck Feature = &feature{
name: "upgrade-version-check",
description: "Enable initContainer with pre version check",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: true,
}
@ -36,7 +35,6 @@ var upgradeVersionCheck Feature = &feature{
var upgradeVersionCheckV2 Feature = &feature{
name: "upgrade-version-check-v2",
description: "Enable initContainer with pre version check based by Operator",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2023-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ func init() {
var localVolumeReplacementCheck Feature = &feature{
name: "local-volume-replacement-check",
description: "Replace volume for local-storage if volume is unschedulable (ex. node is gone)",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: false,
}
@ -36,7 +35,6 @@ var localVolumeReplacementCheck Feature = &feature{
var localStorageReclaimPolicyPass Feature = &feature{
name: "local-storage.pass-reclaim-policy",
description: "[LocalStorage] Pass ReclaimPolicy from StorageClass instead of using hardcoded Retain",
version: "3.6.0",
enterpriseRequired: false,
enabledByDefault: false,
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -38,7 +38,7 @@ type eventHandler struct {
component definitions.Component
}
func (e eventHandler) OnAdd(obj interface{}) {
func (e eventHandler) OnAdd(obj interface{}, isInInitialList bool) {
e.i.throttles.Invalidate(e.component)
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -125,34 +125,23 @@ func (r *Resources) ensurePDBForGroup(ctx context.Context, group api.ServerGroup
cache := r.context.ACS().CurrentClusterCache()
pdbMod := cache.PodDisruptionBudgetsModInterface()
var minAvailable *intstr.IntOrString
var deletionTimestamp *meta.Time
err := globals.GetGlobalTimeouts().Kubernetes().RunWithTimeout(ctx, func(ctxChild context.Context) error {
if inspector, err := cache.PodDisruptionBudget().V1(); err == nil {
if pdb, err := inspector.Read().Get(ctxChild, pdbName, meta.GetOptions{}); err != nil {
return err
} else {
minAvailable = pdb.Spec.MinAvailable
deletionTimestamp = pdb.GetDeletionTimestamp()
}
}
inspector, err := cache.PodDisruptionBudget().V1()
if err != nil {
return nil
})
}
pdb, found := inspector.GetSimple(pdbName)
if !found {
return nil
}
if kerrors.IsNotFound(err) {
if wantedMinAvail != 0 && wantedMinAvail < current {
// No PDB found - create new.
log.Debug("Creating new PDB")
err = globals.GetGlobalTimeouts().Kubernetes().RunWithTimeout(ctx, func(ctxChild context.Context) error {
var errInternal error
if cache.PodDisruptionBudget().Version().IsV1() {
pdb := newPDBV1(wantedMinAvail, deplName, group, r.context.GetAPIObject().AsOwner())
_, errInternal = pdbMod.V1().Create(ctxChild, pdb, meta.CreateOptions{})
}
_, errInternal := pdbMod.V1().Create(ctxChild, pdb, meta.CreateOptions{})
return errInternal
})
@ -169,24 +158,20 @@ func (r *Resources) ensurePDBForGroup(ctx context.Context, group api.ServerGroup
}
// PDB v1 or v1beta1 is here.
if minAvailable.IntValue() == wantedMinAvail && wantedMinAvail != 0 {
if pdb.Spec.MinAvailable.IntValue() == wantedMinAvail && wantedMinAvail != 0 {
return nil
}
// Update for PDBs is forbidden, thus one has to delete it and then create it again
// Otherwise delete it if wantedMinAvail is zero
log.Int("wanted-min-avail", wantedMinAvail).
Int("current-min-avail", minAvailable.IntValue()).
Int("current-min-avail", pdb.Spec.MinAvailable.IntValue()).
Debug("Recreating PDB")
// Trigger deletion only if not already deleted.
if deletionTimestamp == nil {
if pdb.GetDeletionTimestamp() == nil {
// Update the PDB.
err := globals.GetGlobalTimeouts().Kubernetes().RunWithTimeout(ctx, func(ctxChild context.Context) error {
if cache.PodDisruptionBudget().Version().IsV1() {
return pdbMod.V1().Delete(ctxChild, pdbName, meta.DeleteOptions{})
}
return nil
})
if err != nil && !kerrors.IsNotFound(err) {
log.Err(err).Error("PDB deletion failed")

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -51,8 +51,7 @@ type Interface interface {
StorageV1alpha() storagev1alpha.StorageV1alphaInterface
}
// Clientset contains the clients for groups. Each group has exactly one
// version included in a Clientset.
// Clientset contains the clients for groups.
type Clientset struct {
*discovery.DiscoveryClient
appsV1 *appsv1.AppsV1Client

View file

@ -1,24 +0,0 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Copyright holder is ArangoDB GmbH, Cologne, Germany
//
// Code generated by client-gen. DO NOT EDIT.
// This package has the automatically generated clientset.
package versioned

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
appsv1 "github.com/arangodb/kube-arangodb/pkg/apis/apps/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoJobs struct {
ns string
}
var arangojobsResource = schema.GroupVersionResource{Group: "apps.arangodb.com", Version: "v1", Resource: "arangojobs"}
var arangojobsResource = v1.SchemeGroupVersion.WithResource("arangojobs")
var arangojobsKind = schema.GroupVersionKind{Group: "apps.arangodb.com", Version: "v1", Kind: "ArangoJob"}
var arangojobsKind = v1.SchemeGroupVersion.WithKind("ArangoJob")
// Get takes name of the arangoJob, and returns the corresponding arangoJob object, and an error if there is any.
func (c *FakeArangoJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *appsv1.ArangoJob, err error) {
func (c *FakeArangoJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoJob, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangojobsResource, c.ns, name), &appsv1.ArangoJob{})
Invokes(testing.NewGetAction(arangojobsResource, c.ns, name), &v1.ArangoJob{})
if obj == nil {
return nil, err
}
return obj.(*appsv1.ArangoJob), err
return obj.(*v1.ArangoJob), err
}
// List takes label and field selectors, and returns the list of ArangoJobs that match those selectors.
func (c *FakeArangoJobs) List(ctx context.Context, opts v1.ListOptions) (result *appsv1.ArangoJobList, err error) {
func (c *FakeArangoJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoJobList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangojobsResource, arangojobsKind, c.ns, opts), &appsv1.ArangoJobList{})
Invokes(testing.NewListAction(arangojobsResource, arangojobsKind, c.ns, opts), &v1.ArangoJobList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoJobs) List(ctx context.Context, opts v1.ListOptions) (result
if label == nil {
label = labels.Everything()
}
list := &appsv1.ArangoJobList{ListMeta: obj.(*appsv1.ArangoJobList).ListMeta}
for _, item := range obj.(*appsv1.ArangoJobList).Items {
list := &v1.ArangoJobList{ListMeta: obj.(*v1.ArangoJobList).ListMeta}
for _, item := range obj.(*v1.ArangoJobList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoJobs) List(ctx context.Context, opts v1.ListOptions) (result
}
// Watch returns a watch.Interface that watches the requested arangoJobs.
func (c *FakeArangoJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangojobsResource, c.ns, opts))
}
// Create takes the representation of a arangoJob and creates it. Returns the server's representation of the arangoJob, and an error, if there is any.
func (c *FakeArangoJobs) Create(ctx context.Context, arangoJob *appsv1.ArangoJob, opts v1.CreateOptions) (result *appsv1.ArangoJob, err error) {
func (c *FakeArangoJobs) Create(ctx context.Context, arangoJob *v1.ArangoJob, opts metav1.CreateOptions) (result *v1.ArangoJob, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangojobsResource, c.ns, arangoJob), &appsv1.ArangoJob{})
Invokes(testing.NewCreateAction(arangojobsResource, c.ns, arangoJob), &v1.ArangoJob{})
if obj == nil {
return nil, err
}
return obj.(*appsv1.ArangoJob), err
return obj.(*v1.ArangoJob), err
}
// Update takes the representation of a arangoJob and updates it. Returns the server's representation of the arangoJob, and an error, if there is any.
func (c *FakeArangoJobs) Update(ctx context.Context, arangoJob *appsv1.ArangoJob, opts v1.UpdateOptions) (result *appsv1.ArangoJob, err error) {
func (c *FakeArangoJobs) Update(ctx context.Context, arangoJob *v1.ArangoJob, opts metav1.UpdateOptions) (result *v1.ArangoJob, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangojobsResource, c.ns, arangoJob), &appsv1.ArangoJob{})
Invokes(testing.NewUpdateAction(arangojobsResource, c.ns, arangoJob), &v1.ArangoJob{})
if obj == nil {
return nil, err
}
return obj.(*appsv1.ArangoJob), err
return obj.(*v1.ArangoJob), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoJobs) UpdateStatus(ctx context.Context, arangoJob *appsv1.ArangoJob, opts v1.UpdateOptions) (*appsv1.ArangoJob, error) {
func (c *FakeArangoJobs) UpdateStatus(ctx context.Context, arangoJob *v1.ArangoJob, opts metav1.UpdateOptions) (*v1.ArangoJob, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangojobsResource, "status", c.ns, arangoJob), &appsv1.ArangoJob{})
Invokes(testing.NewUpdateSubresourceAction(arangojobsResource, "status", c.ns, arangoJob), &v1.ArangoJob{})
if obj == nil {
return nil, err
}
return obj.(*appsv1.ArangoJob), err
return obj.(*v1.ArangoJob), err
}
// Delete takes name of the arangoJob and deletes it. Returns an error if one occurs.
func (c *FakeArangoJobs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoJobs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangojobsResource, c.ns, name, opts), &appsv1.ArangoJob{})
Invokes(testing.NewDeleteActionWithOptions(arangojobsResource, c.ns, name, opts), &v1.ArangoJob{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangojobsResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &appsv1.ArangoJobList{})
_, err := c.Fake.Invokes(action, &v1.ArangoJobList{})
return err
}
// Patch applies the patch and returns the patched arangoJob.
func (c *FakeArangoJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *appsv1.ArangoJob, err error) {
func (c *FakeArangoJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoJob, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangojobsResource, c.ns, name, pt, data, subresources...), &appsv1.ArangoJob{})
Invokes(testing.NewPatchSubresourceAction(arangojobsResource, c.ns, name, pt, data, subresources...), &v1.ArangoJob{})
if obj == nil {
return nil, err
}
return obj.(*appsv1.ArangoJob), err
return obj.(*v1.ArangoJob), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
backupv1 "github.com/arangodb/kube-arangodb/pkg/apis/backup/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/backup/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoBackups struct {
ns string
}
var arangobackupsResource = schema.GroupVersionResource{Group: "backup.arangodb.com", Version: "v1", Resource: "arangobackups"}
var arangobackupsResource = v1.SchemeGroupVersion.WithResource("arangobackups")
var arangobackupsKind = schema.GroupVersionKind{Group: "backup.arangodb.com", Version: "v1", Kind: "ArangoBackup"}
var arangobackupsKind = v1.SchemeGroupVersion.WithKind("ArangoBackup")
// Get takes name of the arangoBackup, and returns the corresponding arangoBackup object, and an error if there is any.
func (c *FakeArangoBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *backupv1.ArangoBackup, err error) {
func (c *FakeArangoBackups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoBackup, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangobackupsResource, c.ns, name), &backupv1.ArangoBackup{})
Invokes(testing.NewGetAction(arangobackupsResource, c.ns, name), &v1.ArangoBackup{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackup), err
return obj.(*v1.ArangoBackup), err
}
// List takes label and field selectors, and returns the list of ArangoBackups that match those selectors.
func (c *FakeArangoBackups) List(ctx context.Context, opts v1.ListOptions) (result *backupv1.ArangoBackupList, err error) {
func (c *FakeArangoBackups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoBackupList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangobackupsResource, arangobackupsKind, c.ns, opts), &backupv1.ArangoBackupList{})
Invokes(testing.NewListAction(arangobackupsResource, arangobackupsKind, c.ns, opts), &v1.ArangoBackupList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoBackups) List(ctx context.Context, opts v1.ListOptions) (resu
if label == nil {
label = labels.Everything()
}
list := &backupv1.ArangoBackupList{ListMeta: obj.(*backupv1.ArangoBackupList).ListMeta}
for _, item := range obj.(*backupv1.ArangoBackupList).Items {
list := &v1.ArangoBackupList{ListMeta: obj.(*v1.ArangoBackupList).ListMeta}
for _, item := range obj.(*v1.ArangoBackupList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoBackups) List(ctx context.Context, opts v1.ListOptions) (resu
}
// Watch returns a watch.Interface that watches the requested arangoBackups.
func (c *FakeArangoBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoBackups) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangobackupsResource, c.ns, opts))
}
// Create takes the representation of a arangoBackup and creates it. Returns the server's representation of the arangoBackup, and an error, if there is any.
func (c *FakeArangoBackups) Create(ctx context.Context, arangoBackup *backupv1.ArangoBackup, opts v1.CreateOptions) (result *backupv1.ArangoBackup, err error) {
func (c *FakeArangoBackups) Create(ctx context.Context, arangoBackup *v1.ArangoBackup, opts metav1.CreateOptions) (result *v1.ArangoBackup, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangobackupsResource, c.ns, arangoBackup), &backupv1.ArangoBackup{})
Invokes(testing.NewCreateAction(arangobackupsResource, c.ns, arangoBackup), &v1.ArangoBackup{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackup), err
return obj.(*v1.ArangoBackup), err
}
// Update takes the representation of a arangoBackup and updates it. Returns the server's representation of the arangoBackup, and an error, if there is any.
func (c *FakeArangoBackups) Update(ctx context.Context, arangoBackup *backupv1.ArangoBackup, opts v1.UpdateOptions) (result *backupv1.ArangoBackup, err error) {
func (c *FakeArangoBackups) Update(ctx context.Context, arangoBackup *v1.ArangoBackup, opts metav1.UpdateOptions) (result *v1.ArangoBackup, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangobackupsResource, c.ns, arangoBackup), &backupv1.ArangoBackup{})
Invokes(testing.NewUpdateAction(arangobackupsResource, c.ns, arangoBackup), &v1.ArangoBackup{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackup), err
return obj.(*v1.ArangoBackup), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoBackups) UpdateStatus(ctx context.Context, arangoBackup *backupv1.ArangoBackup, opts v1.UpdateOptions) (*backupv1.ArangoBackup, error) {
func (c *FakeArangoBackups) UpdateStatus(ctx context.Context, arangoBackup *v1.ArangoBackup, opts metav1.UpdateOptions) (*v1.ArangoBackup, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangobackupsResource, "status", c.ns, arangoBackup), &backupv1.ArangoBackup{})
Invokes(testing.NewUpdateSubresourceAction(arangobackupsResource, "status", c.ns, arangoBackup), &v1.ArangoBackup{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackup), err
return obj.(*v1.ArangoBackup), err
}
// Delete takes name of the arangoBackup and deletes it. Returns an error if one occurs.
func (c *FakeArangoBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoBackups) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangobackupsResource, c.ns, name, opts), &backupv1.ArangoBackup{})
Invokes(testing.NewDeleteActionWithOptions(arangobackupsResource, c.ns, name, opts), &v1.ArangoBackup{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoBackups) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangobackupsResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &backupv1.ArangoBackupList{})
_, err := c.Fake.Invokes(action, &v1.ArangoBackupList{})
return err
}
// Patch applies the patch and returns the patched arangoBackup.
func (c *FakeArangoBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *backupv1.ArangoBackup, err error) {
func (c *FakeArangoBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoBackup, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangobackupsResource, c.ns, name, pt, data, subresources...), &backupv1.ArangoBackup{})
Invokes(testing.NewPatchSubresourceAction(arangobackupsResource, c.ns, name, pt, data, subresources...), &v1.ArangoBackup{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackup), err
return obj.(*v1.ArangoBackup), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
backupv1 "github.com/arangodb/kube-arangodb/pkg/apis/backup/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/backup/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoBackupPolicies struct {
ns string
}
var arangobackuppoliciesResource = schema.GroupVersionResource{Group: "backup.arangodb.com", Version: "v1", Resource: "arangobackuppolicies"}
var arangobackuppoliciesResource = v1.SchemeGroupVersion.WithResource("arangobackuppolicies")
var arangobackuppoliciesKind = schema.GroupVersionKind{Group: "backup.arangodb.com", Version: "v1", Kind: "ArangoBackupPolicy"}
var arangobackuppoliciesKind = v1.SchemeGroupVersion.WithKind("ArangoBackupPolicy")
// Get takes name of the arangoBackupPolicy, and returns the corresponding arangoBackupPolicy object, and an error if there is any.
func (c *FakeArangoBackupPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *backupv1.ArangoBackupPolicy, err error) {
func (c *FakeArangoBackupPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoBackupPolicy, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangobackuppoliciesResource, c.ns, name), &backupv1.ArangoBackupPolicy{})
Invokes(testing.NewGetAction(arangobackuppoliciesResource, c.ns, name), &v1.ArangoBackupPolicy{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackupPolicy), err
return obj.(*v1.ArangoBackupPolicy), err
}
// List takes label and field selectors, and returns the list of ArangoBackupPolicies that match those selectors.
func (c *FakeArangoBackupPolicies) List(ctx context.Context, opts v1.ListOptions) (result *backupv1.ArangoBackupPolicyList, err error) {
func (c *FakeArangoBackupPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoBackupPolicyList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangobackuppoliciesResource, arangobackuppoliciesKind, c.ns, opts), &backupv1.ArangoBackupPolicyList{})
Invokes(testing.NewListAction(arangobackuppoliciesResource, arangobackuppoliciesKind, c.ns, opts), &v1.ArangoBackupPolicyList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoBackupPolicies) List(ctx context.Context, opts v1.ListOptions
if label == nil {
label = labels.Everything()
}
list := &backupv1.ArangoBackupPolicyList{ListMeta: obj.(*backupv1.ArangoBackupPolicyList).ListMeta}
for _, item := range obj.(*backupv1.ArangoBackupPolicyList).Items {
list := &v1.ArangoBackupPolicyList{ListMeta: obj.(*v1.ArangoBackupPolicyList).ListMeta}
for _, item := range obj.(*v1.ArangoBackupPolicyList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoBackupPolicies) List(ctx context.Context, opts v1.ListOptions
}
// Watch returns a watch.Interface that watches the requested arangoBackupPolicies.
func (c *FakeArangoBackupPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoBackupPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangobackuppoliciesResource, c.ns, opts))
}
// Create takes the representation of a arangoBackupPolicy and creates it. Returns the server's representation of the arangoBackupPolicy, and an error, if there is any.
func (c *FakeArangoBackupPolicies) Create(ctx context.Context, arangoBackupPolicy *backupv1.ArangoBackupPolicy, opts v1.CreateOptions) (result *backupv1.ArangoBackupPolicy, err error) {
func (c *FakeArangoBackupPolicies) Create(ctx context.Context, arangoBackupPolicy *v1.ArangoBackupPolicy, opts metav1.CreateOptions) (result *v1.ArangoBackupPolicy, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangobackuppoliciesResource, c.ns, arangoBackupPolicy), &backupv1.ArangoBackupPolicy{})
Invokes(testing.NewCreateAction(arangobackuppoliciesResource, c.ns, arangoBackupPolicy), &v1.ArangoBackupPolicy{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackupPolicy), err
return obj.(*v1.ArangoBackupPolicy), err
}
// Update takes the representation of a arangoBackupPolicy and updates it. Returns the server's representation of the arangoBackupPolicy, and an error, if there is any.
func (c *FakeArangoBackupPolicies) Update(ctx context.Context, arangoBackupPolicy *backupv1.ArangoBackupPolicy, opts v1.UpdateOptions) (result *backupv1.ArangoBackupPolicy, err error) {
func (c *FakeArangoBackupPolicies) Update(ctx context.Context, arangoBackupPolicy *v1.ArangoBackupPolicy, opts metav1.UpdateOptions) (result *v1.ArangoBackupPolicy, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangobackuppoliciesResource, c.ns, arangoBackupPolicy), &backupv1.ArangoBackupPolicy{})
Invokes(testing.NewUpdateAction(arangobackuppoliciesResource, c.ns, arangoBackupPolicy), &v1.ArangoBackupPolicy{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackupPolicy), err
return obj.(*v1.ArangoBackupPolicy), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoBackupPolicies) UpdateStatus(ctx context.Context, arangoBackupPolicy *backupv1.ArangoBackupPolicy, opts v1.UpdateOptions) (*backupv1.ArangoBackupPolicy, error) {
func (c *FakeArangoBackupPolicies) UpdateStatus(ctx context.Context, arangoBackupPolicy *v1.ArangoBackupPolicy, opts metav1.UpdateOptions) (*v1.ArangoBackupPolicy, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangobackuppoliciesResource, "status", c.ns, arangoBackupPolicy), &backupv1.ArangoBackupPolicy{})
Invokes(testing.NewUpdateSubresourceAction(arangobackuppoliciesResource, "status", c.ns, arangoBackupPolicy), &v1.ArangoBackupPolicy{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackupPolicy), err
return obj.(*v1.ArangoBackupPolicy), err
}
// Delete takes name of the arangoBackupPolicy and deletes it. Returns an error if one occurs.
func (c *FakeArangoBackupPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoBackupPolicies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangobackuppoliciesResource, c.ns, name, opts), &backupv1.ArangoBackupPolicy{})
Invokes(testing.NewDeleteActionWithOptions(arangobackuppoliciesResource, c.ns, name, opts), &v1.ArangoBackupPolicy{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoBackupPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoBackupPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangobackuppoliciesResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &backupv1.ArangoBackupPolicyList{})
_, err := c.Fake.Invokes(action, &v1.ArangoBackupPolicyList{})
return err
}
// Patch applies the patch and returns the patched arangoBackupPolicy.
func (c *FakeArangoBackupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *backupv1.ArangoBackupPolicy, err error) {
func (c *FakeArangoBackupPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoBackupPolicy, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangobackuppoliciesResource, c.ns, name, pt, data, subresources...), &backupv1.ArangoBackupPolicy{})
Invokes(testing.NewPatchSubresourceAction(arangobackuppoliciesResource, c.ns, name, pt, data, subresources...), &v1.ArangoBackupPolicy{})
if obj == nil {
return nil, err
}
return obj.(*backupv1.ArangoBackupPolicy), err
return obj.(*v1.ArangoBackupPolicy), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
deploymentv1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoClusterSynchronizations struct {
ns string
}
var arangoclustersynchronizationsResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v1", Resource: "arangoclustersynchronizations"}
var arangoclustersynchronizationsResource = v1.SchemeGroupVersion.WithResource("arangoclustersynchronizations")
var arangoclustersynchronizationsKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v1", Kind: "ArangoClusterSynchronization"}
var arangoclustersynchronizationsKind = v1.SchemeGroupVersion.WithKind("ArangoClusterSynchronization")
// Get takes name of the arangoClusterSynchronization, and returns the corresponding arangoClusterSynchronization object, and an error if there is any.
func (c *FakeArangoClusterSynchronizations) Get(ctx context.Context, name string, options v1.GetOptions) (result *deploymentv1.ArangoClusterSynchronization, err error) {
func (c *FakeArangoClusterSynchronizations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoClusterSynchronization, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangoclustersynchronizationsResource, c.ns, name), &deploymentv1.ArangoClusterSynchronization{})
Invokes(testing.NewGetAction(arangoclustersynchronizationsResource, c.ns, name), &v1.ArangoClusterSynchronization{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoClusterSynchronization), err
return obj.(*v1.ArangoClusterSynchronization), err
}
// List takes label and field selectors, and returns the list of ArangoClusterSynchronizations that match those selectors.
func (c *FakeArangoClusterSynchronizations) List(ctx context.Context, opts v1.ListOptions) (result *deploymentv1.ArangoClusterSynchronizationList, err error) {
func (c *FakeArangoClusterSynchronizations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoClusterSynchronizationList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangoclustersynchronizationsResource, arangoclustersynchronizationsKind, c.ns, opts), &deploymentv1.ArangoClusterSynchronizationList{})
Invokes(testing.NewListAction(arangoclustersynchronizationsResource, arangoclustersynchronizationsKind, c.ns, opts), &v1.ArangoClusterSynchronizationList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoClusterSynchronizations) List(ctx context.Context, opts v1.Li
if label == nil {
label = labels.Everything()
}
list := &deploymentv1.ArangoClusterSynchronizationList{ListMeta: obj.(*deploymentv1.ArangoClusterSynchronizationList).ListMeta}
for _, item := range obj.(*deploymentv1.ArangoClusterSynchronizationList).Items {
list := &v1.ArangoClusterSynchronizationList{ListMeta: obj.(*v1.ArangoClusterSynchronizationList).ListMeta}
for _, item := range obj.(*v1.ArangoClusterSynchronizationList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoClusterSynchronizations) List(ctx context.Context, opts v1.Li
}
// Watch returns a watch.Interface that watches the requested arangoClusterSynchronizations.
func (c *FakeArangoClusterSynchronizations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoClusterSynchronizations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangoclustersynchronizationsResource, c.ns, opts))
}
// Create takes the representation of a arangoClusterSynchronization and creates it. Returns the server's representation of the arangoClusterSynchronization, and an error, if there is any.
func (c *FakeArangoClusterSynchronizations) Create(ctx context.Context, arangoClusterSynchronization *deploymentv1.ArangoClusterSynchronization, opts v1.CreateOptions) (result *deploymentv1.ArangoClusterSynchronization, err error) {
func (c *FakeArangoClusterSynchronizations) Create(ctx context.Context, arangoClusterSynchronization *v1.ArangoClusterSynchronization, opts metav1.CreateOptions) (result *v1.ArangoClusterSynchronization, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangoclustersynchronizationsResource, c.ns, arangoClusterSynchronization), &deploymentv1.ArangoClusterSynchronization{})
Invokes(testing.NewCreateAction(arangoclustersynchronizationsResource, c.ns, arangoClusterSynchronization), &v1.ArangoClusterSynchronization{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoClusterSynchronization), err
return obj.(*v1.ArangoClusterSynchronization), err
}
// Update takes the representation of a arangoClusterSynchronization and updates it. Returns the server's representation of the arangoClusterSynchronization, and an error, if there is any.
func (c *FakeArangoClusterSynchronizations) Update(ctx context.Context, arangoClusterSynchronization *deploymentv1.ArangoClusterSynchronization, opts v1.UpdateOptions) (result *deploymentv1.ArangoClusterSynchronization, err error) {
func (c *FakeArangoClusterSynchronizations) Update(ctx context.Context, arangoClusterSynchronization *v1.ArangoClusterSynchronization, opts metav1.UpdateOptions) (result *v1.ArangoClusterSynchronization, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangoclustersynchronizationsResource, c.ns, arangoClusterSynchronization), &deploymentv1.ArangoClusterSynchronization{})
Invokes(testing.NewUpdateAction(arangoclustersynchronizationsResource, c.ns, arangoClusterSynchronization), &v1.ArangoClusterSynchronization{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoClusterSynchronization), err
return obj.(*v1.ArangoClusterSynchronization), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoClusterSynchronizations) UpdateStatus(ctx context.Context, arangoClusterSynchronization *deploymentv1.ArangoClusterSynchronization, opts v1.UpdateOptions) (*deploymentv1.ArangoClusterSynchronization, error) {
func (c *FakeArangoClusterSynchronizations) UpdateStatus(ctx context.Context, arangoClusterSynchronization *v1.ArangoClusterSynchronization, opts metav1.UpdateOptions) (*v1.ArangoClusterSynchronization, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangoclustersynchronizationsResource, "status", c.ns, arangoClusterSynchronization), &deploymentv1.ArangoClusterSynchronization{})
Invokes(testing.NewUpdateSubresourceAction(arangoclustersynchronizationsResource, "status", c.ns, arangoClusterSynchronization), &v1.ArangoClusterSynchronization{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoClusterSynchronization), err
return obj.(*v1.ArangoClusterSynchronization), err
}
// Delete takes name of the arangoClusterSynchronization and deletes it. Returns an error if one occurs.
func (c *FakeArangoClusterSynchronizations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoClusterSynchronizations) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangoclustersynchronizationsResource, c.ns, name, opts), &deploymentv1.ArangoClusterSynchronization{})
Invokes(testing.NewDeleteActionWithOptions(arangoclustersynchronizationsResource, c.ns, name, opts), &v1.ArangoClusterSynchronization{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoClusterSynchronizations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoClusterSynchronizations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangoclustersynchronizationsResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &deploymentv1.ArangoClusterSynchronizationList{})
_, err := c.Fake.Invokes(action, &v1.ArangoClusterSynchronizationList{})
return err
}
// Patch applies the patch and returns the patched arangoClusterSynchronization.
func (c *FakeArangoClusterSynchronizations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *deploymentv1.ArangoClusterSynchronization, err error) {
func (c *FakeArangoClusterSynchronizations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoClusterSynchronization, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangoclustersynchronizationsResource, c.ns, name, pt, data, subresources...), &deploymentv1.ArangoClusterSynchronization{})
Invokes(testing.NewPatchSubresourceAction(arangoclustersynchronizationsResource, c.ns, name, pt, data, subresources...), &v1.ArangoClusterSynchronization{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoClusterSynchronization), err
return obj.(*v1.ArangoClusterSynchronization), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
deploymentv1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoDeployments struct {
ns string
}
var arangodeploymentsResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v1", Resource: "arangodeployments"}
var arangodeploymentsResource = v1.SchemeGroupVersion.WithResource("arangodeployments")
var arangodeploymentsKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v1", Kind: "ArangoDeployment"}
var arangodeploymentsKind = v1.SchemeGroupVersion.WithKind("ArangoDeployment")
// Get takes name of the arangoDeployment, and returns the corresponding arangoDeployment object, and an error if there is any.
func (c *FakeArangoDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *deploymentv1.ArangoDeployment, err error) {
func (c *FakeArangoDeployments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoDeployment, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangodeploymentsResource, c.ns, name), &deploymentv1.ArangoDeployment{})
Invokes(testing.NewGetAction(arangodeploymentsResource, c.ns, name), &v1.ArangoDeployment{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoDeployment), err
return obj.(*v1.ArangoDeployment), err
}
// List takes label and field selectors, and returns the list of ArangoDeployments that match those selectors.
func (c *FakeArangoDeployments) List(ctx context.Context, opts v1.ListOptions) (result *deploymentv1.ArangoDeploymentList, err error) {
func (c *FakeArangoDeployments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoDeploymentList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangodeploymentsResource, arangodeploymentsKind, c.ns, opts), &deploymentv1.ArangoDeploymentList{})
Invokes(testing.NewListAction(arangodeploymentsResource, arangodeploymentsKind, c.ns, opts), &v1.ArangoDeploymentList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoDeployments) List(ctx context.Context, opts v1.ListOptions) (
if label == nil {
label = labels.Everything()
}
list := &deploymentv1.ArangoDeploymentList{ListMeta: obj.(*deploymentv1.ArangoDeploymentList).ListMeta}
for _, item := range obj.(*deploymentv1.ArangoDeploymentList).Items {
list := &v1.ArangoDeploymentList{ListMeta: obj.(*v1.ArangoDeploymentList).ListMeta}
for _, item := range obj.(*v1.ArangoDeploymentList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoDeployments) List(ctx context.Context, opts v1.ListOptions) (
}
// Watch returns a watch.Interface that watches the requested arangoDeployments.
func (c *FakeArangoDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoDeployments) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangodeploymentsResource, c.ns, opts))
}
// Create takes the representation of a arangoDeployment and creates it. Returns the server's representation of the arangoDeployment, and an error, if there is any.
func (c *FakeArangoDeployments) Create(ctx context.Context, arangoDeployment *deploymentv1.ArangoDeployment, opts v1.CreateOptions) (result *deploymentv1.ArangoDeployment, err error) {
func (c *FakeArangoDeployments) Create(ctx context.Context, arangoDeployment *v1.ArangoDeployment, opts metav1.CreateOptions) (result *v1.ArangoDeployment, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangodeploymentsResource, c.ns, arangoDeployment), &deploymentv1.ArangoDeployment{})
Invokes(testing.NewCreateAction(arangodeploymentsResource, c.ns, arangoDeployment), &v1.ArangoDeployment{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoDeployment), err
return obj.(*v1.ArangoDeployment), err
}
// Update takes the representation of a arangoDeployment and updates it. Returns the server's representation of the arangoDeployment, and an error, if there is any.
func (c *FakeArangoDeployments) Update(ctx context.Context, arangoDeployment *deploymentv1.ArangoDeployment, opts v1.UpdateOptions) (result *deploymentv1.ArangoDeployment, err error) {
func (c *FakeArangoDeployments) Update(ctx context.Context, arangoDeployment *v1.ArangoDeployment, opts metav1.UpdateOptions) (result *v1.ArangoDeployment, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangodeploymentsResource, c.ns, arangoDeployment), &deploymentv1.ArangoDeployment{})
Invokes(testing.NewUpdateAction(arangodeploymentsResource, c.ns, arangoDeployment), &v1.ArangoDeployment{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoDeployment), err
return obj.(*v1.ArangoDeployment), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoDeployments) UpdateStatus(ctx context.Context, arangoDeployment *deploymentv1.ArangoDeployment, opts v1.UpdateOptions) (*deploymentv1.ArangoDeployment, error) {
func (c *FakeArangoDeployments) UpdateStatus(ctx context.Context, arangoDeployment *v1.ArangoDeployment, opts metav1.UpdateOptions) (*v1.ArangoDeployment, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangodeploymentsResource, "status", c.ns, arangoDeployment), &deploymentv1.ArangoDeployment{})
Invokes(testing.NewUpdateSubresourceAction(arangodeploymentsResource, "status", c.ns, arangoDeployment), &v1.ArangoDeployment{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoDeployment), err
return obj.(*v1.ArangoDeployment), err
}
// Delete takes name of the arangoDeployment and deletes it. Returns an error if one occurs.
func (c *FakeArangoDeployments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoDeployments) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangodeploymentsResource, c.ns, name, opts), &deploymentv1.ArangoDeployment{})
Invokes(testing.NewDeleteActionWithOptions(arangodeploymentsResource, c.ns, name, opts), &v1.ArangoDeployment{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoDeployments) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangodeploymentsResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &deploymentv1.ArangoDeploymentList{})
_, err := c.Fake.Invokes(action, &v1.ArangoDeploymentList{})
return err
}
// Patch applies the patch and returns the patched arangoDeployment.
func (c *FakeArangoDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *deploymentv1.ArangoDeployment, err error) {
func (c *FakeArangoDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoDeployment, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangodeploymentsResource, c.ns, name, pt, data, subresources...), &deploymentv1.ArangoDeployment{})
Invokes(testing.NewPatchSubresourceAction(arangodeploymentsResource, c.ns, name, pt, data, subresources...), &v1.ArangoDeployment{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoDeployment), err
return obj.(*v1.ArangoDeployment), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
deploymentv1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoMembers struct {
ns string
}
var arangomembersResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v1", Resource: "arangomembers"}
var arangomembersResource = v1.SchemeGroupVersion.WithResource("arangomembers")
var arangomembersKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v1", Kind: "ArangoMember"}
var arangomembersKind = v1.SchemeGroupVersion.WithKind("ArangoMember")
// Get takes name of the arangoMember, and returns the corresponding arangoMember object, and an error if there is any.
func (c *FakeArangoMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *deploymentv1.ArangoMember, err error) {
func (c *FakeArangoMembers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoMember, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangomembersResource, c.ns, name), &deploymentv1.ArangoMember{})
Invokes(testing.NewGetAction(arangomembersResource, c.ns, name), &v1.ArangoMember{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoMember), err
return obj.(*v1.ArangoMember), err
}
// List takes label and field selectors, and returns the list of ArangoMembers that match those selectors.
func (c *FakeArangoMembers) List(ctx context.Context, opts v1.ListOptions) (result *deploymentv1.ArangoMemberList, err error) {
func (c *FakeArangoMembers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoMemberList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangomembersResource, arangomembersKind, c.ns, opts), &deploymentv1.ArangoMemberList{})
Invokes(testing.NewListAction(arangomembersResource, arangomembersKind, c.ns, opts), &v1.ArangoMemberList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoMembers) List(ctx context.Context, opts v1.ListOptions) (resu
if label == nil {
label = labels.Everything()
}
list := &deploymentv1.ArangoMemberList{ListMeta: obj.(*deploymentv1.ArangoMemberList).ListMeta}
for _, item := range obj.(*deploymentv1.ArangoMemberList).Items {
list := &v1.ArangoMemberList{ListMeta: obj.(*v1.ArangoMemberList).ListMeta}
for _, item := range obj.(*v1.ArangoMemberList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoMembers) List(ctx context.Context, opts v1.ListOptions) (resu
}
// Watch returns a watch.Interface that watches the requested arangoMembers.
func (c *FakeArangoMembers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoMembers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangomembersResource, c.ns, opts))
}
// Create takes the representation of a arangoMember and creates it. Returns the server's representation of the arangoMember, and an error, if there is any.
func (c *FakeArangoMembers) Create(ctx context.Context, arangoMember *deploymentv1.ArangoMember, opts v1.CreateOptions) (result *deploymentv1.ArangoMember, err error) {
func (c *FakeArangoMembers) Create(ctx context.Context, arangoMember *v1.ArangoMember, opts metav1.CreateOptions) (result *v1.ArangoMember, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangomembersResource, c.ns, arangoMember), &deploymentv1.ArangoMember{})
Invokes(testing.NewCreateAction(arangomembersResource, c.ns, arangoMember), &v1.ArangoMember{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoMember), err
return obj.(*v1.ArangoMember), err
}
// Update takes the representation of a arangoMember and updates it. Returns the server's representation of the arangoMember, and an error, if there is any.
func (c *FakeArangoMembers) Update(ctx context.Context, arangoMember *deploymentv1.ArangoMember, opts v1.UpdateOptions) (result *deploymentv1.ArangoMember, err error) {
func (c *FakeArangoMembers) Update(ctx context.Context, arangoMember *v1.ArangoMember, opts metav1.UpdateOptions) (result *v1.ArangoMember, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangomembersResource, c.ns, arangoMember), &deploymentv1.ArangoMember{})
Invokes(testing.NewUpdateAction(arangomembersResource, c.ns, arangoMember), &v1.ArangoMember{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoMember), err
return obj.(*v1.ArangoMember), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoMembers) UpdateStatus(ctx context.Context, arangoMember *deploymentv1.ArangoMember, opts v1.UpdateOptions) (*deploymentv1.ArangoMember, error) {
func (c *FakeArangoMembers) UpdateStatus(ctx context.Context, arangoMember *v1.ArangoMember, opts metav1.UpdateOptions) (*v1.ArangoMember, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangomembersResource, "status", c.ns, arangoMember), &deploymentv1.ArangoMember{})
Invokes(testing.NewUpdateSubresourceAction(arangomembersResource, "status", c.ns, arangoMember), &v1.ArangoMember{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoMember), err
return obj.(*v1.ArangoMember), err
}
// Delete takes name of the arangoMember and deletes it. Returns an error if one occurs.
func (c *FakeArangoMembers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoMembers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangomembersResource, c.ns, name, opts), &deploymentv1.ArangoMember{})
Invokes(testing.NewDeleteActionWithOptions(arangomembersResource, c.ns, name, opts), &v1.ArangoMember{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoMembers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoMembers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangomembersResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &deploymentv1.ArangoMemberList{})
_, err := c.Fake.Invokes(action, &v1.ArangoMemberList{})
return err
}
// Patch applies the patch and returns the patched arangoMember.
func (c *FakeArangoMembers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *deploymentv1.ArangoMember, err error) {
func (c *FakeArangoMembers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoMember, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangomembersResource, c.ns, name, pt, data, subresources...), &deploymentv1.ArangoMember{})
Invokes(testing.NewPatchSubresourceAction(arangomembersResource, c.ns, name, pt, data, subresources...), &v1.ArangoMember{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoMember), err
return obj.(*v1.ArangoMember), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,10 +25,9 @@ package fake
import (
"context"
deploymentv1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,25 +39,25 @@ type FakeArangoTasks struct {
ns string
}
var arangotasksResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v1", Resource: "arangotasks"}
var arangotasksResource = v1.SchemeGroupVersion.WithResource("arangotasks")
var arangotasksKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v1", Kind: "ArangoTask"}
var arangotasksKind = v1.SchemeGroupVersion.WithKind("ArangoTask")
// Get takes name of the arangoTask, and returns the corresponding arangoTask object, and an error if there is any.
func (c *FakeArangoTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *deploymentv1.ArangoTask, err error) {
func (c *FakeArangoTasks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoTask, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(arangotasksResource, c.ns, name), &deploymentv1.ArangoTask{})
Invokes(testing.NewGetAction(arangotasksResource, c.ns, name), &v1.ArangoTask{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoTask), err
return obj.(*v1.ArangoTask), err
}
// List takes label and field selectors, and returns the list of ArangoTasks that match those selectors.
func (c *FakeArangoTasks) List(ctx context.Context, opts v1.ListOptions) (result *deploymentv1.ArangoTaskList, err error) {
func (c *FakeArangoTasks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoTaskList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(arangotasksResource, arangotasksKind, c.ns, opts), &deploymentv1.ArangoTaskList{})
Invokes(testing.NewListAction(arangotasksResource, arangotasksKind, c.ns, opts), &v1.ArangoTaskList{})
if obj == nil {
return nil, err
@ -68,8 +67,8 @@ func (c *FakeArangoTasks) List(ctx context.Context, opts v1.ListOptions) (result
if label == nil {
label = labels.Everything()
}
list := &deploymentv1.ArangoTaskList{ListMeta: obj.(*deploymentv1.ArangoTaskList).ListMeta}
for _, item := range obj.(*deploymentv1.ArangoTaskList).Items {
list := &v1.ArangoTaskList{ListMeta: obj.(*v1.ArangoTaskList).ListMeta}
for _, item := range obj.(*v1.ArangoTaskList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
@ -78,69 +77,69 @@ func (c *FakeArangoTasks) List(ctx context.Context, opts v1.ListOptions) (result
}
// Watch returns a watch.Interface that watches the requested arangoTasks.
func (c *FakeArangoTasks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
func (c *FakeArangoTasks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(arangotasksResource, c.ns, opts))
}
// Create takes the representation of a arangoTask and creates it. Returns the server's representation of the arangoTask, and an error, if there is any.
func (c *FakeArangoTasks) Create(ctx context.Context, arangoTask *deploymentv1.ArangoTask, opts v1.CreateOptions) (result *deploymentv1.ArangoTask, err error) {
func (c *FakeArangoTasks) Create(ctx context.Context, arangoTask *v1.ArangoTask, opts metav1.CreateOptions) (result *v1.ArangoTask, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(arangotasksResource, c.ns, arangoTask), &deploymentv1.ArangoTask{})
Invokes(testing.NewCreateAction(arangotasksResource, c.ns, arangoTask), &v1.ArangoTask{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoTask), err
return obj.(*v1.ArangoTask), err
}
// Update takes the representation of a arangoTask and updates it. Returns the server's representation of the arangoTask, and an error, if there is any.
func (c *FakeArangoTasks) Update(ctx context.Context, arangoTask *deploymentv1.ArangoTask, opts v1.UpdateOptions) (result *deploymentv1.ArangoTask, err error) {
func (c *FakeArangoTasks) Update(ctx context.Context, arangoTask *v1.ArangoTask, opts metav1.UpdateOptions) (result *v1.ArangoTask, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(arangotasksResource, c.ns, arangoTask), &deploymentv1.ArangoTask{})
Invokes(testing.NewUpdateAction(arangotasksResource, c.ns, arangoTask), &v1.ArangoTask{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoTask), err
return obj.(*v1.ArangoTask), err
}
// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *FakeArangoTasks) UpdateStatus(ctx context.Context, arangoTask *deploymentv1.ArangoTask, opts v1.UpdateOptions) (*deploymentv1.ArangoTask, error) {
func (c *FakeArangoTasks) UpdateStatus(ctx context.Context, arangoTask *v1.ArangoTask, opts metav1.UpdateOptions) (*v1.ArangoTask, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(arangotasksResource, "status", c.ns, arangoTask), &deploymentv1.ArangoTask{})
Invokes(testing.NewUpdateSubresourceAction(arangotasksResource, "status", c.ns, arangoTask), &v1.ArangoTask{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoTask), err
return obj.(*v1.ArangoTask), err
}
// Delete takes name of the arangoTask and deletes it. Returns an error if one occurs.
func (c *FakeArangoTasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
func (c *FakeArangoTasks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(arangotasksResource, c.ns, name, opts), &deploymentv1.ArangoTask{})
Invokes(testing.NewDeleteActionWithOptions(arangotasksResource, c.ns, name, opts), &v1.ArangoTask{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeArangoTasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
func (c *FakeArangoTasks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionAction(arangotasksResource, c.ns, listOpts)
_, err := c.Fake.Invokes(action, &deploymentv1.ArangoTaskList{})
_, err := c.Fake.Invokes(action, &v1.ArangoTaskList{})
return err
}
// Patch applies the patch and returns the patched arangoTask.
func (c *FakeArangoTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *deploymentv1.ArangoTask, err error) {
func (c *FakeArangoTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ArangoTask, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(arangotasksResource, c.ns, name, pt, data, subresources...), &deploymentv1.ArangoTask{})
Invokes(testing.NewPatchSubresourceAction(arangotasksResource, c.ns, name, pt, data, subresources...), &v1.ArangoTask{})
if obj == nil {
return nil, err
}
return obj.(*deploymentv1.ArangoTask), err
return obj.(*v1.ArangoTask), err
}

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ import (
v2alpha1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v2alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,9 +39,9 @@ type FakeArangoClusterSynchronizations struct {
ns string
}
var arangoclustersynchronizationsResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v2alpha1", Resource: "arangoclustersynchronizations"}
var arangoclustersynchronizationsResource = v2alpha1.SchemeGroupVersion.WithResource("arangoclustersynchronizations")
var arangoclustersynchronizationsKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v2alpha1", Kind: "ArangoClusterSynchronization"}
var arangoclustersynchronizationsKind = v2alpha1.SchemeGroupVersion.WithKind("ArangoClusterSynchronization")
// Get takes name of the arangoClusterSynchronization, and returns the corresponding arangoClusterSynchronization object, and an error if there is any.
func (c *FakeArangoClusterSynchronizations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ArangoClusterSynchronization, err error) {

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ import (
v2alpha1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v2alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,9 +39,9 @@ type FakeArangoDeployments struct {
ns string
}
var arangodeploymentsResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v2alpha1", Resource: "arangodeployments"}
var arangodeploymentsResource = v2alpha1.SchemeGroupVersion.WithResource("arangodeployments")
var arangodeploymentsKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v2alpha1", Kind: "ArangoDeployment"}
var arangodeploymentsKind = v2alpha1.SchemeGroupVersion.WithKind("ArangoDeployment")
// Get takes name of the arangoDeployment, and returns the corresponding arangoDeployment object, and an error if there is any.
func (c *FakeArangoDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ArangoDeployment, err error) {

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ import (
v2alpha1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v2alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,9 +39,9 @@ type FakeArangoMembers struct {
ns string
}
var arangomembersResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v2alpha1", Resource: "arangomembers"}
var arangomembersResource = v2alpha1.SchemeGroupVersion.WithResource("arangomembers")
var arangomembersKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v2alpha1", Kind: "ArangoMember"}
var arangomembersKind = v2alpha1.SchemeGroupVersion.WithKind("ArangoMember")
// Get takes name of the arangoMember, and returns the corresponding arangoMember object, and an error if there is any.
func (c *FakeArangoMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ArangoMember, err error) {

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -28,7 +28,6 @@ import (
v2alpha1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v2alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
@ -40,9 +39,9 @@ type FakeArangoTasks struct {
ns string
}
var arangotasksResource = schema.GroupVersionResource{Group: "database.arangodb.com", Version: "v2alpha1", Resource: "arangotasks"}
var arangotasksResource = v2alpha1.SchemeGroupVersion.WithResource("arangotasks")
var arangotasksKind = schema.GroupVersionKind{Group: "database.arangodb.com", Version: "v2alpha1", Kind: "ArangoTask"}
var arangotasksKind = v2alpha1.SchemeGroupVersion.WithKind("ArangoTask")
// Get takes name of the arangoTask, and returns the corresponding arangoTask object, and an error if there is any.
func (c *FakeArangoTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ArangoTask, err error) {

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View file

@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2023 ArangoDB GmbH, Cologne, Germany
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

Some files were not shown because too many files have changed in this diff Show more