Skip to content
Merged
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
9 changes: 1 addition & 8 deletions sdk/kubernetes/exposed-monopod.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ func NewExposedMonopod(ctx *pulumi.Context, name string, args *ExposedMonopodArg
return emp, nil
}

func (emp *ExposedMonopod) defaults(args *ExposedMonopodArgsRaw) *ExposedMonopodArgsRaw {
if args == nil {
args = &ExposedMonopodArgsRaw{}
}
return args
}

func (emp *ExposedMonopod) check(args ExposedMonopodArgsOutput) error {
// In-depth checks
wg := sync.WaitGroup{}
Expand All @@ -91,7 +84,7 @@ func (emp *ExposedMonopod) check(args ExposedMonopodArgsOutput) error {

// Then run the subset if no error yet
for _, p := range c.Ports {
if !slices.Contains([]ExposeType{ExposeNodePort, ExposeIngress}, p.ExposeType) {
if !slices.Contains([]ExposeType{ExposeNodePort, ExposeIngress, ExposeLoadBalancer}, p.ExposeType) {
err = multierr.Append(err, fmt.Errorf("unsupported expose type %s", p.ExposeType))
}
}
Expand Down
Loading