Skip to content

Commit 98017e1

Browse files
committed
feat: make environment name specifiable
1 parent be77dd8 commit 98017e1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

internal/config/types.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ type BaseConfig struct {
3434
AuthSignIn string `yaml:"authSignIn,omitempty" validate:"omitempty,min=1,url"`
3535

3636
// DevENV wide settings
37-
Namespace string `yaml:"namespace,omitempty" validate:"omitempty,min=1,max=63,hostname"`
37+
Namespace string `yaml:"namespace,omitempty" validate:"omitempty,min=1,max=63,hostname"`
38+
EnvironmentName string `yaml:"environmentName,omitempty" validate:"omitempty,min=1,max=63,hostname"`
3839
}
3940

4041
// DevEnvConfig represents the complete configuration for a developer environment.
@@ -112,8 +113,9 @@ func NewBaseConfigWithDefaults() BaseConfig {
112113
Python: []string{}, // Empty slice - no default packages
113114
APT: []string{}, // Empty slice - no default packages
114115
},
115-
Volumes: []VolumeMount{}, // Empty slice - no default volumes
116-
Namespace: "devenv", // Default namespace
116+
Volumes: []VolumeMount{}, // Empty slice - no default volumes
117+
Namespace: "devenv", // Default namespace
118+
EnvironmentName: "development", // Default environment name
117119
}
118120
}
119121

internal/templates/template_files/system/manifests/namespace.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v1
22
kind: Namespace
33
metadata:
44
name: {{.Namespace}}
5-
environment: development
5+
environment: {{.EnvironmentName}}
66
annotations:
77
description: "Namespace for DevENV resources"

0 commit comments

Comments
 (0)