MCPcopy Create free account
hub / github.com/containerd/nerdctl / warnUnknownFields

Function warnUnknownFields

pkg/composer/serviceparser/serviceparser.go:56–205  ·  view source on GitHub ↗
(svc types.ServiceConfig)

Source from the content-addressed store, hash-verified

54const Separator = "-"
55
56func warnUnknownFields(svc types.ServiceConfig) {
57 if unknown := reflectutil.UnknownNonEmptyFields(&svc,
58 "Name",
59 "Annotations",
60 "Build",
61 "BlkioConfig",
62 "CapAdd",
63 "CapDrop",
64 "CPUS",
65 "CPUSet",
66 "CPUShares",
67 "Command",
68 "Configs",
69 "ContainerName",
70 "DependsOn",
71 "Deploy",
72 "Devices",
73 "Dockerfile", // handled by the loader (normalizer)
74 "DNS",
75 "DNSSearch",
76 "DNSOpts",
77 "Entrypoint",
78 "Environment",
79 "Extends", // handled by the loader
80 "Extensions",
81 "ExtraHosts",
82 "HealthCheck",
83 "Hostname",
84 "Image",
85 "Init",
86 "Labels",
87 "Logging",
88 "MemLimit",
89 "Networks",
90 "NetworkMode",
91 "Pid",
92 "PidsLimit",
93 "Platform",
94 "Ports",
95 "Privileged",
96 "PullPolicy",
97 "ReadOnly",
98 "Restart",
99 "Runtime",
100 "Secrets",
101 "Scale",
102 "SecurityOpt",
103 "ShmSize",
104 "StopGracePeriod",
105 "StopSignal",
106 "Sysctls",
107 "StdinOpen",
108 "Tmpfs",
109 "Tty",
110 "User",
111 "WorkingDir",
112 "Volumes",
113 "Ulimits",

Callers 1

ParseFunction · 0.85

Calls 1

UnknownNonEmptyFieldsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…