summaryrefslogtreecommitdiff
path: root/pkg/bindings/internal
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-31 06:28:19 -0400
committerGitHub <noreply@github.com>2022-08-31 06:28:19 -0400
commit7503c5544d506826e2d8602d95433eef98208e83 (patch)
tree7990ba25accecf929e57b27390ece033995fdcc1 /pkg/bindings/internal
parentac7f4ebb6a1fd3afbaea5e5ede9da0e341c4cdfe (diff)
parentcfdca829382b83081a897ae36c4196678b52a9b4 (diff)
downloadpodman-7503c5544d506826e2d8602d95433eef98208e83.tar.gz
podman-7503c5544d506826e2d8602d95433eef98208e83.tar.bz2
podman-7503c5544d506826e2d8602d95433eef98208e83.zip
Merge pull request #15491 from marshall-lee/bindings-schema-ignore
Mark some of the option fields as ignored in pkg/bindings
Diffstat (limited to 'pkg/bindings/internal')
-rw-r--r--pkg/bindings/internal/util/util.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/bindings/internal/util/util.go b/pkg/bindings/internal/util/util.go
index f8f99d6c1..52ce14738 100644
--- a/pkg/bindings/internal/util/util.go
+++ b/pkg/bindings/internal/util/util.go
@@ -74,6 +74,9 @@ func ToParams(o interface{}) (url.Values, error) {
}
paramName := fieldName
if pn, ok := sType.Field(i).Tag.Lookup("schema"); ok {
+ if pn == "-" {
+ continue
+ }
paramName = pn
}
switch {