Skip to content

Commit

Permalink
add apply replacments for dependency object (#41)
Browse files Browse the repository at this point in the history
adding apply replacement for namespace and name of the dependency
  • Loading branch information
henderiw authored Jun 27, 2023
1 parent 89bdfd2 commit 526b287
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg-example-amf-bp/apply-replacements-namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ replacements:
kind: DataNetwork
fieldPaths:
- metadata.annotations.[specializer.nephio.org/namespace]
- select:
kind: Dependency
fieldPaths:
- metadata.annotations.[specializer.nephio.org/namespace]
7 changes: 7 additions & 0 deletions pkg-example-amf-bp/apply-replacements-owner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ replacements:
options:
delimiter: '-'
index: 1
- select:
kind: Dependency
fieldPaths:
- metadata.annotations.[specializer.nephio.org/owner]
options:
delimiter: '-'
index: 1

0 comments on commit 526b287

Please sign in to comment.