Skip to content

Commit

Permalink
Include secret type when building resources from config snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancoleman committed Feb 15, 2023
1 parent 514fb25 commit 8312d33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agent/xds/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func NewResourceGenerator(

func (g *ResourceGenerator) AllResourcesFromSnapshot(cfgSnap *proxycfg.ConfigSnapshot) (map[string][]proto.Message, error) {
all := make(map[string][]proto.Message)
// TODO Add xdscommon.SecretType
for _, typeUrl := range []string{xdscommon.ListenerType, xdscommon.RouteType, xdscommon.ClusterType, xdscommon.EndpointType} {
for _, typeUrl := range []string{xdscommon.ListenerType, xdscommon.RouteType, xdscommon.ClusterType, xdscommon.EndpointType, xdscommon.SecretType} {
res, err := g.resourcesFromSnapshot(typeUrl, cfgSnap)
if err != nil {
return nil, fmt.Errorf("failed to generate xDS resources for %q: %v", typeUrl, err)
Expand Down

0 comments on commit 8312d33

Please sign in to comment.