Skip to content

Commit

Permalink
adding "hostname" label to our services
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Aug 23, 2024
1 parent 4dfcee2 commit 6920af9
Show file tree
Hide file tree
Showing 24 changed files with 82 additions and 53 deletions.
110 changes: 57 additions & 53 deletions .secrets.baseline

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions gen3/lib/g3k_manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@ g3k_manifest_filter() {
kvList+=("$kvLabelKey" "tags.datadoghq.com/version: '$version'")
done
environment="$(g3k_config_lookup ".global.environment" "$manifestPath")"
hostname="$(g3k_config_lookup ".global.hostname" "$manifestPath")"
kvEnvKey=$(echo "GEN3_ENV_LABEL" | tr '[:lower:]' '[:upper:]')
kvHostKey=$(echo "GEN3_HOSTNAME_LABEL" | tr '[:lower:]' '[:upper:]')
kvList+=("$kvEnvKey" "tags.datadoghq.com/env: $environment")
kvList+=("$kvHostKey" "hostname: $hostname")
for key in $(g3k_config_lookup '. | keys[]' "$manifestPath"); do
gen3_log_debug "harvesting key $key"
for key2 in $(g3k_config_lookup ".[\"${key}\"] "' | to_entries | map(select((.value|type != "array") and (.value|type != "object"))) | map(.key)[]' "$manifestPath" | grep '^[a-zA-Z]'); do
Expand Down
1 change: 1 addition & 0 deletions kube/services/ambassador/ambassador-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
netnolimit: "yes"
userhelper: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/arborist/arborist-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
# for revproxy authz
public: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/argo-wrapper/argo-wrapper-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
GEN3_ENV_LABEL
GEN3_ARGO-WRAPPER_VERSION
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/audit-service/audit-service-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
# for network policy
netnolimit: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
serviceAccountName: audit-service-sa
affinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/aws-es-proxy/aws-es-proxy-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
app: esproxy
netvpc: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
nodeAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/dicom-server/dicom-server-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
release: production
public: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
nodeAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/dicom-viewer/dicom-viewer-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
release: production
public: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
nodeAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/fence/fence-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
userhelper: "yes"
tags.datadoghq.com/service: "fence"
GEN3_ENV_LABEL
GEN3_HOSTNAME_LABEL
GEN3_FENCE_VERSION
GEN3_DATE_LABEL
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
app: frontend-framework
public: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/guppy/guppy-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
GEN3_GUPPY_VERSION
GEN3_ENV_LABEL
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/hatchery/hatchery-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
GEN3_HATCHERY_VERSION
GEN3_ENV_LABEL
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/indexd/indexd-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
GEN3_ENV_LABEL
GEN3_INDEXD_VERSION
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/manifestservice/manifestservice-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
userhelper: "yes"
netvpc: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
serviceAccountName: manifestservice-sa
affinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/metadata/metadata-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
# for network policy
netnolimit: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/peregrine/peregrine-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
GEN3_ENV_LABEL
GEN3_PEREGRINE_VERSION
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/portal/portal-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
app: portal
public: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/requestor/requestor-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
# for network policy
netnolimit: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/revproxy/revproxy-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
userhelper: "yes"
internet: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/sheepdog/sheepdog-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
GEN3_ENV_LABEL
GEN3_SHEEPDOG_VERSION
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/sower/sower-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
public: "yes"
netnolimit: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions kube/services/ssjdispatcher/ssjdispatcher-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
netnolimit: "yes"
public: "yes"
GEN3_DATE_LABEL
GEN3_HOSTNAME_LABEL
spec:
serviceAccountName: ssjdispatcher-service-account
securityContext:
Expand Down
1 change: 1 addition & 0 deletions kube/services/wts/wts-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
GEN3_DATE_LABEL
GEN3_WTS_VERSION
GEN3_ENV_LABEL
GEN3_HOSTNAME_LABEL
spec:
affinity:
podAntiAffinity:
Expand Down

0 comments on commit 6920af9

Please sign in to comment.