Skip to content

Commit b1b0933

Browse files
authored
feat: Add vendor label to deployed third-party resources (#9)
* Add static label to deployed resources * Remove vendor label from demo manifests * Add vendor label to opensearch-dashboard service * Change commonLabels to podLabels for timescaledb * Remove vendor label from stacks * Adjust Jupyterhub labels * Add label to inlined SparkApplication * Cleanup leftover yq formatting
1 parent 20e75d9 commit b1b0933

32 files changed

+70
-16
lines changed

demos/data-lakehouse-iceberg-trino-spark/create-spark-ingestion-job.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ data:
3939
kind: SparkApplication
4040
metadata:
4141
name: spark-ingest-into-lakehouse
42+
labels:
43+
stackable.tech/vendor: Stackable
4244
spec:
4345
version: "1.0"
4446
sparkImage:
@@ -61,7 +63,7 @@ data:
6163
# Every merge into statements creates 8 files.
6264
# Paralleling is enough for the demo, might need to be increased (or omitted entirely) when merge larger data volumes
6365
spark.sql.shuffle.partitions: "8"
64-
66+
6567
# As of 2023-10-31 the operator does not set this
6668
spark.executor.cores: "4"
6769
volumes:

demos/data-lakehouse-iceberg-trino-spark/setup-superset.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ data:
7070
# with open("superset-assets.zip", "wb") as f:
7171
# f.write(result.content)
7272
73-
7473
#########################
7574
# IMPORTANT
7675
#########################

demos/nifi-kafka-druid-water-level-data/create-druid-ingestion-job.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ spec:
1414
- name: ingestion-job-spec
1515
mountPath: /tmp/ingestion-job-spec
1616
volumes:
17-
- name: ingestion-job-spec
18-
configMap:
19-
name: create-druid-ingestion-job-spec
17+
- name: ingestion-job-spec
18+
configMap:
19+
name: create-druid-ingestion-job-spec
2020
restartPolicy: OnFailure
2121
backoffLimit: 50
2222
---

demos/signal-processing/serviceaccount.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@ rules:
4545
- pods/exec
4646
verbs:
4747
- create
48-

demos/spark-k8s-anomaly-detection-taxi-data/create-spark-anomaly-detection-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ kind: ConfigMap
9696
metadata:
9797
name: cm-spark
9898
data:
99-
spark-ad.py: |
99+
spark-ad.py: |-
100100
from pyspark.sql import SparkSession
101101
from pyspark.sql.functions import dayofweek, to_date, to_timestamp, date_format, year, hour, minute, month, when, dayofmonth, dayofweek
102102
from pyspark.sql.functions import concat_ws, substring, concat, lpad, lit
@@ -191,4 +191,4 @@ data:
191191
)
192192
193193
# write via iceberg
194-
df_out.writeTo("prediction.ad.iforest").append()
194+
df_out.writeTo("prediction.ad.iforest").append()

stacks/_templates/jupyterhub.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ options:
1414
password: {{ jupyterHubAdminPassword }}
1515
JupyterHub:
1616
authenticator_class: dummy
17+
labels:
18+
stackable.tech/vendor: Stackable
1719
proxy:
1820
service:
1921
type: NodePort
@@ -41,6 +43,8 @@ options:
4143
serviceAccountName: spark
4244
networkPolicy:
4345
enabled: false
46+
extraLabels:
47+
stackable.tech/vendor: Stackable
4448
extraEnv:
4549
HADOOP_CONF_DIR: "/home/jovyan/hdfs"
4650
initContainers:

stacks/_templates/minio-distributed-small.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ repo:
55
url: https://charts.min.io/
66
version: 5.0.14
77
options:
8+
additionalLabels:
9+
stackable.tech/vendor: Stackable
10+
podLabels:
11+
stackable.tech/vendor: Stackable
812
rootUser: admin
913
rootPassword: {{ minioAdminPassword }}
1014
mode: distributed

stacks/_templates/minio-distributed.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ repo:
55
url: https://charts.min.io/
66
version: 5.0.14
77
options:
8+
additionalLabels:
9+
stackable.tech/vendor: Stackable
10+
podLabels:
11+
stackable.tech/vendor: Stackable
812
rootUser: admin
913
rootPassword: {{ minioAdminPassword }}
1014
mode: distributed

stacks/_templates/minio.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ repo:
55
url: https://charts.min.io/
66
version: 5.0.14
77
options:
8+
additionalLabels:
9+
stackable.tech/vendor: Stackable
10+
podLabels:
11+
stackable.tech/vendor: Stackable
812
rootUser: admin
913
rootPassword: {{ minioAdminPassword }}
1014
mode: standalone

stacks/_templates/opensearch-dashboards.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ repo:
55
url: https://opensearch-project.github.io/helm-charts
66
version: 2.14.0
77
options:
8+
labels:
9+
stackable.tech/vendor: Stackable
810
service:
911
type: NodePort
1012
port: 5601
1113
annotations:
1214
stackable.tech/logging-view-logs: |-
1315
/app/discover?security_tenant=global#/view/logs
1416
stackable.tech/logging-credentials-secret: opensearch-user
17+
labels:
18+
stackable.tech/vendor: Stackable
1519
opensearchAccount:
1620
secret: opensearch-dashboard-user
1721
extraEnvs:

0 commit comments

Comments
 (0)