diff --git a/HISTORY.md b/HISTORY.md index 60653f3f72..105b9a533d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,6 +6,73 @@ This document contains the last 100 policy template merges for the `flexera-publ ## History +### PR [#2833](https://github.com/flexera-public/policy_templates/pull/2833): POL-1405 Replace deprecated Kubecost endpoints for Kubecost Cluster Policy + +#### Description + +> The endpoint we are currently using has been deprecated “/model/savings/clusterSizing" +> It still works but only returns one cluster rather than all clusters. +> +> The new endpoint is returns a different response “/model/savings/clusterSizingETL" and simply adding ETL onto the end of our current end point in the policy returns null values in ds_cluster_sizing +> +> This endpoint returns all cluster recommendations in one response. +> +> +> The `ds_clusters` function has been created to include two new parameters in the Kubecost API call: +> +> * param_allow_shared_core: This boolean parameter indicates whether shared cores should be allowed in the cluster sizing calculation. By default, Kubecost may not consider the shared cores between pods as part of the cost savings calculations. With this new parameter, the explicit inclusion of shared cores in the calculations can be enabled. This is useful for environments where resources are shared between multiple pods, and a more accurate estimate of potential savings is desired. +> +> +> +> #### Changes Made: +> +> * Updated the function responsible for the API call to /model/savings/clusterSizing +> * Added the param_allow_shared_core to the `ds_clusters` function. +> * Updated the HTTP call to send these parameters in the Request. +> * Set the default values of these parameters to False, meaning shared cores will not be allowed. +> +> > How the response for the new endpoint differs from what we initially wanted: we modified it and added new functions to handle the response and convert it to the expected struct +> +> ### Issues Resolved +> +> - Deprecated endpoint from kubecost was replaced. +> - https://flexera.atlassian.net/browse/POL-1405 +> + +#### Metadata + +- **Policies**: [Kubecost Cluster Rightsizing Recommendation](https://github.com/flexera-public/policy_templates/tree/master/cost/kubecost/cluster/README.md) +- **Merged At**: 2024-12-19 15:58:27 UTC + +--- + +### PR [#2869](https://github.com/flexera-public/policy_templates/pull/2869): POL-1414 Currency Conversion Functionality on Kubecost cluster rightsizing policy + +#### Description + +> This update introduces functionality to handle automatic currency conversion within Kubecost cluster rightsizing policy, ensuring that incidents reflect values across different currencies. +> +> #### Changes +> +> * Support for multiple currencies has been added to the system. +> * If the kubecost config endpoint returns an empty currency, USD (United States Dollar) will be used as the default currency. +> * A condition has been implemented where, if Kubecost's currency matches Flexera's, no currency conversion will take place. +> +> ### Issues Resolved +> +> Resolves the issue where currency discrepancies occurred between our template and Kubecost when they had different base currencies. +> +> +> https://flexera.atlassian.net/browse/POL-1414 +> + +#### Metadata + +- **Policies**: [Kubecost Cluster Rightsizing Recommendation](https://github.com/flexera-public/policy_templates/tree/master/cost/kubecost/cluster/README.md) +- **Merged At**: 2024-12-16 22:02:52 UTC + +--- + ### PR [#2817](https://github.com/flexera-public/policy_templates/pull/2817): POL-1410 - Improve Scheduled Instance Notifications #### Description @@ -1640,31 +1707,3 @@ This document contains the last 100 policy template merges for the `flexera-publ --- -### PR [#2496](https://github.com/flexera-public/policy_templates/pull/2496): POL-1311 New Policy: Azure Advisor Compute Instances Recommendations - -#### Description - -> This is a new policy template that reports virtual machine resizing recommendations from the Azure Advisor tool. See the README for more details. -> - -#### Metadata - -- **Policies**: Not displayed due to PR with no published policies. Please see [Github Pull Request](https://github.com/flexera-public/policy_templates/pull/2496) for details about unpublished policies. -- **Merged At**: 2024-08-13 12:04:51 UTC - ---- - -### PR [#2494](https://github.com/flexera-public/policy_templates/pull/2494): POL-1310 New Policy: AWS EC2 Compute Optimizer Recommendations - -#### Description - -> This is a new policy template that reports EC2 resizing recommendations from AWS Compute Optimizer tool. See the README for more details. -> - -#### Metadata - -- **Policies**: Not displayed due to PR with no published policies. Please see [Github Pull Request](https://github.com/flexera-public/policy_templates/pull/2494) for details about unpublished policies. -- **Merged At**: 2024-08-13 12:04:43 UTC - ---- - diff --git a/data/change_history/change_history.json b/data/change_history/change_history.json index 6920e50f98..48e1102f15 100644 --- a/data/change_history/change_history.json +++ b/data/change_history/change_history.json @@ -1,5 +1,129 @@ { "merged_prs": [ + { + "number": 2894, + "title": "Update Policy Master Permissions List", + "description": "Update Policy Master Permissions List from GitHub Actions Workflow [Generate Policy Master Permissions JSON](https://github.com/flexera-public/policy_templates/actions/runs/12416249279)", + "labels": [ + "automation" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2894", + "created_at": "2024-12-19 15:58:53 UTC", + "merged_at": "2024-12-19 20:09:06 UTC", + "modified_files": [ + "data/policy_permissions_list/master_policy_permissions_list.json", + "data/policy_permissions_list/master_policy_permissions_list.yaml" + ] + }, + { + "number": 2895, + "title": "Update Active Policy List", + "description": "Update Active Policy List from GitHub Actions Workflow [Update Active Policy List](https://github.com/flexera-public/policy_templates/actions/runs/12416270594)", + "labels": [ + "automation", + "data" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2895", + "created_at": "2024-12-19 16:02:12 UTC", + "merged_at": "2024-12-19 20:08:30 UTC", + "modified_files": [ + "data/active_policy_list/active_policy_list.json" + ] + }, + { + "number": 2833, + "title": "POL-1405 Replace deprecated Kubecost endpoints for Kubecost Cluster Policy", + "description": "### Description\r\n\r\nThe endpoint we are currently using has been deprecated “/model/savings/clusterSizing\"\r\nIt still works but only returns one cluster rather than all clusters.\r\n\r\nThe new endpoint is returns a different response “/model/savings/clusterSizingETL\" and simply adding ETL onto the end of our current end point in the policy returns null values in ds_cluster_sizing\r\n\r\nThis endpoint returns all cluster recommendations in one response.\r\n\r\n\r\nThe `ds_clusters` function has been created to include two new parameters in the Kubecost API call:\r\n\r\n* param_allow_shared_core: This boolean parameter indicates whether shared cores should be allowed in the cluster sizing calculation. By default, Kubecost may not consider the shared cores between pods as part of the cost savings calculations. With this new parameter, the explicit inclusion of shared cores in the calculations can be enabled. This is useful for environments where resources are shared between multiple pods, and a more accurate estimate of potential savings is desired.\r\n\r\n\r\n\r\n#### Changes Made:\r\n\r\n* Updated the function responsible for the API call to /model/savings/clusterSizing \r\n* Added the param_allow_shared_core to the `ds_clusters` function.\r\n* Updated the HTTP call to send these parameters in the Request.\r\n* Set the default values of these parameters to False, meaning shared cores will not be allowed.\r\n\r\n> How the response for the new endpoint differs from what we initially wanted: we modified it and added new functions to handle the response and convert it to the expected struct\r\n\r\n### Issues Resolved\r\n\r\n- Deprecated endpoint from kubecost was replaced.\r\n- https://flexera.atlassian.net/browse/POL-1405\r\n\r\n### Link to Example Applied Policy\r\n\r\nhttps://app.flexeratest.com/orgs/1105/automation/applied-policies/projects/60073?policyId=673520d66168ce351f89f548\r\n\r\n### Contribution Check List\r\n\r\n- [ ] New functionality includes testing.\r\n- [ ] New functionality has been documented in the README if applicable\r\n- [X] New functionality has been documented in CHANGELOG.MD\r\n", + "labels": [ + "READY-FOR-REVIEW", + "READY FOR APPROVAL" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2833", + "created_at": "2024-11-14 17:31:14 UTC", + "merged_at": "2024-12-19 15:58:27 UTC", + "modified_files": [ + "cost/kubecost/cluster/CHANGELOG.md", + "cost/kubecost/cluster/README.md", + "cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt" + ] + }, + { + "number": 2891, + "title": "Update Active Policy List", + "description": "Update Active Policy List from GitHub Actions Workflow [Update Active Policy List](https://github.com/flexera-public/policy_templates/actions/runs/12362116959)", + "labels": [ + "automation", + "data" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2891", + "created_at": "2024-12-16 22:06:44 UTC", + "merged_at": "2024-12-17 12:10:25 UTC", + "modified_files": [ + "data/active_policy_list/active_policy_list.json" + ] + }, + { + "number": 2890, + "title": "Update Policy Master Permissions List", + "description": "Update Policy Master Permissions List from GitHub Actions Workflow [Generate Policy Master Permissions JSON](https://github.com/flexera-public/policy_templates/actions/runs/12362092687)", + "labels": [ + "automation" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2890", + "created_at": "2024-12-16 22:03:17 UTC", + "merged_at": "2024-12-17 12:10:04 UTC", + "modified_files": [ + "data/policy_permissions_list/master_policy_permissions_list.json", + "data/policy_permissions_list/master_policy_permissions_list.yaml" + ] + }, + { + "number": 2869, + "title": "POL-1414 Currency Conversion Functionality on Kubecost cluster rightsizing policy", + "description": "### Description\r\n\r\nThis update introduces functionality to handle automatic currency conversion within Kubecost cluster rightsizing policy, ensuring that incidents reflect values across different currencies.\r\n\r\n#### Changes\r\n\r\n* Support for multiple currencies has been added to the system.\r\n* If the kubecost config endpoint returns an empty currency, USD (United States Dollar) will be used as the default currency.\r\n* A condition has been implemented where, if Kubecost's currency matches Flexera's, no currency conversion will take place.\r\n\r\n### Issues Resolved\r\n\r\nResolves the issue where currency discrepancies occurred between our template and Kubecost when they had different base currencies.\r\n\r\n\r\nhttps://flexera.atlassian.net/browse/POL-1414\r\n\r\n### Link to Example Applied Policy\r\n\r\nLink Applied policy: https://app.flexera.com/orgs/1105/automation/applied-policies/projects/60073?policyId=6751ebfb0f8449d76165faba\r\n\r\n### Contribution Check List\r\n\r\n- [ ] New functionality includes testing.\r\n- [ ] New functionality has been documented in the README if applicable\r\n- [ ] New functionality has been documented in CHANGELOG.MD\r\n", + "labels": [ + "READY-FOR-REVIEW", + "READY FOR APPROVAL" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2869", + "created_at": "2024-12-05 18:35:44 UTC", + "merged_at": "2024-12-16 22:02:52 UTC", + "modified_files": [ + "cost/kubecost/cluster/CHANGELOG.md", + "cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt" + ] + }, + { + "number": 2889, + "title": "Update AWS EC2 Pricing Data", + "description": "Updated AWS EC2 Pricing from GitHub Actions Workflow [Generate AWS EC2 Pricing JSON](https://github.com/flexera-public/policy_templates/actions/runs/12335080944)", + "labels": [ + "automation", + "data", + "aws" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2889", + "created_at": "2024-12-15 02:33:30 UTC", + "merged_at": "2024-12-16 13:22:51 UTC", + "modified_files": [ + "data/aws/aws_ec2_pricing.json" + ] + }, + { + "number": 2888, + "title": "Update Change History", + "description": "Update Change History from GitHub Actions Workflow [Update Change History](https://github.com/flexera-public/policy_templates/actions/runs/12334695971)", + "labels": [ + "automation" + ], + "href": "https://github.com/flexera-public/policy_templates/pull/2888", + "created_at": "2024-12-15 01:40:05 UTC", + "merged_at": "2024-12-16 13:22:25 UTC", + "modified_files": [ + "HISTORY.md", + "data/change_history/change_history.json" + ] + }, { "number": 2886, "title": "Update Policy Master Permissions List",