Skip to content

Commit

Permalink
Merge pull request #26 from cloudcheflabs/25
Browse files Browse the repository at this point in the history
25
  • Loading branch information
cloudcheflabs authored Jul 14, 2022
2 parents c2f4eae + e0efc4f commit 611886d
Show file tree
Hide file tree
Showing 22 changed files with 1,228 additions and 153 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ helm install \
dataroaster-operator \
--create-namespace \
--namespace dataroaster-operator \
--version v3.0.9 \
--version v3.0.8 \
--set image=cloudcheflabs/dataroaster-operator:4.3.0 \
--set dataroastermysql.storage.storageClass=oci \
dataroaster-operator/dataroaster-operator;
Expand Down
4 changes: 2 additions & 2 deletions operators/dataroaster/chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: dataroaster-operator
version: v3.0.9
version: v3.0.8
appVersion: 4.3.0
description: dataroaster operator

Expand All @@ -13,7 +13,7 @@ dependencies:
repository: https://cloudcheflabs.github.io/helm-operator-helm-repo/

- name: dataroastertrinooperator
version: v2.1.6
version: v2.1.5
repository: https://cloudcheflabs.github.io/trino-helm-repo/

- name: dataroastersparkoperator
Expand Down
2 changes: 1 addition & 1 deletion operators/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ helm install \
trino-operator \
--create-namespace \
--namespace trino-operator \
--version v2.1.6 \
--version v2.1.5 \
dataroaster-trino-operator/dataroastertrinooperator;
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.cloudcheflabs.dataroaster.operators.trino.handler;

import com.cloudcheflabs.dataroaster.operators.trino.crd.Coordinator;
import com.cloudcheflabs.dataroaster.operators.trino.crd.Image;
import com.cloudcheflabs.dataroaster.operators.trino.crd.TrinoCluster;
import com.cloudcheflabs.dataroaster.operators.trino.crd.TrinoClusterSpec;
import io.fabric8.kubernetes.api.model.PodSecurityContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -43,20 +40,6 @@ public void create(TrinoCluster trinoCluster) {
@Override
public void update(TrinoCluster trinoCluster) {
create(trinoCluster);

String name = trinoCluster.getMetadata().getName();
TrinoClusterSpec spec = trinoCluster.getSpec();
String namespace = spec.getNamespace();

// rollout coordinator.
trinoClusterClient.getClient().apps().deployments().inNamespace(namespace).withName(DEFAULT_COORDINATOR_DEPLOYMENT)
.rolling().restart();
LOG.info("cluster [{}] deployment [{}] rollout restarted.", name, DEFAULT_COORDINATOR_DEPLOYMENT);

// rollout workers.
trinoClusterClient.getClient().apps().deployments().inNamespace(namespace).withName(DEFAULT_WORKER_DEPLOYMENT)
.rolling().restart();
LOG.info("cluster [{}] deployment [{}] rollout restarted.", name, DEFAULT_WORKER_DEPLOYMENT);
}

@Override
Expand Down
Loading

0 comments on commit 611886d

Please sign in to comment.