Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <[email protected]>
  • Loading branch information
jamsman94 committed Nov 29, 2024
1 parent 8c29a26 commit 7cf7edb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/microservice/aslan/core/common/service/sae/sae.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ func CreateKVMap(kv *string) (map[string]*commonmodels.SAEKV, error) {
Name: env.Name,
Value: env.Value,
//ValueFrom: env.ValueFrom,
ConfigMapID: env.ValueFrom.ConfigMapRef.ConfigMapID,
Key: env.ValueFrom.ConfigMapRef.Key,

}

if env.ValueFrom != nil && env.ValueFrom.ConfigMapRef != nil {
resp[env.Name].ConfigMapID = env.ValueFrom.ConfigMapRef.ConfigMapID
resp[env.Name].Key = env.ValueFrom.ConfigMapRef.Key
}
}

Expand Down

0 comments on commit 7cf7edb

Please sign in to comment.