Skip to content

Commit

Permalink
Remove the redundant and inconsistent configurations (#1323)
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow authored Apr 20, 2023
1 parent 1b00df4 commit fd83d42
Show file tree
Hide file tree
Showing 39 changed files with 384 additions and 486 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# only run for releases
only_if: $CIRRUS_TAG == 'v*' && $CIRRUS_PR == ''
only_if: $CIRRUS_TAG != ''

macosx_arm64_wheel_task:
macos_instance:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vineyard-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
- name: Upload latest docker image
if: ${{ matrix.job == 'release' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'v6d-io/v6d' }}
run: |
make -C k8s docker-build-push-multi-arch REGISTRY=$REGISTRY VERSION=${{ steps.tag.outputs.TAG }}
make -C k8s docker-build-push-multi-arch REGISTRY=$REGISTRY VERSION=latest
make -C k8s docker-build-push-multi-arch REGISTRY=${{ env.REGISTRY }} VERSION=${{ steps.tag.outputs.TAG }}
make -C k8s docker-build-push-multi-arch REGISTRY=${{ env.REGISTRY }} VERSION=latest
- name: Generate the python and vineyardd image for tests
if: ${{ matrix.job != 'release' }}
Expand Down
7 changes: 3 additions & 4 deletions charts/vineyard-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ kind: Vineyardd
metadata:
name: vineyardd-sample
spec:
image: vineyardcloudnative/vineyardd:latest
replicas: 3
imagePullPolicy: IfNotPresent
etcd:
replicas: 3
vineyard:
image: vineyardcloudnative/vineyardd:latest
imagePullPolicy: IfNotPresent
EOF
```

Expand Down
21 changes: 6 additions & 15 deletions charts/vineyard-operator/templates/sidecar-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ spec:
type: object
spec:
properties:
metricConfig:
etcdReplicas:
default: 3
type: integer
metric:
default:
enable: false
image: vineyardcloudnative/vineyard-grok-exporter:latest
Expand All @@ -71,23 +74,17 @@ spec:
service:
default:
port: 9600
selector: rpc.vineyardd.v6d.io/rpc=vineyard-rpc
type: ClusterIP
properties:
port:
default: 9600
type: integer
selector:
default: rpc.vineyardd.v6d.io/rpc=vineyard-rpc
type: string
type:
default: ClusterIP
type: string
type: object
vineyardConfig:
vineyard:
default:
etcdEndpoint: http://etcd-for-vineyard:2379
etcdPrefix: /vineyard
image: vineyardcloudnative/vineyardd:latest
imagePullPolicy: IfNotPresent
size: 256Mi
Expand Down Expand Up @@ -159,12 +156,6 @@ spec:
- name
type: object
type: array
etcdEndpoint:
default: http://etcd-for-vineyard:2379
type: string
etcdPrefix:
default: /vineyard
type: string
image:
default: vineyardcloudnative/vineyardd:latest
type: string
Expand All @@ -177,7 +168,7 @@ spec:
socket:
default: /var/run/vineyard-kubernetes/{{.Namespace}}/{{.Name}}
type: string
spillConfig:
spill:
properties:
name:
default: ""
Expand Down
31 changes: 7 additions & 24 deletions charts/vineyard-operator/templates/vineyardd-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,10 @@ spec:
type: object
spec:
properties:
etcd:
default:
replicas: 3
properties:
replicas:
default: 3
type: integer
type: object
metricConfig:
etcdReplicas:
default: 3
type: integer
metric:
default:
enable: false
image: vineyardcloudnative/vineyard-grok-exporter:latest
Expand All @@ -70,7 +65,7 @@ spec:
default: IfNotPresent
type: string
type: object
pluginConfig:
pluginImage:
default:
backupImage: ghcr.io/v6d-io/v6d/backup-job
daskRepartitionImage: ghcr.io/v6d-io/v6d/dask-repartition
Expand Down Expand Up @@ -100,23 +95,17 @@ spec:
service:
default:
port: 9600
selector: rpc.vineyardd.v6d.io/rpc=vineyard-rpc
type: ClusterIP
properties:
port:
default: 9600
type: integer
selector:
default: rpc.vineyardd.v6d.io/rpc=vineyard-rpc
type: string
type:
default: ClusterIP
type: string
type: object
vineyardConfig:
vineyard:
default:
etcdEndpoint: http://etcd-for-vineyard:2379
etcdPrefix: /vineyard
image: vineyardcloudnative/vineyardd:latest
imagePullPolicy: IfNotPresent
size: 256Mi
Expand Down Expand Up @@ -188,12 +177,6 @@ spec:
- name
type: object
type: array
etcdEndpoint:
default: http://etcd-for-vineyard:2379
type: string
etcdPrefix:
default: /vineyard
type: string
image:
default: vineyardcloudnative/vineyardd:latest
type: string
Expand All @@ -206,7 +189,7 @@ spec:
socket:
default: /var/run/vineyard-kubernetes/{{ "{{.Namespace}}/{{.Name}}" }}
type: string
spillConfig:
spill:
properties:
name:
default: ""
Expand Down
18 changes: 8 additions & 10 deletions docs/notes/cloud-native/deploy-kubernetes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Option #1: Install from helm chart (recommended)
$ helm repo add vineyard https://vineyard.oss-ap-southeast-1.aliyuncs.com/charts/
$ helm repo update
$ helm install vineyard-operator vineyard/vineyard-operator
$ helm install vineyard-operator vineyard/vineyard-operator -n vineyard-system --create-namespace
Wait for the vineyard operator until ready.

Expand All @@ -46,12 +46,13 @@ Option #2: Install form source code
$ cd k8s
$ make -C k8s docker-build
With `kind`_, you need to first import the image into the kind cluster (otherwise you
need to push the image to your registry first):
.. caution::

.. code:: bash
With `kind`_, you need to first import the image into the kind cluster:

.. code:: bash
$ kind load docker-image vineyardcloudnative/vineyard-operator:latest
$ kind load docker-image vineyardcloudnative/vineyard-operator:latest
3. Install the cert-manager

Expand Down Expand Up @@ -113,14 +114,11 @@ replicas:
# don't use default namespace
namespace: vineyard-system
spec:
replicas: 2
etcd:
replicas: 3
service:
type: ClusterIP
port: 9600
vineyardConfig:
image: ghcr.io/v6d-io/v6d/vineyardd:alpine-latest
vineyard:
image: vineyardcloudnative/vineyardd:alpine-latest
imagePullPolicy: IfNotPresent
EOF
Expand Down
Loading

0 comments on commit fd83d42

Please sign in to comment.