diff --git a/Cargo.lock b/Cargo.lock index 3c29ca19..042b1895 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2519,9 +2519,9 @@ dependencies = [ [[package]] name = "slab" -version = "0.4.10" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04dc19736151f35336d325007ac991178d504a119863a2fcb3758cdb5e52c50d" +checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" [[package]] name = "smallvec" diff --git a/Cargo.nix b/Cargo.nix index 3ac7c477..a2f7b186 100644 --- a/Cargo.nix +++ b/Cargo.nix @@ -8191,9 +8191,9 @@ rec { }; "slab" = rec { crateName = "slab"; - version = "0.4.10"; + version = "0.4.11"; edition = "2018"; - sha256 = "03f5a9gdp33mngya4qwq2555138pj74pl015scv57wsic5rikp04"; + sha256 = "12bm4s88rblq02jjbi1dw31984w61y2ldn13ifk5gsqgy97f8aks"; authors = [ "Carl Lerche " ]; diff --git a/deploy/helm/superset-operator/templates/deployment.yaml b/deploy/helm/superset-operator/templates/deployment.yaml index 9056e705..8615cd70 100644 --- a/deploy/helm/superset-operator/templates/deployment.yaml +++ b/deploy/helm/superset-operator/templates/deployment.yaml @@ -55,6 +55,18 @@ spec: fieldRef: fieldPath: metadata.annotations['internal.stackable.tech/image'] + # Namespace the operator Pod is running in, e.g. used to construct the conversion + # webhook endpoint. + - name: OPERATOR_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + + # The name of the Kubernetes Service that point to the operator Pod, e.g. used to + # construct the conversion webhook endpoint. + - name: OPERATOR_SERVICE_NAME + value: {{ include "operator.fullname" . }} + # Operators need to know the node name they are running on, to e.g. discover the # Kubernetes domain name from the kubelet API. - name: KUBERNETES_NODE_NAME diff --git a/deploy/helm/superset-operator/templates/service.yaml b/deploy/helm/superset-operator/templates/service.yaml new file mode 100644 index 00000000..0cb05696 --- /dev/null +++ b/deploy/helm/superset-operator/templates/service.yaml @@ -0,0 +1,19 @@ + +--- +apiVersion: v1 +kind: Service +metadata: + # Note(@sbernauer): We could also call the Service something like + # "product-operator-conversion-webhook". However, in the future we will have more webhooks, and + # it seems like an overkill to have a dedicated Service per webhook. + name: {{ include "operator.fullname" . }} + labels: + {{- include "operator.labels" . | nindent 4 }} +spec: + selector: + {{- include "operator.selectorLabels" . | nindent 6 }} + ports: + - name: conversion-webhook + protocol: TCP + port: 8443 + targetPort: 8443