Skip to content

Commit

Permalink
Add explicit string type for Set
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Vasquez <[email protected]>
  • Loading branch information
rafvasq authored and ckadner committed Sep 13, 2023
1 parent b981f44 commit c156925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/servingruntime_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ func checkName(name string, internalNames sets.Set[string], logStr string) error
return nil
}

var internalContainerNames = sets.New(
var internalContainerNames = sets.New[string](
modelmesh.ModelMeshContainerName,
modelmesh.RESTProxyContainerName,
modelmesh.PullerContainerName,
)

var internalOnlyVolumeMounts = sets.New(
var internalOnlyVolumeMounts = sets.New[string](
modelmesh.ConfigStorageMount,
modelmesh.EtcdVolume,
modelmesh.InternalConfigMapName,
Expand Down

0 comments on commit c156925

Please sign in to comment.