Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

tweak(infra): Rename builder for consistency (#7837)

Aarushi9e35f8c5cb3f
diff --git a/rnd/infra/helm/autogpt_builder/.helmignore b/rnd/infra/helm/autogpt-builder/.helmignore
similarity index 100%
rename from rnd/infra/helm/autogpt_builder/.helmignore
rename to rnd/infra/helm/autogpt-builder/.helmignore
diff --git a/rnd/infra/helm/autogpt_builder/Chart.yaml b/rnd/infra/helm/autogpt-builder/Chart.yaml
similarity index 96%
rename from rnd/infra/helm/autogpt_builder/Chart.yaml
rename to rnd/infra/helm/autogpt-builder/Chart.yaml
index 96653b89ea..639e7cbd05 100644
--- a/rnd/infra/helm/autogpt_builder/Chart.yaml
+++ b/rnd/infra/helm/autogpt-builder/Chart.yaml
@@ -1,5 +1,5 @@
apiVersion: v2
-name: autogpt_builder
+name: autogpt-builder
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
@@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
-appVersion: "1.16.0"
+appVersion: "1.0.0"
diff --git a/rnd/infra/helm/autogpt_builder/templates/NOTES.txt b/rnd/infra/helm/autogpt-builder/templates/NOTES.txt
similarity index 87%
rename from rnd/infra/helm/autogpt_builder/templates/NOTES.txt
rename to rnd/infra/helm/autogpt-builder/templates/NOTES.txt
index 8ce6c44ba8..5bf2c1287a 100644
--- a/rnd/infra/helm/autogpt_builder/templates/NOTES.txt
+++ b/rnd/infra/helm/autogpt-builder/templates/NOTES.txt
@@ -6,16 +6,16 @@
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
- export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "autogpt_builder.fullname" . }})
+ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "autogpt-builder.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
- You can watch its status by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "autogpt_builder.fullname" . }}'
- export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "autogpt_builder.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
+ You can watch its status by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "autogpt-builder.fullname" . }}'
+ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "autogpt-builder.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
- export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "autogpt_builder.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
+ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "autogpt-builder.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
diff --git a/rnd/infra/helm/autogpt_builder/templates/_helpers.tpl b/rnd/infra/helm/autogpt-builder/templates/_helpers.tpl
similarity index 73%
rename from rnd/infra/helm/autogpt_builder/templates/_helpers.tpl
rename to rnd/infra/helm/autogpt-builder/templates/_helpers.tpl
index 8e65eaf4be..c0624bd0a5 100644
--- a/rnd/infra/helm/autogpt_builder/templates/_helpers.tpl
+++ b/rnd/infra/helm/autogpt-builder/templates/_helpers.tpl
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
-{{- define "autogpt_builder.name" -}}
+{{- define "autogpt-builder.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
@@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
-{{- define "autogpt_builder.fullname" -}}
+{{- define "autogpt-builder.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
-{{- define "autogpt_builder.chart" -}}
+{{- define "autogpt-builder.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
-{{- define "autogpt_builder.labels" -}}
-helm.sh/chart: {{ include "autogpt_builder.chart" . }}
-{{ include "autogpt_builder.selectorLabels" . }}
+{{- define "autogpt-builder.labels" -}}
+helm.sh/chart: {{ include "autogpt-builder.chart" . }}
+{{ include "autogpt-builder.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
-{{- define "autogpt_builder.selectorLabels" -}}
-app.kubernetes.io/name: {{ include "autogpt_builder.name" . }}
+{{- define "autogpt-builder.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "autogpt-builder.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
-{{- define "autogpt_builder.serviceAccountName" -}}
+{{- define "autogpt-builder.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
-{{- default (include "autogpt_builder.fullname" .) .Values.serviceAccount.name }}
+{{- default (include "autogpt-builder.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
diff --git a/rnd/infra/helm/autogpt_builder/templates/deployment.yaml b/rnd/infra/helm/autogpt-builder/templates/deployment.yaml
similarity index 86%
rename from rnd/infra/helm/autogpt_builder/templates/deployment.yaml
rename to rnd/infra/helm/autogpt-builder/templates/deployment.yaml
index 1c19a77ac3..cf9ec79019 100644
--- a/rnd/infra/helm/autogpt_builder/templates/deployment.yaml
+++ b/rnd/infra/helm/autogpt-builder/templates/deployment.yaml
@@ -1,16 +1,16 @@
apiVersion: apps/v1
kind: Deployment
metadata:
- name: {{ include "autogpt_builder.fullname" . }}
+ name: {{ include "autogpt-builder.fullname" . }}
labels:
- {{- include "autogpt_builder.labels" . | nindent 4 }}
+ {{- include "autogpt-builder.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
- {{- include "autogpt_builder.selectorLabels" . | nindent 6 }}
+ {{- include "autogpt-builder.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
@@ -18,7 +18,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
- {{- include "autogpt_builder.labels" . | nindent 8 }}
+ {{- include "autogpt-builder.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
@@ -27,7 +27,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
- serviceAccountName: {{ include "autogpt_builder.serviceAccountName" . }}
+ serviceAccountName: {{ include "autogpt-builder.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
diff --git a/rnd/infra/helm/autogpt_builder/templates/hpa.yaml b/rnd/infra/helm/autogpt-builder/templates/hpa.yaml
similarity index 84%
rename from rnd/infra/helm/autogpt_builder/templates/hpa.yaml
rename to rnd/infra/helm/autogpt-builder/templates/hpa.yaml
index f3e5b90e83..92b0732ccc 100644
--- a/rnd/infra/helm/autogpt_builder/templates/hpa.yaml
+++ b/rnd/infra/helm/autogpt-builder/templates/hpa.yaml
@@ -2,14 +2,14 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
- name: {{ include "autogpt_builder.fullname" . }}
+ name: {{ include "autogpt-builder.fullname" . }}
labels:
- {{- include "autogpt_builder.labels" . | nindent 4 }}
+ {{- include "autogpt-builder.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
- name: {{ include "autogpt_builder.fullname" . }}
+ name: {{ include "autogpt-builder.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
diff --git a/rnd/infra/helm/autogpt_builder/templates/ingress.yaml b/rnd/infra/helm/autogpt-builder/templates/ingress.yaml
similarity index 94%
rename from rnd/infra/helm/autogpt_builder/templates/ingress.yaml
rename to rnd/infra/helm/autogpt-builder/templates/ingress.yaml
index 2e0c5f75f7..0c7ed238fb 100644
--- a/rnd/infra/helm/autogpt_builder/templates/ingress.yaml
+++ b/rnd/infra/helm/autogpt-builder/templates/ingress.yaml
@@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}}
-{{- $fullName := include "autogpt_builder.fullname" . -}}
+{{- $fullName := include "autogpt-builder.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
@@ -17,7 +17,7 @@ kind: Ingress
metadata:
name: {{ $fullName }}
labels:
- {{- include "autogpt_builder.labels" . | nindent 4 }}
+ {{- include "autogpt-builder.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
diff --git a/rnd/infra/helm/autogpt_builder/templates/managedcert.yaml b/rnd/infra/helm/autogpt-builder/templates/managedcert.yaml
similarity index 100%
rename from rnd/infra/helm/autogpt_builder/templates/managedcert.yaml
rename to rnd/infra/helm/autogpt-builder/templates/managedcert.yaml
diff --git a/rnd/infra/helm/autogpt-builder/templates/service.yaml b/rnd/infra/helm/autogpt-builder/templates/service.yaml
new file mode 100644
index 0000000000..1303a557cf
--- /dev/null
+++ b/rnd/infra/helm/autogpt-builder/templates/service.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "autogpt-builder.fullname" . }}
+ labels:
+ {{- include "autogpt-builder.labels" . | nindent 4 }}
+ {{- with .Values.service.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.port }}
+ targetPort: {{ .Values.service.targetPort }}
+ protocol: TCP
+ name: http
+ selector:
+ {{- include "autogpt-builder.selectorLabels" . | nindent 4 }}
diff --git a/rnd/infra/helm/autogpt_builder/templates/serviceaccount.yaml b/rnd/infra/helm/autogpt-builder/templates/serviceaccount.yaml
similarity index 70%
rename from rnd/infra/helm/autogpt_builder/templates/serviceaccount.yaml
rename to rnd/infra/helm/autogpt-builder/templates/serviceaccount.yaml
index a50ea11db8..829940e163 100644
--- a/rnd/infra/helm/autogpt_builder/templates/serviceaccount.yaml
+++ b/rnd/infra/helm/autogpt-builder/templates/serviceaccount.yaml
@@ -2,9 +2,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
- name: {{ include "autogpt_builder.serviceAccountName" . }}
+ name: {{ include "autogpt-builder.serviceAccountName" . }}
labels:
- {{- include "autogpt_builder.labels" . | nindent 4 }}
+ {{- include "autogpt-builder.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
diff --git a/rnd/infra/helm/autogpt_builder/templates/tests/test-connection.yaml b/rnd/infra/helm/autogpt-builder/templates/tests/test-connection.yaml
similarity index 53%
rename from rnd/infra/helm/autogpt_builder/templates/tests/test-connection.yaml
rename to rnd/infra/helm/autogpt-builder/templates/tests/test-connection.yaml
index 3ca1ba1119..ab20c848e8 100644
--- a/rnd/infra/helm/autogpt_builder/templates/tests/test-connection.yaml
+++ b/rnd/infra/helm/autogpt-builder/templates/tests/test-connection.yaml
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Pod
metadata:
- name: "{{ include "autogpt_builder.fullname" . }}-test-connection"
+ name: "{{ include "autogpt-builder.fullname" . }}-test-connection"
labels:
- {{- include "autogpt_builder.labels" . | nindent 4 }}
+ {{- include "autogpt-builder.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
@@ -11,5 +11,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
- args: ['{{ include "autogpt_builder.fullname" . }}:{{ .Values.service.port }}']
+ args: ['{{ include "autogpt-builder.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
diff --git a/rnd/infra/helm/autogpt_builder/values.dev.yaml b/rnd/infra/helm/autogpt-builder/values.dev.yaml
similarity index 71%
rename from rnd/infra/helm/autogpt_builder/values.dev.yaml
rename to rnd/infra/helm/autogpt-builder/values.dev.yaml
index d618aa958e..e41d3fd23b 100644
--- a/rnd/infra/helm/autogpt_builder/values.dev.yaml
+++ b/rnd/infra/helm/autogpt-builder/values.dev.yaml
@@ -3,7 +3,7 @@
image:
repository: us-east1-docker.pkg.dev/agpt-dev/agpt-builder-dev/agpt-builder-dev
pullPolicy: Always
- tag: "latest"
+ tag: "fe3d2a9"
serviceAccount:
annotations:
@@ -48,22 +48,8 @@ resources:
cpu: 500m
memory: 512Mi
-livenessProbe:
- httpGet:
- path: /
- port: 3000
- initialDelaySeconds: 30
- periodSeconds: 10
- timeoutSeconds: 5
- failureThreshold: 6
-readinessProbe:
- httpGet:
- path: /
- port: 3000
- initialDelaySeconds: 30
- periodSeconds: 10
- timeoutSeconds: 5
- failureThreshold: 6
+livenessProbe: null
+readinessProbe: null
domain: "dev-builder.agpt.co"
@@ -71,7 +57,7 @@ domain: "dev-builder.agpt.co"
env:
APP_ENV: "dev"
NEXT_PUBLIC_AGPT_SERVER_URL: "http://agpt-server:8000/api"
- GOOGLE_CLIENT_ID: "638488734936-ka0bvq73ub3h4cb6013s3lftsl5l04nu.apps.googleusercontent.com"
+ GOOGLE_CLIENT_ID: ""
GOOGLE_CLIENT_SECRET: ""
- NEXT_PUBLIC_SUPABASE_URL: "https://adfjtextkuilwuhzdjpf.supabase.co"
+ NEXT_PUBLIC_SUPABASE_URL: ""
NEXT_PUBLIC_SUPABASE_ANON_KEY: ""
\ No newline at end of file
diff --git a/rnd/infra/helm/autogpt_builder/values.yaml b/rnd/infra/helm/autogpt-builder/values.yaml
similarity index 100%
rename from rnd/infra/helm/autogpt_builder/values.yaml
rename to rnd/infra/helm/autogpt-builder/values.yaml
diff --git a/rnd/infra/helm/autogpt_builder/templates/service.yaml b/rnd/infra/helm/autogpt_builder/templates/service.yaml
deleted file mode 100644
index 050b932111..0000000000
--- a/rnd/infra/helm/autogpt_builder/templates/service.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: {{ include "autogpt_builder.fullname" . }}
- labels:
- {{- include "autogpt_builder.labels" . | nindent 4 }}
-spec:
- type: {{ .Values.service.type }}
- ports:
- - port: {{ .Values.service.port }}
- targetPort: http
- protocol: TCP
- name: http
- selector:
- {{- include "autogpt_builder.selectorLabels" . | nindent 4 }}