Skip to content

Commit

Permalink
trino bundle for 23.4 (#424)
Browse files Browse the repository at this point in the history
# Description

Bundle files for the 23.4 release of the trino operator.

Subset of tests on Openshift 4.11:

```
--- PASS: kuttl (1789.26s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-false_use-tls-true_use-internal-tls-true (97.24s)
        --- PASS: kuttl/harness/logging_trino-396-stackable23.4.0 (100.82s)
        --- PASS: kuttl/harness/ldap_trino-latest-403-stackable23.4.0_ldap-use-tls-false_openshift-true (109.31s)
        --- PASS: kuttl/harness/orphaned-resources_trino-latest-403-stackable23.4.0 (122.06s)
        --- PASS: kuttl/harness/ldap_trino-latest-403-stackable23.4.0_ldap-use-tls-true_openshift-true (100.38s)
        --- PASS: kuttl/harness/cluster-operation_trino-latest-403-stackable23.4.0 (155.72s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-false_use-tls-true_use-internal-tls-false (69.25s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-false_use-tls-false_use-internal-tls-true (90.85s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-false_use-tls-false_use-internal-tls-false (68.64s)
        --- PASS: kuttl/harness/resources_trino-latest-403-stackable23.4.0 (80.20s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-true_use-tls-true_use-internal-tls-false (74.92s)
        --- PASS: kuttl/harness/smoke_trino-403-stackable23.4.0_hive-3.1.3-stackable23.4.0_opa-0.45.0-stackable23.4.0_hdfs-3.3.4-stackable23.4.0_zookeeper-3.8.0-stackable23.4.0_s3-use-tls-false_openshift-true (433.46s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-true_use-tls-true_use-internal-tls-true (103.74s)
        --- PASS: kuttl/harness/smoke_trino-396-stackable23.4.0_hive-3.1.3-stackable23.4.0_opa-0.45.0-stackable23.4.0_hdfs-3.3.4-stackable23.4.0_zookeeper-3.8.0-stackable23.4.0_s3-use-tls-false_openshift-true (497.78s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-true_use-tls-false_use-internal-tls-true (77.43s)
        --- PASS: kuttl/harness/smoke_trino-403-stackable23.4.0_hive-2.3.9-stackable23.4.0_opa-0.45.0-stackable23.4.0_hdfs-3.3.4-stackable23.4.0_zookeeper-3.8.0-stackable23.4.0_s3-use-tls-false_openshift-true (478.67s)
        --- PASS: kuttl/harness/logging_trino-403-stackable23.4.0 (109.45s)
        --- PASS: kuttl/harness/tls_trino-latest-403-stackable23.4.0_use-authentication-true_use-tls-false_use-internal-tls-false (71.14s)
        --- PASS: kuttl/harness/smoke_trino-396-stackable23.4.0_hive-2.3.9-stackable23.4.0_opa-0.45.0-stackable23.4.0_hdfs-3.3.4-stackable23.4.0_zookeeper-3.8.0-stackable23.4.0_s3-use-tls-false_openshift-true (457.17s)
PASS
```
  • Loading branch information
adwk67 committed May 4, 2023
1 parent 1c9bbf0 commit af94b44
Show file tree
Hide file tree
Showing 9 changed files with 3,942 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ crate-hashes.json
result
image.tar

tilt_options.json
tilt_options.json

**/bundle/
**/bundle.Dockerfile
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Added

- Generate OLM bundle for Release 23.4.0 ([#424]).

### Changed

- `operator-rs` `0.40.2` -> `0.41.0` ([#419]).
Expand All @@ -12,6 +16,7 @@ All notable changes to this project will be documented in this file.

[#419]: https://github.com/stackabletech/trino-operator/pull/419
[#421]: https://github.com/stackabletech/trino-operator/pull/421
[#424]: https://github.com/stackabletech/trino-operator/pull/424

## [23.4.0] - 2023-04-17

Expand Down
241 changes: 241 additions & 0 deletions deploy/olm/23.4.0/manifests/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
---
apiVersion: v1
data:
properties.yaml: |
---
version: 0.1.0
spec:
units:
- unit: &unitNodeEnvironment
name: "node_environment"
regex: "^[a-z][a-z0-9_]*[a-z0-9]$"
examples:
- "a1_2_3b"
- unit: &unitMemory
name: "memory"
regex: "(^\\p{N}+)(?:\\s*)((?:b|k|m|g|t|p|kb|mb|gb|tb|pb|B|K|M|G|T|P|KB|MB|GB|TB|PB)\\b$)"
examples:
- "1024b"
- "1024kb"
- "500m"
- "1g"
###################################################################################################
# node.properties
###################################################################################################
properties:
- property: &nodeEnvironment
propertyNames:
- name: "node.environment"
kind:
type: "file"
file: "node.properties"
datatype:
type: "string"
unit: *unitNodeEnvironment
roles:
- name: "coordinator"
required: true
- name: "worker"
required: true
asOfVersion: "0.0.0"
###################################################################################################
# config.properties
###################################################################################################
- property: &coordinator
propertyNames:
- name: "coordinator"
kind:
type: "file"
file: "config.properties"
datatype:
type: "bool"
defaultValues:
- fromVersion: "0.0.0"
value: "false"
roles:
- name: "coordinator"
required: true
- name: "worker"
required: true
asOfVersion: "0.0.0"
- property: &nodeSchedulerIncludeCoordinator
propertyNames:
- name: "node-scheduler.include-coordinator"
kind:
type: "file"
file: "config.properties"
datatype:
type: "bool"
defaultValues:
- fromVersion: "0.0.0"
value: "false"
roles:
- name: "coordinator"
required: true
asOfVersion: "0.0.0"
- property: &httpServerHttpPort
propertyNames:
- name: "http-server.http.port"
kind:
type: "file"
file: "config.properties"
datatype:
type: "integer"
min: "1024"
max: "65535"
defaultValues:
- fromVersion: "0.0.0"
value: "8080"
roles:
- name: "coordinator"
required: false
- name: "worker"
required: false
asOfVersion: "0.0.0"
- property: &httpServerHttpsPort
propertyNames:
- name: "http-server.https.port"
kind:
type: "file"
file: "config.properties"
datatype:
type: "integer"
min: "1024"
max: "65535"
defaultValues:
- fromVersion: "0.0.0"
value: "8443"
roles:
- name: "coordinator"
required: false
- name: "worker"
required: false
asOfVersion: "0.0.0"
- property: &queryMaxMemory
propertyNames:
- name: "query.max-memory"
kind:
type: "file"
file: "config.properties"
datatype:
type: "string"
unit: *unitMemory
defaultValues:
- fromVersion: "0.0.0"
value: "50GB"
roles:
- name: "coordinator"
required: true
- name: "worker"
required: true
asOfVersion: "0.0.0"
- property: &queryMaxMemoryPerNode
propertyNames:
- name: "query.max-memory-per-node"
kind:
type: "file"
file: "config.properties"
datatype:
type: "string"
unit: *unitMemory
defaultValues:
- fromVersion: "0.0.0"
value: "1GB"
roles:
- name: "coordinator"
required: true
- name: "worker"
required: true
asOfVersion: "0.0.0"
- property: &httpServerAuthenticationType
propertyNames:
- name: "http-server.authentication.type"
kind:
type: "file"
file: "config.properties"
datatype:
type: "string"
roles:
- name: "coordinator"
required: false
asOfVersion: "0.0.0"
###################################################################################################
# password-authenticator.properties
###################################################################################################
- property: &passwordAuthenticatorName
propertyNames:
- name: "password-authenticator.name"
kind:
type: "file"
file: "password-authenticator.properties"
datatype:
type: "string"
allowedValues:
- "file"
- "ldap"
roles:
- name: "coordinator"
required: false
asOfVersion: "0.0.0"
- property: &passwordAuthenticatorName
propertyNames:
- name: "file.password-file"
kind:
type: "file"
file: "password-authenticator.properties"
datatype:
type: "string"
roles:
- name: "coordinator"
required: false
asOfVersion: "0.0.0"
###################################################################################################
# jvm.config
###################################################################################################
###################################################################################################
# log.properties
###################################################################################################
- property: &ioTrino
propertyNames:
- name: "io.trino"
kind:
type: "file"
file: "log.properties"
datatype:
type: "string"
defaultValues:
- fromVersion: "0.0.0"
value: "INFO"
allowedValues:
- "INFO"
- "DEBUG"
- "WARN"
- "ERROR"
roles:
- name: "coordinator"
required: true
- name: "worker"
required: true
asOfVersion: "0.0.0"
kind: ConfigMap
metadata:
name: trino-operator-configmap
labels:
app.kubernetes.io/name: trino-operator
app.kubernetes.io/instance: trino-operator
app.kubernetes.io/version: "23.4.0"
28 changes: 28 additions & 0 deletions deploy/olm/23.4.0/manifests/roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: trino-clusterrole
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
- serviceaccounts
verbs:
- get
- apiGroups:
- events.k8s.io
resources:
- events
verbs:
- create
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
resourceNames:
- stackable-products-scc
verbs:
- use
Loading

0 comments on commit af94b44

Please sign in to comment.