Skip to content

Commit a303c88

Browse files
committed
cleanup
Signed-off-by: Kyle Quest <[email protected]>
1 parent f2cd62b commit a303c88

File tree

23 files changed

+38
-38
lines changed

23 files changed

+38
-38
lines changed

pkg/app/master/command/build/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const (
156156
FlagCBONetwork = "cbo-network"
157157
FlagCBOCacheFrom = "cbo-cache-from"
158158

159-
//Experimenal flags
159+
//Experimental flags
160160
FlagObfuscateMetadata = "obfuscate-metadata"
161161
FlagObfuscateAppPackageNames = "obfuscate-app-package-names"
162162
)
@@ -172,7 +172,7 @@ const (
172172

173173
FlagPathPermsUsage = "Set path permissions in optimized image"
174174
FlagPathPermsFileUsage = "File with path permissions to set"
175-
FlagPreservePathUsage = "Keep path from orignal image in its initial state (changes to the selected container image files when it runs will be discarded)"
175+
FlagPreservePathUsage = "Keep path from original image in its initial state (changes to the selected container image files when it runs will be discarded)"
176176
FlagPreservePathFileUsage = "File with paths to keep from original image in their original state (changes to the selected container image files when it runs will be discarded)"
177177
FlagIncludePathUsage = "Keep path from original image"
178178
FlagIncludePathFileUsage = "File with paths to keep from original image"

pkg/app/master/command/build/kubernetes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (h *kubeHandler) Handle(
210210
opts.OutputImagePath,
211211
opts.AdditionalTags,
212212
opts.CBOpts,
213-
nil, // TODO: overrrides
213+
nil, // TODO: overrides
214214
nil, // TODO: imageOverrideSelectors,
215215
nil, // TODO: instructions,
216216
opts.DoDeleteFatImage,

pkg/app/master/command/run/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func OnCommand(
150150
for {
151151
select {
152152
case evt := <-containerEventCh:
153-
logger.Tracef("Exection Event: name=%s", evt.Event)
153+
logger.Tracef("Execution Event: name=%s", evt.Event)
154154
switch evt.Event {
155155
case container.XEExitedCrash:
156156
xc.Out.Info("target.container.event",

pkg/app/master/command/xray/cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ func parseDetectUTF8(raw string) (*dockerimage.UTF8Detector, error) {
591591
return nil, fmt.Errorf("malformed find utf8: %s", raw)
592592
}
593593
outTarget = parts[0]
594-
_ = parts[1] // TODO implemement path pattern matcher
594+
_ = parts[1] // TODO implement path pattern matcher
595595
maxSizeBytes := parts[2]
596596
var err error
597597
detector.MaxSizeBytes, err = strconv.Atoi(maxSizeBytes)
@@ -604,8 +604,8 @@ func parseDetectUTF8(raw string) (*dockerimage.UTF8Detector, error) {
604604
return nil, fmt.Errorf("malformed find utf8: %s", raw)
605605
}
606606
outTarget = parts[0]
607-
_ = parts[1] // TODO implemement path pattern matcher
608-
_ = parts[2] // TODO implemement data regex matcher
607+
_ = parts[1] // TODO implement path pattern matcher
608+
_ = parts[2] // TODO implement data regex matcher
609609
maxSizeBytes := parts[3]
610610
var err error
611611
detector.MaxSizeBytes, err = strconv.Atoi(maxSizeBytes)

pkg/app/master/kubernetes/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (c *Client) Delete(ctx context.Context, info *resource.Info) error {
9595
}
9696

9797
// ResourceBuilderFunc is a helper function to avoid
98-
// passing KuberneteOptions through unrelated code.
98+
// passing KubernetesOptions through unrelated code.
9999
type ResourceBuilderFunc func() *resource.Builder
100100

101101
func NewResourceBuilder(kubeOpts config.KubernetesOptions) *resource.Builder {

pkg/app/master/probe/http/custom_probe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ probeLoop:
650650
if port == defaultFastCGIPortStr && cmd.FastCGI == nil {
651651
p.logger.Debugf("FastCGI default port (%s) used, setting up HTTP probe FastCGI wrapper defaults", port)
652652

653-
// Typicall the entrypoint into a PHP app.
653+
// Typically the entrypoint into a PHP app.
654654
if cmd.Resource == "/" {
655655
cmd.Resource = "/index.php"
656656
}

pkg/app/master/probe/http/swagger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func isOpenAPI(data []byte) bool {
160160
}
161161

162162
func apiSpecPrefix(spec *openapi3.T) (string, error) {
163-
//for now get the api prefix from the first server struc
163+
//for now get the api prefix from the first server struct
164164
//later, support multiple prefixes if there's more than one server struct
165165
var prefix string
166166
for _, sinfo := range spec.Servers {

pkg/app/sensor/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func Run() {
200200
log.Info("sensor: Instrumented containers require root and ALL capabilities enabled. Example: `docker run --user root --cap-add ALL app:v1-instrumented`")
201201
}
202202
} else {
203-
log.Info("sensor: run finished succesfully")
203+
log.Info("sensor: run finished successfully")
204204
}
205205

206206
exe.Close()

pkg/app/sensor/app_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
"sensor: ver=",
3131
"sensor: creating monitors...",
3232
"sensor: starting monitors...",
33-
"sensor: run finished succesfully",
33+
"sensor: run finished successfully",
3434
}
3535

3636
sensorLifecycleHookSequence = []string{

pkg/app/sensor/artifact/artifact.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ type Processor interface {
343343
ArtifactsDir() string
344344

345345
// Enumerate all files under a given root (used later on to tell the files
346-
// that were created during probing and the existed files appart).
346+
// that were created during probing and the existed files apart).
347347
GetCurrentPaths(root string, excludes []string) (map[string]struct{}, error)
348348

349349
// Create the artifacts folder, preserve some files, etc.
@@ -1525,7 +1525,7 @@ func (ref *store) saveSSHClient() {
15251525
}
15261526

15271527
for _, bpath := range binArtifacts {
1528-
bfpaths, err := resloveLink(bpath)
1528+
bfpaths, err := resolveLink(bpath)
15291529
if err != nil {
15301530
logger.Debugf("error resolving link - %s (%v)", bpath, err)
15311531
// still add the path...
@@ -1584,7 +1584,7 @@ func (p *store) saveDistroInfo() {
15841584
}
15851585

15861586
pathMap[fp] = struct{}{}
1587-
fpaths, err := resloveLink(fp)
1587+
fpaths, err := resolveLink(fp)
15881588
if err != nil {
15891589
logger.Debugf("error resolving link - %s", fp)
15901590
continue
@@ -1683,7 +1683,7 @@ func (p *store) saveOSLibsNetwork() {
16831683
continue
16841684
}
16851685

1686-
fpaths, err := resloveLink(fpath)
1686+
fpaths, err := resolveLink(fpath)
16871687
if err != nil {
16881688
logger.Debugf("error resolving link - %s", fpath)
16891689
continue
@@ -1712,7 +1712,7 @@ func (p *store) saveOSLibsNetwork() {
17121712
}
17131713

17141714
for _, bpath := range binArtifacts {
1715-
bfpaths, err := resloveLink(bpath)
1715+
bfpaths, err := resolveLink(bpath)
17161716
if err != nil {
17171717
logger.Debugf("error resolving link - %s", bpath)
17181718
continue
@@ -1750,7 +1750,7 @@ func (p *store) saveOSLibsNetwork() {
17501750
}
17511751
}
17521752

1753-
func resloveLink(fpath string) ([]string, error) {
1753+
func resolveLink(fpath string) ([]string, error) {
17541754
finfo, err := os.Lstat(fpath)
17551755
if err != nil {
17561756
return nil, err
@@ -1860,7 +1860,7 @@ func (p *store) saveCertsData() {
18601860
logger.Debugf("copyDirs: fsutil.CopySymlinkFile(%v,%v) error - %v", fname, dstPath, err)
18611861
}
18621862
} else {
1863-
logger.Debugf("copyDir: unexpected obect type - %s", fname)
1863+
logger.Debugf("copyDir: unexpected object type - %s", fname)
18641864
}
18651865
}
18661866
}

0 commit comments

Comments
 (0)