-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add listener support #17
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 all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2c253e8
added listener dirs and service
adwk67 02a1b22
added integration test; use unversioned labels for STS listener volume
adwk67 2316cc2
changelog, docs
adwk67 31eceb1
Update docs/modules/opensearch/pages/usage-guide/listenerclass.adoc
adwk67 03e7070
Update docs/modules/opensearch/pages/usage-guide/listenerclass.adoc
adwk67 ae186fc
Update docs/modules/opensearch/partials/nav.adoc
adwk67 469ae27
Update rust/operator-binary/src/controller/build/role_group_builder.rs
adwk67 7d0981a
Update rust/operator-binary/src/controller/build/role_group_builder.rs
adwk67 59596c4
Update rust/operator-binary/src/crd/mod.rs
adwk67 ddcb858
Update tests/templates/kuttl/external-access/20-assert.yaml
adwk67 576aa9e
Update tests/templates/kuttl/smoke/10-assert.yaml
adwk67 e17ac67
Update rust/operator-binary/src/crd/mod.rs
adwk67 bbfb9f8
reverted assert, removed default function
adwk67 d3ac257
missed owner ref
adwk67 b5e2040
added listener test case
adwk67 ca3e9b1
use versioned labels, move listener_pvc to framework module
adwk67 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
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
17 changes: 17 additions & 0 deletions
17
docs/modules/opensearch/pages/usage-guide/listenerclass.adoc
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,17 @@ | ||
= Service exposition with ListenerClasses | ||
:description: Configure OpenSearch service exposure with ListenerClasses: cluster-internal, external-unstable, or external-stable. | ||
|
||
The operator deploys a xref:listener-operator:listener.adoc[Listener] for OpenSearch role-groups. | ||
The listener defaults to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.nodes.roleGroups.\{role-group-name}.config.listenerClass`: | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
nodes: | ||
roleGroups: | ||
cluster-manager: | ||
config: | ||
listenerClass: external-stable # <1> | ||
---- | ||
<1> Specify a ListenerClass, such as `external-stable`, `external-unstable`, or `cluster-internal` (the default setting is `cluster-internal`) at role-group level. | ||
This can be set for all role-groups individually. |
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
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,19 @@ | ||
use stackable_operator::{ | ||
builder::pod::volume::{ListenerOperatorVolumeSourceBuilder, ListenerReference}, | ||
k8s_openapi::api::core::v1::PersistentVolumeClaim, | ||
kvp::Labels, | ||
}; | ||
|
||
pub fn listener_pvc( | ||
listener_group_name: String, | ||
labels: &Labels, | ||
pvc_name: String, | ||
) -> PersistentVolumeClaim { | ||
ListenerOperatorVolumeSourceBuilder::new( | ||
&ListenerReference::ListenerName(listener_group_name), | ||
labels, | ||
) | ||
.expect("should return Ok independent of the given parameters") | ||
.build_pvc(pvc_name.to_string()) | ||
.expect("should be a valid annotation") | ||
} |
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,15 @@ | ||
# see https://github.com/stackabletech/issues/issues/566 | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
kubectl patch namespace $NAMESPACE --patch=' | ||
{ | ||
"metadata": { | ||
"labels": { | ||
"pod-security.kubernetes.io/enforce": "privileged" | ||
} | ||
} | ||
}' | ||
timeout: 120 |
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,31 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: test-service-account | ||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: test-role | ||
rules: | ||
- apiGroups: | ||
- security.openshift.io | ||
resources: | ||
- securitycontextconstraints | ||
resourceNames: | ||
- privileged | ||
verbs: | ||
- use | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: test-role-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: test-service-account | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: test-role |
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.