Releases: kubescape/storage
Release v0.0.59
User description
Sorry, we do not accept changes directly against this repository. Please see
CONTRIBUTING.md for information on where and how to contribute instead.
Type
Bug fix
Description
- Added a condition in
syfttypes.go
andv1beta1/syfttypes.go
to return nil if theType
field is empty, which can occur in some cases such as when the object is returned from the watcher. - Updated the required fields for several schemas in
zz_generated.openapi.go
, removing some previously required fields. - Updated the version of the
github.com/kubescape/k8s-interface
package ingo.mod
and updated the corresponding checksums ingo.sum
.
Changes walkthrough
Relevant files | |||||||
---|---|---|---|---|---|---|---|
Bug fix |
| ||||||
Dependencies |
|
✨ Usage guide:
Overview:
The describe
tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.
When commenting, to edit configurations related to the describe tool (pr_description
section), use the following template:
/describe --pr_description.some_config1=... --pr_description.some_config2=...
With a configuration file, use the following template:
[pr_description]
some_config1=...
some_config2=...
Enabling\disabling automation
meaning the
the tool will replace every marker of the form
Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all. |
Custom labelsThe default labels of the If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
The list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases. |
Utilizing extra instructionsThe Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Notice that the general structure of the description is fixed, and cannot be changed. Extra instructions can change the content or style of each sub-section of the PR description. Examples for extra instructions:
Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable. |
More PR-Agent commands
|
Release v0.0.58
User description
Sorry, we do not accept changes directly against this repository. Please see
CONTRIBUTING.md for information on where and how to contribute instead.
Type
Enhancement
Description
- Added a new file
labels.go
that contains a map of labels that should be ignored and a function to check if a label is in the ignore list. - Modified the
networkpolicy.go
file to include a call to theremoveLabels
function, which removes ignored labels from thePodSelector
in bothgenerateEgressRule
andgenerateIngressRule
functions. TheremoveLabels
function was also added, which removes labels from a given map if they are in the ignore list. - Updated the
networkpolicy_test.go
file to include ignored labels in the test cases for theTestGenerateNetworkPolicy
function.
Changes walkthrough
Relevant files | |||||
---|---|---|---|---|---|
Enhancement |
| ||||
Tests |
|
✨ Usage guide:
Overview:
The describe
tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.
When commenting, to edit configurations related to the describe tool (pr_description
section), use the following template:
/describe --pr_description.some_config1=... --pr_description.some_config2=...
With a configuration file, use the following template:
[pr_description]
some_config1=...
some_config2=...
Enabling\disabling automation
meaning the
the tool will replace every marker of the form
Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all. |
Custom labelsThe default labels of the If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
The list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases. |
Utilizing extra instructionsThe Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Notice that the general structure of the description is fixed, and cannot be changed. Extra instructions can change the content or style of each sub-section of the PR description. Examples for extra instructions:
Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable. |
More PR-Agent commands
|
See the describe usage page for a comprehensive guide on using this tool.
Release v0.0.57
Type
Enhancement
Description
This PR introduces changes to the way metadata is handled within the pkg/registry/file/storage.go
file. The main changes include:
- Replacing the
out
parameter withmetaOut
in several functions to store only metadata instead of the entire object. - Updating the
watchDispatcher
calls to usemetaOut
instead ofobj
orout
. - Modifying the
writeFiles
,Create
,Delete
, andGuaranteedUpdate
functions to accommodate the above changes.
Changes walkthrough
Relevant files | |||
---|---|---|---|
Enhancement |
|
✨ Usage guide:
Overview:
The describe
tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.
When commenting, to edit configurations related to the describe tool (pr_description
section), use the following template:
/describe --pr_description.some_config1=... --pr_description.some_config2=...
With a configuration file, use the following template:
[pr_description]
some_config1=...
some_config2=...
Enabling\disabling automation
meaning the
the tool will replace every marker of the form
Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all. |
Custom labelsThe default labels of the If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
The list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases. |
Utilizing extra instructionsThe Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Notice that the general structure of the description is fixed, and cannot be changed. Extra instructions can change the content or style of each sub-section of the PR description. Examples for extra instructions:
Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable. |
More PR-Agent commands
|
See the describe usage page for a comprehensive guide on using this tool.
Release v0.0.56
User description
Sorry, we do not accept changes directly against this repository. Please see
CONTRIBUTING.md for information on where and how to contribute instead.
Type
Enhancement
Description
- Refactored the
GenerateNetworkPolicy
function innetworkpolicy.go
to use thev1beta1
version ofNetworkNeighbors
andKnownServer
. The function now converts these objects to theirv1
counterparts, generates the network policy using thev1
objects, and then converts the generated policy back tov1beta1
. - Added the functions
convertGeneratedNetworkPolicy
,convertNetworkNeighbors
, andconvertKnownServersList
to handle these conversions. - Updated the test
TestGeneratedNetworkPolicyStorage_Get
ingeneratednetworkpolicy_test.go
to reflect the changes in theGeneratedNetworkPolicy
object. TheAPIVersion
has been updated fromspdx.softwarecomposition.kubescape.io/v1beta1
tospdx.softwarecomposition.kubescape.io
. - Updated the import paths for
softwarecomposition
andnetworkpolicy
ingeneratednetworkpolicy.go
to reflect the changes in the package structure.
Changes walkthrough
Relevant files | |||
---|---|---|---|
Enhancement |
| ||
Tests |
| ||
Miscellaneous |
|
✨ Usage guide:
Overview:
The describe
tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.
When commenting, to edit configurations related to the describe tool (pr_description
section), use the following template:
/describe --pr_description.some_config1=... --pr_description.some_config2=...
With a configuration file, use the following template:
[pr_description]
some_config1=...
some_config2=...
Enabling\disabling automation
meaning the
the tool will replace every marker of the form
Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all. |
Custom labelsThe default labels of the If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
The list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases. |
More PR-Agent commands
|
See the describe usage page for a comprehensive guide on using this tool.
Release v0.0.53
Type
bug_fix, enhancement
Description
- The cleanup interval for resources is now configurable through an environment variable. If the environment variable is not set or cannot be parsed, a default value of 24 hours is used.
- The cleanup handler's logging has been improved to include the cleanup interval when a cleanup task starts and to log deletions at the debug level.
- The metadata loading function has been updated to also load labels from the metadata file.
- The function to delete resources by template hash or wlid has been updated to look for the template hash in the labels instead of the annotations.
- The list of workloads to cleanup has been reduced to only include cronjob, daemonset, deployment, job, pod, replicaset, and statefulset.
PR changes walkthrough
Relevant files | |||
---|---|---|---|
Configuration changes | 1 files
| ||
Bug_fix | 1 files
| ||
Enhancement | 1 files
|
Release v0.0.47
Merge IP addresses by ports in generated NP
Release v0.0.44
Type
Tests
Description
This PR introduces enhancements in the tests for the Vulnerability Summary Storage. The changes include:
- Addition of new test cases for the Create function in the Vulnerability Summary Storage implementation.
- Improvement in the structure of the test cases by adding blank lines for better readability.
PR changes walkthrough
Relevant files | |||
---|---|---|---|
Tests | 1 files
|
Release v0.0.42
PR Type:
Refactoring, Enhancement
PR Description:
This PR enhances the KnownServers
Custom Resource Definition (CRD) to support a list of KnownServerEntry
objects. The changes include:
- Refactoring the
KnownServers
CRD toKnownServer
which now holds a list ofKnownServerEntry
objects. - Updating the OpenAPI definitions to reflect the changes in the CRD.
- Modifying the
generateNetworkPolicy
function and related functions to work with the updated CRD. - Updating the unit tests to validate the new functionality.
PR Main Files Walkthrough:
files:
pkg/generated/openapi/zz_generated.openapi.go
: Updated the OpenAPI definitions to reflect the changes in the KnownServer
CRD. This includes adding definitions for KnownServer
, KnownServerEntry
, and KnownServerList
.
pkg/registry/file/generatednetworkpolicy.go
: Updated the generateNetworkPolicy
function and related functions to work with the updated KnownServer
CRD. This includes changes in the function parameters and the logic to handle the new structure of KnownServer
.
pkg/registry/file/generatednetworkpolicy_test.go
: Updated the unit tests to validate the new functionality of KnownServer
. This includes changes in the test data to reflect the new structure of KnownServer
.
pkg/generated/informers/externalversions/softwarecomposition/v1beta1/interface.go
: Added a KnownServerInformer
to the versioned informer for the softwarecomposition
API group.
pkg/apis/softwarecomposition/v1beta1/network_types.go
: Updated the KnownServer
type definition to include a list of KnownServerEntry
objects.
User Description:
Support KnownServer
CRD. This PR fixes the tests and generation of network policies according to changes made on this CRD. The main change is that the old struct held a single object on the internal list, and the new one hold a list of objects (a list of KnownServerEntry
), as defined on the design doc.
There is also a new test which verifies that this new list works as expected.
Release v0.0.39
PR Type:
Refactoring
PR Description:
This PR includes several changes:
- The
GenerateNetworkPolicy
function has been moved to a separate package (networkpolicy
) and made public. - Workload labels have been added to the
NetworkPolicy
object inside theGeneratedNetworkPolicy
CRD. - A test has been added to check that labels are added successfully.
PR Main Files Walkthrough:
files:
pkg/registry/file/generatednetworkpolicy.go
: TheGenerateNetworkPolicy
function calls have been updated to use the new package location.pkg/apis/softwarecomposition/networkpolicy/networkpolicy.go
: "This is a new file where theGenerateNetworkPolicy
function has been moved. The function now includes the addition of workload labels to theNetworkPolicy
object. It also includes the generation of ingress and egress rules for the network policy."pkg/apis/softwarecomposition/networkpolicy/networkpolicy_test.go
: This new file likely contains tests for theGenerateNetworkPolicy
function, although the specific changes are not shown in the diff.
User Description:
- Add workload labels to the
NetworkPolicy
object insideGeneratedNetworkPolicy
CRD - Move
GenerateNetworkPolicy
to a separate package and make it public (as it is supposed to be used by other clients) - Add one test to check that labels are added succesfully
Release v0.0.38
PR Type:
Enhancement
PR Description:
This PR introduces the following changes:
- Adds a new field 'Syscalls' to the ApplicationProfileContainer struct in both 'types.go' and 'v1beta1/types.go' files.
- Updates the conversion functions in 'zz_generated.conversion.go' to include the new 'Syscalls' field.
- Updates the deepcopy functions in 'zz_generated.deepcopy.go' to handle the new 'Syscalls' field.
- Updates the schema in 'zz_generated.openapi.go' to reflect the new 'Syscalls' field.
PR Main Files Walkthrough:
files:
pkg/apis/softwarecomposition/types.go
: Added 'Syscalls' field to the ApplicationProfileContainer struct.
pkg/apis/softwarecomposition/v1beta1/types.go
: Added 'Syscalls' field to the ApplicationProfileContainer struct with json annotations.
pkg/apis/softwarecomposition/v1beta1/zz_generated.conversion.go
: Updated conversion functions to include the new 'Syscalls' field in the ApplicationProfileContainer struct.
pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go
: Updated deepcopy functions to handle the new 'Syscalls' field in the ApplicationProfileContainer struct.
pkg/apis/softwarecomposition/zz_generated.deepcopy.go
: Updated deepcopy functions to handle the new 'Syscalls' field in the ApplicationProfileContainer struct.
pkg/generated/openapi/zz_generated.openapi.go
: Updated the schema to reflect the new 'Syscalls' field in the ApplicationProfileContainer struct.