Skip to content

Commit

Permalink
Add metastore fields in crd for helm charts (#91)
Browse files Browse the repository at this point in the history
* Add metastore fields in crd for helm charts

* Fix expect template
  • Loading branch information
Kai-Zhang authored Nov 27, 2023
1 parent efe26b9 commit 3f0fef3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/alluxiocluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ type PagestoreSpec struct {

type MetastoreSpec struct {
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
HostPath *bool `json:"hostPath,omitempty" yaml:"hostPath,omitempty"`
Size string `json:"size,omitempty" yaml:"size,omitempty"`
StorageClass string `json:"storageClass,omitempty" yaml:"storageClass,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

type ProxySpec struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2098,10 +2098,14 @@ spec:
properties:
enabled:
type: boolean
hostPath:
type: string
size:
type: string
storageClass:
type: string
type:
type: string
type: object
metrics:
properties:
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/alluxio/templates/fuse/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ spec:
{{- end }}
command: ["/bin/sh", "-c"]
args:
- umount -l {{ $alluxioFuseMountPoint }};
- umount -l -f {{ $alluxioFuseMountPoint }};
{{- $mountTableSource := get .Values.properties "alluxio.mount.table.source" }}
{{- if or (eq $mountTableSource "ETCD") (eq $mountTableSource "STATIC_FILE") }}
/entrypoint.sh fuse {{ $alluxioFuseMountPoint }} {{- range .Values.fuse.mountOptions }} -o {{ . }} {{- end }}
Expand Down
4 changes: 4 additions & 0 deletions resources/crds/k8s-operator.alluxio.com_alluxioclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2098,10 +2098,14 @@ spec:
properties:
enabled:
type: boolean
hostPath:
type: string
size:
type: string
storageClass:
type: string
type:
type: string
type: object
metrics:
properties:
Expand Down
2 changes: 1 addition & 1 deletion tests/helm/expectedTemplates/fuse/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ spec:
memory: 1Gi
command: ["/bin/sh", "-c"]
args:
- umount -l /mnt/alluxio/fuse;
- umount -l -f /mnt/alluxio/fuse;
/entrypoint.sh fuse /dummy/dataset/path /mnt/alluxio/fuse -o allow_other -o entry_timeout=3600 -o attr_timeout=3600
env:
- name: ALLUXIO_CLIENT_HOSTNAME
Expand Down

0 comments on commit 3f0fef3

Please sign in to comment.