Skip to content

Commit

Permalink
updating the unit tests by adding the new type and kind from drafy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidya2606 committed Oct 15, 2024
1 parent 22910c2 commit 0e8b1fb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkg/config/draftconfig_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import (
var allTemplates = map[string]*DraftConfig{}

var validTemplateTypes = map[string]bool{
"manifest": true,
"dockerfile": true,
"workflow": true,
"deployment": true,
"manifest": true,
"dockerfile": true,
"workflow": true,
"deployment": true,
"podDisruptionBudget": true,
}

var validVariableTypes = map[string]bool{
Expand Down Expand Up @@ -46,6 +47,11 @@ var validVariableKinds = map[string]bool{
"port": true,
"repositoryBranch": true,
"workflowName": true,
"resourceName": true,
"part-of": true,
"replicaCount": true,
"scalingResourceType": true,
"autoscaling": true,
}

/*
Expand Down

0 comments on commit 0e8b1fb

Please sign in to comment.