Skip to content

Commit

Permalink
APIGOV-28713 - set dataplane type in root init
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollins-axway committed Sep 6, 2024
1 parent 8a025de commit 1eff9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discovery/pkg/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"github.com/Axway/agent-sdk/pkg/apic"
corecmd "github.com/Axway/agent-sdk/pkg/cmd"
corecfg "github.com/Axway/agent-sdk/pkg/config"
"github.com/Axway/agent-sdk/pkg/migrate"
Expand All @@ -25,6 +26,9 @@ func init() {
corecfg.DiscoveryAgent, // Agent Type (Discovery or Traceability)
)

// set the dataplane type that will be added to the agent spec
corecfg.AgentDataPlaneType = apic.Apigee.String()

// Get the root command properties and bind the config property in YAML definition
rootProps := RootCmd.GetProperties()
config.AddProperties(rootProps)
Expand Down
4 changes: 4 additions & 0 deletions traceability/pkg/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"github.com/Axway/agent-sdk/pkg/apic"
corecmd "github.com/Axway/agent-sdk/pkg/cmd"
corecfg "github.com/Axway/agent-sdk/pkg/config"

Expand Down Expand Up @@ -39,6 +40,9 @@ func init() {
corecfg.TraceabilityAgent, // Agent Type (Discovery or Traceability)
)

// set the dataplane type that will be added to the agent spec
corecfg.AgentDataPlaneType = apic.Apigee.String()

// Get the root command properties and bind the config property in YAML definition
rootProps := RootCmd.GetProperties()
config.AddProperties(rootProps)
Expand Down

0 comments on commit 1eff9a8

Please sign in to comment.