mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Rename repository to kube-arangodb
This commit is contained in:
parent
e09dceb88a
commit
c57ae2afd2
76 changed files with 165 additions and 165 deletions
|
@ -57,7 +57,7 @@ def buildCleanupSteps(String kubeConfigRoot, String kubeconfig) {
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
buildDiscarder(logRotator(daysToKeepStr: '7', numToKeepStr: '10'))
|
buildDiscarder(logRotator(daysToKeepStr: '7', numToKeepStr: '10'))
|
||||||
lock resource: 'k8s-operator'
|
lock resource: 'kube-arangodb'
|
||||||
}
|
}
|
||||||
agent any
|
agent any
|
||||||
parameters {
|
parameters {
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -15,7 +15,7 @@ VENDORDIR := $(ROOTDIR)/deps
|
||||||
|
|
||||||
ORGPATH := github.com/arangodb
|
ORGPATH := github.com/arangodb
|
||||||
ORGDIR := $(GOBUILDDIR)/src/$(ORGPATH)
|
ORGDIR := $(GOBUILDDIR)/src/$(ORGPATH)
|
||||||
REPONAME := k8s-operator
|
REPONAME := kube-arangodb
|
||||||
REPODIR := $(ORGDIR)/$(REPONAME)
|
REPODIR := $(ORGDIR)/$(REPONAME)
|
||||||
REPOPATH := $(ORGPATH)/$(REPONAME)
|
REPOPATH := $(ORGPATH)/$(REPONAME)
|
||||||
|
|
||||||
|
@ -154,8 +154,8 @@ update-generated: $(GOBUILDDIR)
|
||||||
k8s-codegen \
|
k8s-codegen \
|
||||||
"./deps/k8s.io/code-generator/generate-groups.sh" \
|
"./deps/k8s.io/code-generator/generate-groups.sh" \
|
||||||
"all" \
|
"all" \
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated" \
|
"github.com/arangodb/kube-arangodb/pkg/generated" \
|
||||||
"github.com/arangodb/k8s-operator/pkg/apis" \
|
"github.com/arangodb/kube-arangodb/pkg/apis" \
|
||||||
"deployment:v1alpha storage:v1alpha" \
|
"deployment:v1alpha storage:v1alpha" \
|
||||||
--go-header-file "./tools/codegen/boilerplate.go.txt" \
|
--go-header-file "./tools/codegen/boilerplate.go.txt" \
|
||||||
$(VERIFYARGS)
|
$(VERIFYARGS)
|
||||||
|
|
12
main.go
12
main.go
|
@ -45,12 +45,12 @@ import (
|
||||||
"k8s.io/client-go/tools/leaderelection/resourcelock"
|
"k8s.io/client-go/tools/leaderelection/resourcelock"
|
||||||
"k8s.io/client-go/tools/record"
|
"k8s.io/client-go/tools/record"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/client"
|
"github.com/arangodb/kube-arangodb/pkg/client"
|
||||||
"github.com/arangodb/k8s-operator/pkg/logging"
|
"github.com/arangodb/kube-arangodb/pkg/logging"
|
||||||
"github.com/arangodb/k8s-operator/pkg/operator"
|
"github.com/arangodb/kube-arangodb/pkg/operator"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/constants"
|
"github.com/arangodb/kube-arangodb/pkg/util/constants"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/retry"
|
"github.com/arangodb/kube-arangodb/pkg/util/retry"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -25,7 +25,7 @@ package v1alpha
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthenticationSpec holds authentication specific configuration settings
|
// AuthenticationSpec holds authentication specific configuration settings
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MonitoringSpec holds monitoring specific configuration settings
|
// MonitoringSpec holds monitoring specific configuration settings
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RocksDBEncryptionSpec holds rocksdb encryption at rest specific configuration settings
|
// RocksDBEncryptionSpec holds rocksdb encryption at rest specific configuration settings
|
||||||
|
|
|
@ -27,8 +27,8 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/validation"
|
"github.com/arangodb/kube-arangodb/pkg/util/validation"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StorageClassSpec contains specification for create StorageClass.
|
// StorageClassSpec contains specification for create StorageClass.
|
||||||
|
|
|
@ -26,8 +26,8 @@ import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"k8s.io/client-go/rest"
|
"k8s.io/client-go/rest"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -30,8 +30,8 @@ import (
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
|
|
||||||
driver "github.com/arangodb/go-driver"
|
driver "github.com/arangodb/go-driver"
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/arangod"
|
"github.com/arangodb/kube-arangodb/pkg/util/arangod"
|
||||||
)
|
)
|
||||||
|
|
||||||
type clientCache struct {
|
type clientCache struct {
|
||||||
|
|
|
@ -35,11 +35,11 @@ import (
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/retry"
|
"github.com/arangodb/kube-arangodb/pkg/util/retry"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/trigger"
|
"github.com/arangodb/kube-arangodb/pkg/util/trigger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config holds configuration settings for a Deployment
|
// Config holds configuration settings for a Deployment
|
||||||
|
|
|
@ -26,10 +26,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// createInitialMembers creates all members needed for the initial state of the deployment.
|
// createInitialMembers creates all members needed for the initial state of the deployment.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package deployment
|
package deployment
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestCreatePlanSingleScale creates a `single` deployment to test the creating of scaling plan.
|
// TestCreatePlanSingleScale creates a `single` deployment to test the creating of scaling plan.
|
||||||
|
|
|
@ -28,8 +28,8 @@ import (
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// executePlan tries to execute the plan as far as possible.
|
// executePlan tries to execute the plan as far as possible.
|
||||||
|
|
|
@ -30,10 +30,10 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/arangod"
|
"github.com/arangodb/kube-arangodb/pkg/util/arangod"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/constants"
|
"github.com/arangodb/kube-arangodb/pkg/util/constants"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,7 +28,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestCreateArangodArgsAgent tests createArangodArgs for agent.
|
// TestCreateArangodArgsAgent tests createArangodArgs for agent.
|
||||||
|
|
|
@ -28,7 +28,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestCreateArangodArgsCoordinator tests createArangodArgs for coordinator.
|
// TestCreateArangodArgsCoordinator tests createArangodArgs for coordinator.
|
||||||
|
|
|
@ -28,7 +28,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestCreateArangodArgsDBServer tests createArangodArgs for dbserver.
|
// TestCreateArangodArgsDBServer tests createArangodArgs for dbserver.
|
||||||
|
|
|
@ -27,7 +27,7 @@ import (
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
package deployment
|
package deployment
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/metrics"
|
"github.com/arangodb/kube-arangodb/pkg/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
package deployment
|
package deployment
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ensurePVCs creates all PVC's listed in member status
|
// ensurePVCs creates all PVC's listed in member status
|
||||||
|
|
|
@ -29,8 +29,8 @@ import (
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// createSecrets creates all secrets needed to run the given deployment
|
// createSecrets creates all secrets needed to run the given deployment
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
package deployment
|
package deployment
|
||||||
|
|
||||||
import (
|
import (
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// createServices creates all services needed to service the given deployment
|
// createServices creates all services needed to service the given deployment
|
||||||
|
|
|
@ -32,8 +32,8 @@ import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/client-go/kubernetes/typed/core/v1"
|
"k8s.io/client-go/kubernetes/typed/core/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package versioned
|
package versioned
|
||||||
|
|
||||||
import (
|
import (
|
||||||
databasev1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/deployment/v1alpha"
|
databasev1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/deployment/v1alpha"
|
||||||
storagev1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/storage/v1alpha"
|
storagev1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/storage/v1alpha"
|
||||||
glog "github.com/golang/glog"
|
glog "github.com/golang/glog"
|
||||||
discovery "k8s.io/client-go/discovery"
|
discovery "k8s.io/client-go/discovery"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
clientset "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
clientset "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
databasev1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/deployment/v1alpha"
|
databasev1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/deployment/v1alpha"
|
||||||
fakedatabasev1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/deployment/v1alpha/fake"
|
fakedatabasev1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/deployment/v1alpha/fake"
|
||||||
storagev1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/storage/v1alpha"
|
storagev1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/storage/v1alpha"
|
||||||
fakestoragev1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/storage/v1alpha/fake"
|
fakestoragev1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/storage/v1alpha/fake"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
"k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/discovery"
|
"k8s.io/client-go/discovery"
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
databasev1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
databasev1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
storagev1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
storagev1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package scheme
|
package scheme
|
||||||
|
|
||||||
import (
|
import (
|
||||||
databasev1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
databasev1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
storagev1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
storagev1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
scheme "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/scheme"
|
scheme "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/scheme"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
watch "k8s.io/apimachinery/pkg/watch"
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/scheme"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/scheme"
|
||||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
labels "k8s.io/apimachinery/pkg/labels"
|
labels "k8s.io/apimachinery/pkg/labels"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/deployment/v1alpha"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
testing "k8s.io/client-go/testing"
|
testing "k8s.io/client-go/testing"
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
scheme "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/scheme"
|
scheme "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/scheme"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
watch "k8s.io/apimachinery/pkg/watch"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
labels "k8s.io/apimachinery/pkg/labels"
|
labels "k8s.io/apimachinery/pkg/labels"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package fake
|
package fake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/typed/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/typed/storage/v1alpha"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
testing "k8s.io/client-go/testing"
|
testing "k8s.io/client-go/testing"
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned/scheme"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned/scheme"
|
||||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/deployment/v1alpha"
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface provides access to each of this group's versions.
|
// Interface provides access to each of this group's versions.
|
||||||
|
|
|
@ -25,10 +25,10 @@ package v1alpha
|
||||||
import (
|
import (
|
||||||
time "time"
|
time "time"
|
||||||
|
|
||||||
deployment_v1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
deployment_v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
versioned "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
versioned "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/generated/listers/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/generated/listers/deployment/v1alpha"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
watch "k8s.io/apimachinery/pkg/watch"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface provides access to all the informers in this group version.
|
// Interface provides access to all the informers in this group version.
|
||||||
|
|
|
@ -27,10 +27,10 @@ import (
|
||||||
sync "sync"
|
sync "sync"
|
||||||
time "time"
|
time "time"
|
||||||
|
|
||||||
versioned "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
versioned "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
deployment "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/deployment"
|
deployment "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/deployment"
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
storage "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/storage"
|
storage "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/storage"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
|
|
@ -25,8 +25,8 @@ package externalversions
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
storage_v1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
storage_v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,7 +25,7 @@ package internalinterfaces
|
||||||
import (
|
import (
|
||||||
time "time"
|
time "time"
|
||||||
|
|
||||||
versioned "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
versioned "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
package storage
|
package storage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/storage/v1alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface provides access to each of this group's versions.
|
// Interface provides access to each of this group's versions.
|
||||||
|
|
|
@ -25,10 +25,10 @@ package v1alpha
|
||||||
import (
|
import (
|
||||||
time "time"
|
time "time"
|
||||||
|
|
||||||
storage_v1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
storage_v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
versioned "github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
versioned "github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/generated/listers/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/generated/listers/storage/v1alpha"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
watch "k8s.io/apimachinery/pkg/watch"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
internalinterfaces "github.com/arangodb/k8s-operator/pkg/generated/informers/externalversions/internalinterfaces"
|
internalinterfaces "github.com/arangodb/kube-arangodb/pkg/generated/informers/externalversions/internalinterfaces"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface provides access to all the informers in this group version.
|
// Interface provides access to all the informers in this group version.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"k8s.io/apimachinery/pkg/api/errors"
|
"k8s.io/apimachinery/pkg/api/errors"
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
"k8s.io/apimachinery/pkg/labels"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
package v1alpha
|
package v1alpha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
v1alpha "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"k8s.io/apimachinery/pkg/api/errors"
|
"k8s.io/apimachinery/pkg/api/errors"
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
"k8s.io/apimachinery/pkg/labels"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
|
@ -27,9 +27,9 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
deplapi "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
deplapi "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
lsapi "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
lsapi "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/crd"
|
"github.com/arangodb/kube-arangodb/pkg/util/crd"
|
||||||
)
|
)
|
||||||
|
|
||||||
// initResourceIfNeeded initializes the custom resource definition when
|
// initResourceIfNeeded initializes the custom resource definition when
|
||||||
|
|
|
@ -31,11 +31,11 @@ import (
|
||||||
kwatch "k8s.io/apimachinery/pkg/watch"
|
kwatch "k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
|
|
||||||
deplapi "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
deplapi "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
lsapi "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
lsapi "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/deployment"
|
"github.com/arangodb/kube-arangodb/pkg/deployment"
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage"
|
"github.com/arangodb/kube-arangodb/pkg/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -31,9 +31,9 @@ import (
|
||||||
kwatch "k8s.io/apimachinery/pkg/watch"
|
kwatch "k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/deployment"
|
"github.com/arangodb/kube-arangodb/pkg/deployment"
|
||||||
"github.com/arangodb/k8s-operator/pkg/metrics"
|
"github.com/arangodb/kube-arangodb/pkg/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -31,9 +31,9 @@ import (
|
||||||
kwatch "k8s.io/apimachinery/pkg/watch"
|
kwatch "k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/tools/cache"
|
"k8s.io/client-go/tools/cache"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/metrics"
|
"github.com/arangodb/kube-arangodb/pkg/metrics"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage"
|
"github.com/arangodb/kube-arangodb/pkg/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -26,9 +26,9 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner/client"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner/client"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// createProvisionerClients creates a list of clients for all known
|
// createProvisionerClients creates a list of clients for all known
|
||||||
|
|
|
@ -30,10 +30,10 @@ import (
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/constants"
|
"github.com/arangodb/kube-arangodb/pkg/util/constants"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -35,11 +35,11 @@ import (
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/retry"
|
"github.com/arangodb/kube-arangodb/pkg/util/retry"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/trigger"
|
"github.com/arangodb/kube-arangodb/pkg/util/trigger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config holds configuration settings for a LocalStorage
|
// Config holds configuration settings for a LocalStorage
|
||||||
|
|
|
@ -35,7 +35,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config for the storage provisioner
|
// Config for the storage provisioner
|
||||||
|
|
|
@ -32,7 +32,7 @@ import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -33,8 +33,8 @@ import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/trigger"
|
"github.com/arangodb/kube-arangodb/pkg/util/trigger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type pvCleaner struct {
|
type pvCleaner struct {
|
||||||
|
|
|
@ -39,8 +39,8 @@ import (
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -26,9 +26,9 @@ import (
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ensureProvisionerService ensures that a service is created for accessing the
|
// ensureProvisionerService ensures that a service is created for accessing the
|
||||||
|
|
|
@ -27,8 +27,8 @@ import (
|
||||||
"k8s.io/api/storage/v1"
|
"k8s.io/api/storage/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/storage/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/storage/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -34,8 +34,8 @@ import (
|
||||||
"github.com/arangodb/go-driver/http"
|
"github.com/arangodb/go-driver/http"
|
||||||
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -32,8 +32,8 @@ import (
|
||||||
apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
|
apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/retry"
|
"github.com/arangodb/kube-arangodb/pkg/util/retry"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CreateCRD creates a custom resouce definition.
|
// CreateCRD creates a custom resouce definition.
|
||||||
|
|
|
@ -31,7 +31,7 @@ import (
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/constants"
|
"github.com/arangodb/kube-arangodb/pkg/util/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
// APIObject helps to abstract an object from our custom API.
|
// APIObject helps to abstract an object from our custom API.
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/constants"
|
"github.com/arangodb/kube-arangodb/pkg/util/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidateEncryptionKeySecret checks that a secret with given name in given namespace
|
// ValidateEncryptionKeySecret checks that a secret with given name in given namespace
|
||||||
|
|
|
@ -33,7 +33,7 @@ import (
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil/mocks"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestValidateEncryptionKeySecret tests ValidateEncryptionKeySecret.
|
// TestValidateEncryptionKeySecret tests ValidateEncryptionKeySecret.
|
||||||
|
|
|
@ -31,8 +31,8 @@ import (
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var apiObjectForTest = api.ArangoDeployment{
|
var apiObjectForTest = api.ArangoDeployment{
|
||||||
|
|
|
@ -30,10 +30,10 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/arangodb/k8s-operator/pkg/logging"
|
"github.com/arangodb/kube-arangodb/pkg/logging"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner"
|
||||||
"github.com/arangodb/k8s-operator/pkg/storage/provisioner/service"
|
"github.com/arangodb/kube-arangodb/pkg/storage/provisioner/service"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/constants"
|
"github.com/arangodb/kube-arangodb/pkg/util/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
|
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/client"
|
"github.com/arangodb/kube-arangodb/pkg/client"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/arangod"
|
"github.com/arangodb/kube-arangodb/pkg/util/arangod"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestAuthenticationSingleDefaultSecret creating a single server
|
// TestAuthenticationSingleDefaultSecret creating a single server
|
||||||
|
|
|
@ -25,7 +25,7 @@ package tests
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
)
|
)
|
||||||
|
|
||||||
// deploymentHasState creates a predicate that returns nil when the deployment has the given state.
|
// deploymentHasState creates a predicate that returns nil when the deployment has the given state.
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
|
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
|
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/client"
|
"github.com/arangodb/kube-arangodb/pkg/client"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestRocksDBEncryptionSingle tests the creating of a single server deployment
|
// TestRocksDBEncryptionSingle tests the creating of a single server deployment
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
|
|
||||||
driver "github.com/arangodb/go-driver"
|
driver "github.com/arangodb/go-driver"
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/client"
|
"github.com/arangodb/kube-arangodb/pkg/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestScaleCluster tests scaling up/down the number of DBServers & coordinators
|
// TestScaleCluster tests scaling up/down the number of DBServers & coordinators
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
driver "github.com/arangodb/go-driver"
|
driver "github.com/arangodb/go-driver"
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/client"
|
"github.com/arangodb/kube-arangodb/pkg/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestSimpleSingle tests the creating of a single server deployment
|
// TestSimpleSingle tests the creating of a single server deployment
|
||||||
|
|
|
@ -37,11 +37,11 @@ import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
||||||
driver "github.com/arangodb/go-driver"
|
driver "github.com/arangodb/go-driver"
|
||||||
api "github.com/arangodb/k8s-operator/pkg/apis/deployment/v1alpha"
|
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1alpha"
|
||||||
"github.com/arangodb/k8s-operator/pkg/generated/clientset/versioned"
|
"github.com/arangodb/kube-arangodb/pkg/generated/clientset/versioned"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/arangod"
|
"github.com/arangodb/kube-arangodb/pkg/util/arangod"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/k8sutil"
|
"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
|
||||||
"github.com/arangodb/k8s-operator/pkg/util/retry"
|
"github.com/arangodb/kube-arangodb/pkg/util/retry"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -48,7 +48,7 @@ func init() {
|
||||||
flag.StringVar(&releaseType, "type", "patch", "Type of release to build (major|minor|patch)")
|
flag.StringVar(&releaseType, "type", "patch", "Type of release to build (major|minor|patch)")
|
||||||
flag.StringVar(&ghRelease, "github-release", ".gobuild/bin/github-release", "Full path of github-release tool")
|
flag.StringVar(&ghRelease, "github-release", ".gobuild/bin/github-release", "Full path of github-release tool")
|
||||||
flag.StringVar(&ghUser, "github-user", "arangodbdb", "Github account name to create release in")
|
flag.StringVar(&ghUser, "github-user", "arangodbdb", "Github account name to create release in")
|
||||||
flag.StringVar(&ghRepo, "github-repo", "k8s-operator", "Github repository name to create release in")
|
flag.StringVar(&ghRepo, "github-repo", "kube-arangodb", "Github repository name to create release in")
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in a new issue