Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update applicationprofile type #145

Merged
merged 4 commits into from
Nov 15, 2023
Merged

update applicationprofile type #145

merged 4 commits into from
Nov 15, 2023

Conversation

matthyx
Copy link
Contributor

@matthyx matthyx commented Nov 8, 2023

PR Type:

Enhancement


PR Description:

This PR introduces several enhancements to the Application Profile Manager:

  • Adds support for Workload ID (WLID) to application profile objects.
  • Incorporates the cluster name into the Application Profile Manager.
  • Adds container type and index to the WatchedContainerData structure.
  • Modifies the application profile saving process to accommodate the new container type and index.
  • Updates the application profile manager tests to reflect these changes.
  • Updates the storage package version in go.mod.

PR Main Files Walkthrough:

files:
  • main.go: The cluster name is now passed as an argument when creating the Application Profile Manager.
  • pkg/applicationprofilemanager/v1/applicationprofile_manager.go: The Application Profile Manager structure now includes a cluster name. The CreateApplicationProfileManager function has been updated to accept the cluster name as an argument. Additional logic has been added to calculate and validate the WLID, find the container type and index, and save the application profile accordingly.
  • pkg/applicationprofilemanager/v1/applicationprofile_manager_test.go: The test for the Application Profile Manager has been updated to pass the cluster name as an argument when creating the Application Profile Manager.
  • pkg/k8sclient/k8sclient_mock.go: A new container with the name "log" and image "fluentbit" has been added to the mock workload.
  • pkg/storage/storage_mock.go: The mock Application Profile now includes a list of containers, each with its own capabilities.
  • pkg/utils/utils.go: The WatchedContainerData structure now includes a container type and index. New functions have been added to get and insert an Application Profile Container based on the container type and index.
  • go.mod: The version of the storage package has been updated from v0.0.33 to v0.0.38.

@matthyx matthyx force-pushed the bump-storage branch 3 times, most recently from 392bea9 to 347f0f8 Compare November 13, 2023 12:35
Signed-off-by: Matthias Bertschy <[email protected]>
@matthyx matthyx changed the title wip - update applicationprofile type update applicationprofile type Nov 14, 2023
@matthyx matthyx marked this pull request as ready for review November 14, 2023 07:33
@codiumai-pr-agent-free codiumai-pr-agent-free bot added the enhancement New feature or request label Nov 14, 2023
Copy link

PR Analysis

  • 🎯 Main theme: Enhancements to the Application Profile Manager
  • 📝 PR summary: This PR introduces several enhancements to the Application Profile Manager, including support for Workload ID (WLID) to application profile objects, incorporation of the cluster name into the Application Profile Manager, addition of container type and index to the WatchedContainerData structure, and modifications to the application profile saving process to accommodate these new changes. The PR also updates the storage package version in go.mod.
  • 📌 Type of PR: Enhancement
  • 🧪 Relevant tests added: Yes

How to use

To invoke the PR-Agent, add a comment using one of the following commands:
/review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option.
/describe: Modify the PR title and description based on the contents of the PR.
/improve [--extended]: Suggest improvements to the code in the PR. Extended mode employs several calls, and provides a more thorough feedback.
/ask <QUESTION>: Pose a question about the PR.
/update_changelog: Update the changelog based on the PR's contents.

To edit any configuration parameter from configuration.toml, add --config_path=new_value
For example: /review --pr_reviewer.extra_instructions="focus on the file: ..."
To list the possible configuration parameters, use the /config command.

Copy link

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: failure
  • Unit test: success
  • Go linting: success

Copy link

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

Copy link

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

Copy link

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
Copy link
Contributor Author

matthyx commented Nov 15, 2023

@Daniel-GrunbergerCA ready to review

Copy link

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx matthyx added the release Create release label Nov 15, 2023
@matthyx matthyx merged commit f36051a into main Nov 15, 2023
6 checks passed
@matthyx matthyx deleted the bump-storage branch November 15, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release Create release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants