Skip to content

Commit

Permalink
docs/builder.md: remove BuilderByTarget references
Browse files Browse the repository at this point in the history
The 'Target name' subsection is old. BuilderByTarget isn't used anymore; it's now 'byTarget' in target.go. Add a hyperlink for clarity and accessibility.

Signed-off-by: Enzo Venturi <[email protected]>
  • Loading branch information
nnzv authored and poiana committed May 23, 2024
1 parent a170df2 commit 508fb74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Your builder will need a constant for the target it implements. Usually that con
can just be the ID of the distribution you are implementing, as taken reading `/etc/os-release` file.
A builder can implement more than one target at time. For example, the minikube builder is just a vanilla one.

Once you have the constant, you will need to add it to the `BuilderByTarget` map.
Once you have the constant, you will need to add it to the [byTarget](https://github.com/falcosecurity/driverkit/blob/master/pkg/driverbuilder/builder/target.go) map.
Open your file and you will need to add something like this:

```go
Expand All @@ -48,7 +48,7 @@ type archLinux struct {
}

func init() {
BuilderByTarget[TargetTypeArchLinux] = &archLinux{}
byTarget[TargetTypeArchLinux] = &archLinux{}
}
```

Expand Down Expand Up @@ -145,4 +145,4 @@ can also support collecting the new builders kernel versions and header package
for the new builder are automatically built by [test-infra](https://github.com/falcosecurity/test-infra). If required, add a feature request
for support for the new builder on the kernel-crawler repository.

> **NOTE**: be sure that the crawler you are going to add is interesting for the community as a whole.
> **NOTE**: be sure that the crawler you are going to add is interesting for the community as a whole.

0 comments on commit 508fb74

Please sign in to comment.