Skip to content

Commit

Permalink
reference docs (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig authored Dec 27, 2023
1 parent 90f6e51 commit 38c7414
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 25 deletions.
13 changes: 0 additions & 13 deletions docs/modules/hive/pages/configuration.adoc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
= Command line parameters

=== product-config
This operator accepts the following command line parameters:

== product-config

*Default value*: `/etc/stackable/hive-operator/config-spec/properties.yaml`

Expand All @@ -12,7 +15,7 @@
stackable-hive-operator run --product-config /foo/bar/properties.yaml
----

=== watch-namespace
== watch-namespace

*Default value*: All namespaces

Expand Down
3 changes: 3 additions & 0 deletions docs/modules/hive/pages/reference/crds.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= CRD Reference

Find all CRD reference for the Stackable Operator for Apache Hive at: {crd-docs-base-url}/hive-operator/{crd-docs-version}.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
:namespace: \{namespace\}
:metastorePort: 9083
:roleGroup: \{roleGroup\}
:page-aliases: discovery.adoc

= Discovery

The Stackable Operator for Apache Hive publishes a discovery https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#configmap-v1-core[`ConfigMap`], which exposes a client configuration bundle that allows access to the Apache Hive cluster.
The Stackable Operator for Apache Hive publishes a discovery https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#configmap-v1-core[ConfigMap], which exposes a client configuration bundle that allows access to the Apache Hive cluster.

The bundle includes an Apache Thrift connection string to access the Hive Metastore service. This string may be used by other operators or tools to configure their products with access to Hive. Access is limited to services within the same Kubernetes cluster.

Expand All @@ -32,17 +33,17 @@ spec:
default: # <3>
replicas: 2
----
<1> The name of the Hive cluster, which is also the name of the created discovery `ConfigMap`.
<2> The namespace of the discovery `ConfigMap`.
<1> The name of the Hive cluster, which is also the name of the created discovery ConfigMap.
<2> The namespace of the discovery ConfigMap.
<3> A role group name of the metastore role.

The resulting discovery `ConfigMap` is `{namespace}/{clusterName}`.
The resulting discovery ConfigMap is `{namespace}/{clusterName}`.

== Contents

=== Internal access

The `{namespace}/{clusterName}` discovery `ConfigMap` contains the following fields where `{clusterName}` represents the name, `{namespace}` the namespace of the cluster and `{roleGroup}` a role group of the `metastore` role:
The `{namespace}/{clusterName}` discovery ConfigMap contains the following fields where `{clusterName}` represents the name, `{namespace}` the namespace of the cluster and `{roleGroup}` a role group of the `metastore` role:

`HIVE`::
====
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
= Environment variables

=== PRODUCT_CONFIG
This operator accepts the following environment variables:

== PRODUCT_CONFIG

*Default value*: `/etc/stackable/hive-operator/config-spec/properties.yaml`

Expand All @@ -25,7 +28,7 @@ docker run \
docker.stackable.tech/stackable/hive-operator:latest
----

=== WATCH_NAMESPACE
== WATCH_NAMESPACE

*Default value*: All namespaces

Expand Down
7 changes: 7 additions & 0 deletions docs/modules/hive/pages/reference/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
= Reference

Consult the reference documentation section to find exhaustive information on:

* Descriptions and default values of all properties in the CRDs used by this operator in the xref:reference/crds.adoc[].
* The properties in the xref:reference/discovery.adoc[].
* The xref:reference/commandline-parameters.adoc[] and xref:reference/environment-variables.adoc[] accepted by the operator.
9 changes: 6 additions & 3 deletions docs/modules/hive/partials/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
* xref:hive:getting_started/index.adoc[]
** xref:hive:getting_started/installation.adoc[]
** xref:hive:getting_started/first_steps.adoc[]
* xref:hive:configuration.adoc[]
* Concepts
** xref:hive:discovery.adoc[]
* xref:hive:required-external-components.adoc[]
* xref:hive:usage-guide/index.adoc[]
** xref:hive:usage-guide/listenerclass.adoc[]
Expand All @@ -17,3 +14,9 @@
*** xref:hive:usage-guide/operations/pod-placement.adoc[]
*** xref:hive:usage-guide/operations/pod-disruptions.adoc[]
*** xref:hive:usage-guide/operations/graceful-shutdown.adoc[]
* xref:hive:reference/index.adoc[]
** xref:hive:reference/crds.adoc[]
*** {crd-docs}/hive.stackable.tech/hivecluster/v1alpha1/[HiveCluster {external-link-icon}^]
** xref:hive:reference/discovery.adoc[]
** xref:hive:reference/commandline-parameters.adoc[]
** xref:hive:reference/environment-variables.adoc[]

0 comments on commit 38c7414

Please sign in to comment.