Skip to content

Commit

Permalink
fix: Update weave-trace gcp related settings (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacbd authored Feb 5, 2025
1 parent 41402a8 commit cb10962
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* @gls4 @jsbroks @nfoucha @vanpelt
/charts/launch-agent/ @bcsherma @KyleGoyette @TimH98
* @jsbroks @vanpelt
/charts/launch-agent/ @bcsherma @KyleGoyette @TimH98
/charts/**/service.yaml @dacbd @zacharyblasczyk
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.25.0
version: 0.25.1
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
2 changes: 1 addition & 1 deletion charts/operator-wandb/charts/app/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ metadata:
prometheus.io/scrape: 'true'
prometheus.io/path: '/metrics'
prometheus.io/port: '8181'
{{- if and .Values.global.createGCPLoadBalancerBackend (eq .Values.global.cloudProvider "gcp") }}
{{- if eq .Values.global.cloudProvider "gcp" }}
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"default": "{{ $.Release.Name }}-app-backend-config"}'
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ metadata:
{{- toYaml .Values.service.labels | nindent 4 }}
{{- end }}
annotations:
{{- if and .Values.global.createGCPLoadBalancerBackend (eq .Values.global.cloudProvider "gcp") }}
{{- if eq .Values.global.cloudProvider "gcp" }}
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"default": "{{ $.Release.Name }}-console-backend-config"}'
{{- end }}
Expand Down
20 changes: 20 additions & 0 deletions charts/operator-wandb/charts/weave-trace/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{{- if eq .Values.global.cloudProvider "gcp" }}
---
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: {{ .Release.Name }}-weave-trace-backend-config
labels:
{{- include "wandb.commonLabels" . | nindent 4 }}
spec:
{{- if .Values.global.gcpSecurityPolicy }}
securityPolicy:
name: {{ .Values.global.gcpSecurityPolicy }}
{{- end }}
timeoutSec: 120
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
Expand All @@ -13,6 +29,10 @@ metadata:
{{- if eq .Values.global.cloudProvider "aws" }}
alb.ingress.kubernetes.io/healthcheck-path: /traces/health
{{- end }}
{{- if eq .Values.global.cloudProvider "gcp" }}
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"default": "{{ $.Release.Name }}-weave-trace-backend-config"}'
{{- end }}
{{- if .Values.service.annotations -}}
{{- toYaml .Values.service.annotations | nindent 4 }}
{{- end }}
Expand Down

0 comments on commit cb10962

Please sign in to comment.