Skip to content

Commit

Permalink
Release V1.0.0 (#13)
Browse files Browse the repository at this point in the history
* pkg to datainfrahq

* fixes for v1 release

* revert to v2beta2

* bump chart version 0.2.0
  • Loading branch information
AdheipSingh committed Feb 26, 2023
1 parent 3d376f8 commit da26ede
Show file tree
Hide file tree
Showing 23 changed files with 3,429 additions and 2,776 deletions.
1 change: 0 additions & 1 deletion Makefile
Expand Up @@ -196,4 +196,3 @@ helm-minio-install:
--create-namespace \
${NAMESPACE_DRUID}-minio minio/tenant \
-f e2e/configs/minio-tenant-override.yaml

5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -3,7 +3,7 @@

# Kubernetes Operator for Apache Druid

![Build Status](https://github.com/datainfrahq/druid-operator/actions/workflows/docker-image.yml/badge.svg) ![Docker pull](https://img.shields.io/docker/pulls/druidio/druid-operator.svg) [![Latest Version](https://img.shields.io/github/tag/druid-io/druid-operator)](https://github.com/druid-io/druid-operator/releases)
![Build Status](https://github.com/datainfrahq/druid-operator/actions/workflows/docker-image.yml/badge.svg) ![Docker pull](https://img.shields.io/docker/pulls/datainfrahq/druid-operator.svg) [![Latest Version](https://img.shields.io/github/tag/datainfrahq/druid-operator)](https://github.com/datainfrahq/druid-operator/releases)

- druid-operator provisions and manages [Apache Druid](https://druid.apache.org/) cluster on kubernetes.
- druid-operator is designed to provision and manage [Apache Druid](https://druid.apache.org/) in distributed mode only.
Expand All @@ -29,7 +29,8 @@
- The operator has moved from HPA apiVersion autoscaling/v2beta1 to autoscaling/v2beta2 API users will need to update there HPA Specs according v2beta2 api in order to work with the latest druid-operator release.
- Users may experience pvc deletion [issue](https://github.com/druid-io/druid-operator/issues/186) in release 0.0.6, this issue has been fixed in patch release 0.0.6.1.
- druid-operator has moved Ingress apiVersion networking/v1beta1 to networking/v1. Users will need to update there Ingress Spec in the druid CR according networking/v1 syntax. In case users are using schema validated CRD, the CRD will also be needed to be updated.
- druid-operator has moved PodDisruptionBudget apiVersion policy/v1beta1 to policy/v1. Users will need to update there Kubernetes versions to 1.21+ to use druid-operator-0.0.10+.
- druid-operator has moved PodDisruptionBudget apiVersion policy/v1beta1 to policy/v1. Users will need to update there Kubernetes versions to 1.21+ to use druid-operator tag 0.0.9+.
- The latest release for druid-operator is v1.0.0, this release is compatible with k8s version 1.25. HPA API is kept to version v2beta2.

### Contributors

Expand Down
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Expand Up @@ -15,11 +15,11 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.0.9
appVersion: v1.0.0
# icon
icon: "https://www.apache.org/logos/res/druid/druid-1.png"
2,779 changes: 1,632 additions & 1,147 deletions chart/templates/crds/druid.apache.org_druids.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chart/values.yaml
Expand Up @@ -11,7 +11,7 @@ env:
replicaCount: 1

image:
repository: druidio/druid-operator
repository: datainfrahq/druid-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down
5 changes: 3 additions & 2 deletions controllers/druid/deep_storage_dep_mgmt.go
Expand Up @@ -3,9 +3,10 @@ package druid
import (
"encoding/json"
"fmt"
"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/druid-io/druid-operator/controllers/druid/ext"
"reflect"

"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/controllers/druid/ext"
)

var deepStorageExtTypes = map[string]reflect.Type{}
Expand Down
2 changes: 1 addition & 1 deletion controllers/druid/druid_controller.go
Expand Up @@ -15,7 +15,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

druidv1alpha1 "github.com/druid-io/druid-operator/apis/druid/v1alpha1"
druidv1alpha1 "github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
)

// DruidReconciler reconciles a Druid object
Expand Down
10 changes: 5 additions & 5 deletions controllers/druid/handler.go
Expand Up @@ -14,7 +14,7 @@ import (
networkingv1 "k8s.io/api/networking/v1"
storage "k8s.io/api/storage/v1"

"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
policyv1 "k8s.io/api/policy/v1"
Expand Down Expand Up @@ -471,7 +471,7 @@ func deleteOrphanPVC(sdk client.Client, drd *v1alpha1.Druid, emitEvents EventEmi
return err
}

// Fix: https://github.com/druid-io/druid-operator/issues/149
// Fix: https://github.com/datainfrahq/druid-operator/issues/149
for _, pod := range podList {
if pod.(*v1.Pod).Status.Phase != v1.PodRunning {
return nil
Expand Down Expand Up @@ -1220,7 +1220,7 @@ func makeStatefulSet(nodeSpec *v1alpha1.DruidNodeSpec, m *v1alpha1.Druid, ls map

func statefulSetIsEquals(obj1, obj2 object) bool {

// This used to match replica counts, but was reverted to fix https://github.com/druid-io/druid-operator/issues/160
// This used to match replica counts, but was reverted to fix https://github.com/datainfrahq/druid-operator/issues/160
// because it is legitimate for HPA to change replica counts and operator shouldn't reset those.

return true
Expand All @@ -1244,7 +1244,7 @@ func makeDeployment(nodeSpec *v1alpha1.DruidNodeSpec, m *v1alpha1.Druid, ls map[

func deploymentIsEquals(obj1, obj2 object) bool {

// This used to match replica counts, but was reverted to fix https://github.com/druid-io/druid-operator/issues/160
// This used to match replica counts, but was reverted to fix https://github.com/datainfrahq/druid-operator/issues/160
// because it is legitimate for HPA to change replica counts and operator shouldn't reset those.

return true
Expand Down Expand Up @@ -1393,7 +1393,7 @@ func makeHorizontalPodAutoscaler(nodeSpec *v1alpha1.DruidNodeSpec, m *v1alpha1.D

hpa := &autoscalev2beta2.HorizontalPodAutoscaler{
TypeMeta: metav1.TypeMeta{
APIVersion: "autoscaling/v2beta1",
APIVersion: "autoscaling/v2beta2",
Kind: "HorizontalPodAutoscaler",
},
ObjectMeta: metav1.ObjectMeta{
Expand Down
2 changes: 1 addition & 1 deletion controllers/druid/handler_test.go
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"

"github.com/ghodss/yaml"
appsv1 "k8s.io/api/apps/v1"
Expand Down
2 changes: 1 addition & 1 deletion controllers/druid/interface.go
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"reflect"

"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
5 changes: 3 additions & 2 deletions controllers/druid/metadata_store_dep_mgmt.go
Expand Up @@ -3,9 +3,10 @@ package druid
import (
"encoding/json"
"fmt"
"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/druid-io/druid-operator/controllers/druid/ext"
"reflect"

"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/controllers/druid/ext"
)

var metadataStoreExtTypes = map[string]reflect.Type{}
Expand Down
2 changes: 1 addition & 1 deletion controllers/druid/status.go
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"reflect"

"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
2 changes: 1 addition & 1 deletion controllers/druid/suite_test.go
Expand Up @@ -18,7 +18,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"

druidv1alpha1 "github.com/druid-io/druid-operator/apis/druid/v1alpha1"
druidv1alpha1 "github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
// +kubebuilder:scaffold:imports
)

Expand Down
2 changes: 1 addition & 1 deletion controllers/druid/util_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
v1 "k8s.io/api/core/v1"
)

Expand Down
5 changes: 3 additions & 2 deletions controllers/druid/zookeeper_dep_mgmt.go
Expand Up @@ -3,9 +3,10 @@ package druid
import (
"encoding/json"
"fmt"
"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"github.com/druid-io/druid-operator/controllers/druid/ext"
"reflect"

"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
"github.com/datainfrahq/druid-operator/controllers/druid/ext"
)

var zkExtTypes = map[string]reflect.Type{}
Expand Down
3 changes: 2 additions & 1 deletion controllers/druid/zookeeper_dep_mgmt_test.go
@@ -1,8 +1,9 @@
package druid

import (
"github.com/druid-io/druid-operator/apis/druid/v1alpha1"
"testing"

"github.com/datainfrahq/druid-operator/apis/druid/v1alpha1"
)

func TestIt(t *testing.T) {
Expand Down

0 comments on commit da26ede

Please sign in to comment.