Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

allow appname to be 50 char length #177

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/cli/klothomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ func (km KlothoMain) run(cmd *cobra.Command, args []string) (err error) {

if appCfg.AppName == "" {
return errors.New("'app' required")
} else if len(appCfg.AppName) > 35 {
analyticsClient.Error("Klotho parameter check failed. 'app' must be less than 35 characters in length")
return fmt.Errorf("'app' must be less than 35 characters in length. 'app' was %s", appCfg.AppName)
} else if len(appCfg.AppName) > 50 {
analyticsClient.Error("Klotho parameter check failed. 'app' must be less than 50 characters in length")
return fmt.Errorf("'app' must be less than 50 characters in length. 'app' was %s", appCfg.AppName)
}
match, err := regexp.MatchString(`^[\w-.:/]+$`, appCfg.AppName)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const createTargetBinding = (
dependsOn
) => {
return new pulumi_k8s.yaml.ConfigFile(
`${execUnit}-tgb`,
`${execUnit}-${port}-tgb`,
{
file: './iac/k8s/add_ons/alb_controller/target_group_binding.yaml',
transformations: [
Expand Down