-
Notifications
You must be signed in to change notification settings - Fork 69
feat: support oxia metadata store #1276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3041b6e
feat: support oxia metadata store
mattisonchao c346bc0
fix: repair oxia namespace template
mattisonchao 74ac225
fix: align oxia istio dataplane mode
mattisonchao ed3e330
fix: keep oxia istio config scoped
mattisonchao 7fd6057
fix: add oxia component configuration
mattisonchao 00ad6a4
fix: remove oxia component value
mattisonchao c6d2ef1
fix: document optional oxia values as examples
mattisonchao 30c2e74
fix: refine oxia chart defaults
mattisonchao f966617
fix: update platform image defaults
mattisonchao 9f5ea77
Revert "fix: update platform image defaults"
mattisonchao cea508c
fix: avoid default empty oxia values
mattisonchao b141590
fix: configure oxia istio defaults
mattisonchao fe76c8c
fix: remove oxia auth rules values example
mattisonchao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # | ||
| # Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved. | ||
| # | ||
| # deploy oxia only when `pulsar_metadata.provider` is oxia | ||
| {{- if include "pulsar.metadata.isOxia" . }} | ||
| apiVersion: k8s.streamnative.io/v1alpha1 | ||
| kind: OxiaCluster | ||
| metadata: | ||
| name: "{{ template "pulsar.oxia.cluster" . }}" | ||
| namespace: {{ template "pulsar.namespace" . }} | ||
| labels: | ||
| {{- include "pulsar.standardLabels" . | nindent 4 }} | ||
| component: oxia | ||
| {{- if .Values.components.pulsar_coordinator }} | ||
| k8s.streamnative.io/coordinator-name: "{{ template "pulsar.fullname" . }}-coordinator" | ||
| {{- end }} | ||
| spec: | ||
| image: "{{ .Values.images.oxia.repository }}:{{ .Values.images.oxia.tag }}" | ||
| imagePullPolicy: {{ .Values.images.oxia.pullPolicy }} | ||
| monitoringEnabled: {{ include "pulsar.oxia.podMonitor.enabled" . }} | ||
| server: | ||
| replicas: 3 | ||
| {{- if .Values.istio.enabled }} | ||
| istio: | ||
| enabled: true | ||
| {{- if .Values.istio.dataplaneMode }} | ||
| dataplaneMode: {{ .Values.istio.dataplaneMode }} | ||
| {{- end }} | ||
| {{- if .Values.istio.migration }} | ||
| mtls: | ||
| mode: permissive | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
36 changes: 36 additions & 0 deletions
36
charts/sn-platform-slim/templates/oxia/oxia-namespace.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # | ||
| # Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved. | ||
| # | ||
| # deploy oxia namespaces only when `pulsar_metadata.provider` is oxia | ||
| {{- if include "pulsar.metadata.isOxia" . }} | ||
| {{- $brokerNamespace := dict "name" (include "pulsar.oxia.broker.namespace" .) "type" "broker" }} | ||
| {{- $bookkeeperNamespace := dict "name" (include "pulsar.oxia.bookkeeper.namespace" .) "type" "bookkeeper" }} | ||
| {{- $schemaNamespace := dict "name" (include "pulsar.oxia.schema.namespace" .) "type" "pulsar-schema" }} | ||
| {{- $functionNamespace := dict "name" (include "pulsar.oxia.function.namespace" .) "type" "function" }} | ||
| {{- $namespaces := list $brokerNamespace $bookkeeperNamespace $schemaNamespace $functionNamespace }} | ||
| {{- range $index, $oxiaNamespace := $namespaces }} | ||
| {{- if $index }} | ||
| --- | ||
| {{- end }} | ||
| apiVersion: k8s.streamnative.io/v1alpha1 | ||
| kind: OxiaNamespace | ||
| metadata: | ||
| name: "{{ template "pulsar.oxia.cluster" $ }}-{{ $oxiaNamespace.type }}" | ||
| namespace: {{ template "pulsar.namespace" $ }} | ||
| labels: | ||
| {{- include "pulsar.standardLabels" $ | nindent 4 }} | ||
| component: oxia | ||
| spec: | ||
| namespaceConfig: | ||
| name: "{{ $oxiaNamespace.name }}" | ||
| initialShardCount: 1 | ||
| replicationFactor: 3 | ||
| notificationsEnabled: true | ||
| clusterRef: | ||
| name: "{{ template "pulsar.oxia.cluster" $ }}" | ||
| namespace: {{ template "pulsar.namespace" $ }} | ||
| ownerRef: | ||
| name: "{{ template "pulsar.fullname" $ }}" | ||
| namespace: {{ template "pulsar.namespace" $ }} | ||
| {{- end }} | ||
| {{- end }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.