Skip to content

Commit

Permalink
Merge pull request #156 from kubescape/appprofile
Browse files Browse the repository at this point in the history
add image tag and id to AP
  • Loading branch information
matthyx authored Sep 25, 2024
2 parents 42262c8 + 6564b95 commit 6afb8a4
Show file tree
Hide file tree
Showing 7 changed files with 681 additions and 572 deletions.
2 changes: 2 additions & 0 deletions pkg/apis/softwarecomposition/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ type ApplicationProfileContainer struct {
Syscalls []string
SeccompProfile SingleSeccompProfile
Endpoints []HTTPEndpoint
ImageID string
ImageTag string
}

type ExecCalls struct {
Expand Down
1,223 changes: 652 additions & 571 deletions pkg/apis/softwarecomposition/v1beta1/generated.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions pkg/apis/softwarecomposition/v1beta1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/apis/softwarecomposition/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ type ApplicationProfileContainer struct {
// +patchStrategy=merge
// +patchMergeKey=endpoint
Endpoints []HTTPEndpoint `json:"endpoints" patchStrategy:"merge" patchMergeKey:"endpoint" protobuf:"bytes,7,rep,name=endpoints"`
ImageID string `json:"imageID" protobuf:"bytes,8,opt,name=imageID"`
ImageTag string `json:"imageTag" protobuf:"bytes,9,opt,name=imageTag"`
}

type ExecCalls struct {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/registry/file/applicationprofile_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ func deflateApplicationProfileContainer(container softwarecomposition.Applicatio
Syscalls: mapset.Sorted(mapset.NewThreadUnsafeSet(container.Syscalls...)),
SeccompProfile: container.SeccompProfile,
Endpoints: endpoints,
ImageTag: container.ImageTag,
ImageID: container.ImageID,
}
}

0 comments on commit 6afb8a4

Please sign in to comment.