Skip to content

Commit

Permalink
WIP: Removed Extra field
Browse files Browse the repository at this point in the history
  • Loading branch information
afek854 committed Sep 9, 2024
1 parent 08d18d2 commit d8b79ec
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 102 deletions.
1 change: 0 additions & 1 deletion pkg/apis/softwarecomposition/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ type ApplicationProfileContainer struct {
Syscalls []string
SeccompProfile SingleSeccompProfile
Endpoints []HTTPEndpoint
Extra map[string][]map[string]string
}

type ExecCalls struct {
Expand Down
3 changes: 1 addition & 2 deletions pkg/apis/softwarecomposition/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ type ApplicationProfileContainer struct {
SeccompProfile SingleSeccompProfile `json:"seccompProfile,omitempty"`
// +patchMergeKey=endpoint
// +patchStrategy=merge
Endpoints []HTTPEndpoint `json:"endpoints" patchStrategy:"merge" patchMergeKey:"endpoint"`
Extra map[string][]map[string]string `json:"extra,omitempty"`
Endpoints []HTTPEndpoint `json:"endpoints" patchStrategy:"merge" patchMergeKey:"endpoint"`
}

type ExecCalls struct {
Expand Down

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

23 changes: 0 additions & 23 deletions pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go

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

23 changes: 0 additions & 23 deletions pkg/apis/softwarecomposition/zz_generated.deepcopy.go

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

30 changes: 0 additions & 30 deletions pkg/generated/openapi/zz_generated.openapi.go

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

1 change: 0 additions & 1 deletion pkg/registry/file/applicationprofile_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@ func deflateApplicationProfileContainer(container softwarecomposition.Applicatio
Syscalls: mapset.Sorted(mapset.NewThreadUnsafeSet(container.Syscalls...)),
SeccompProfile: container.SeccompProfile,
Endpoints: endpoints,
Extra: container.Extra,
}
}
20 changes: 0 additions & 20 deletions pkg/registry/file/applicationprofile_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ func TestApplicationProfileProcessor_PreSave(t *testing.T) {
Headers: map[string][]string{},
},
},
Extra: map[string][]map[string]string{
"metadata": {
{"version": "v1"},
{"environment": "production"},
},
"security": {
{"encryption": "AES-256"},
{"audit": "enabled"},
},
},
},
},
},
Expand Down Expand Up @@ -144,16 +134,6 @@ func TestApplicationProfileProcessor_PreSave(t *testing.T) {
Headers: map[string][]string{},
},
},
Extra: map[string][]map[string]string{
"metadata": {
{"version": "v1"},
{"environment": "production"},
},
"security": {
{"encryption": "AES-256"},
{"audit": "enabled"},
},
},
},
},
},
Expand Down

0 comments on commit d8b79ec

Please sign in to comment.