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:

stacks/_templates/opensearch.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://opensearch-project.github.io/helm-charts
66
version: 2.16.1
77
options:
8+
labels:
9+
stackable.tech/vendor: Stackable
810
config:
911
opensearch.yml: |
1012
plugins:

stacks/_templates/postgresql-airflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: airflow
1012
password: airflow

stacks/_templates/postgresql-druid.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: druid
1012
password: druid

stacks/_templates/postgresql-hive-iceberg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: hive
1012
password: hive

stacks/_templates/postgresql-hive.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: hive
1012
password: hive

stacks/_templates/postgresql-hivehdfs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: hive
1012
password: hive

stacks/_templates/postgresql-hives3.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: hive
1012
password: hive

stacks/_templates/postgresql-superset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 13.2.18
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
username: superset
1012
password: superset

stacks/_templates/postgresql-timescaledb.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.timescale.com/
66
version: 0.33.1
77
options:
8+
podLabels:
9+
stackable.tech/vendor: Stackable
810
replicaCount: 1
911
secrets:
1012
credentials:

stacks/_templates/prometheus-service-monitor.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: ServiceMonitor
33
metadata:
44
name: scrape-label
55
labels:
6+
stackable.tech/vendor: Stackable
67
release: prometheus
78
spec:
89
endpoints:
@@ -19,6 +20,7 @@ kind: ServiceMonitor
1920
metadata:
2021
name: scrape-minio
2122
labels:
23+
stackable.tech/vendor: Stackable
2224
release: prometheus
2325
spec:
2426
endpoints:

stacks/_templates/prometheus.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://prometheus-community.github.io/helm-charts
66
version: 54.2.2
77
options:
8+
commonMetaLabels:
9+
stackable.tech/vendor: Stackable
810
prometheus:
911
prometheusSpec:
1012
storageSpec:

stacks/_templates/redis-airflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://charts.bitnami.com/bitnami/
66
version: 18.1.6
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
810
auth:
911
password: airflow
1012
replica:

stacks/_templates/vector-aggregator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ repo:
55
url: https://helm.vector.dev
66
version: 0.26.0
77
options:
8+
commonLabels:
9+
stackable.tech/vendor: Stackable
10+
podLabels: # Doesn't seem to work?
11+
stackable.tech/vendor: Stackable
812
role: Aggregator
913
customConfig:
1014
sources:

stacks/jupyterhub-pyspark-hdfs/hdfs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ spec:
4444
capacity: 5Gi
4545
roleGroups:
4646
default:
47-
replicas: 1
47+
replicas: 1

stacks/jupyterhub-pyspark-hdfs/spark_driver_service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ spec:
2121
port: 4040
2222
protocol: TCP
2323
targetPort: 4040
24-
type: ClusterIP
24+
type: ClusterIP

stacks/keycloak-opa-poc/druid.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
# it seems like the Druid processes cannot handle the OIDC authentication flow.
7272
druid.auth.authenticator.MyBasicMetadataAuthenticator.type: basic
7373
druid.auth.authenticator.MyBasicMetadataAuthenticator.initialInternalClientPassword: '${env:DRUID_SYSTEM_USER_PASSWORD}' # Default password for internal 'druid_system' user
74-
druid.auth.authenticator.MyBasicMetadataAuthenticator.skipOnFailure: "true" # for any non system user, skip to the pac4j authenticator
74+
druid.auth.authenticator.MyBasicMetadataAuthenticator.skipOnFailure: "true" # for any non system user, skip to the pac4j authenticator
7575
druid.auth.authenticator.MyBasicMetadataAuthenticator.authorizerName: OpaAuthorizer
7676

7777
# pac4j authenticator
@@ -84,7 +84,7 @@ spec:
8484
druid.auth.pac4j.oidc.clientSecret: '{"type":"environment","variable":"DRUID_CLIENT_SECRET"}'
8585
druid.auth.pac4j.oidc.discoveryURI: '${env:KEYCLOAK_DISCOVERY_URL}'
8686
# druid.auth.pac4j.oidc.oidcClaim: preferred_username # setting doesn't work, but should?
87-
87+
8888
druid.auth.authenticatorChain: '["MyBasicMetadataAuthenticator","pac4j"]'
8989

9090
druid.escalator.type: basic

stacks/keycloak-opa-poc/hdfs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ spec:
2020
journalNodes:
2121
roleGroups:
2222
default:
23-
replicas: 1
23+
replicas: 1

stacks/keycloak-opa-poc/opa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
productVersion: 0.57.0
99
servers:
1010
roleGroups:
11-
default: {}
11+
default: {}

stacks/keycloak-opa-poc/zookeeper.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ metadata:
2525
name: hdfs-znode
2626
spec:
2727
clusterRef:
28-
name: zk
28+
name: zk

stacks/signal-processing/grafana.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repo:
55
url: https://grafana.github.io/helm-charts
66
version: 6.56.1
77
options:
8+
extraLabels:
9+
stackable.tech/vendor: Stackable
810
grafana.ini:
911
analytics:
1012
check_for_updates: false

stacks/signal-processing/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
@@ -32,6 +34,8 @@ options:
3234
serviceAccountName: spark
3335
networkPolicy:
3436
enabled: false
37+
extraLabels:
38+
stackable.tech/vendor: Stackable
3539
initContainers:
3640
- name: download-notebook
3741
image: docker.stackable.tech/stackable/tools:1.0.0-stackable23.11.0

stacks/signal-processing/secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
name: timescale-admin-credentials
66
stringData:
77
username: admin
8-
password: {{ postgresAdminPassword }}
8+
password: {{ postgresAdminPassword }}

0 commit comments

Comments
 (0)