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

feat: modified environment variables for monitor service #36

Merged
merged 22 commits into from
Sep 6, 2024

Conversation

henit-chobisa
Copy link
Collaborator

@henit-chobisa henit-chobisa commented Sep 6, 2024

Summary by CodeRabbit

  • New Features

    • Updated branding from "Plane One" to "Plane Enterprise" across documentation.
    • Introduced monitoring capabilities with a new monitor service and configuration options.
    • Added a new ConfigMap for managing application settings.
  • Bug Fixes

    • Incremented version number to signify a new release with potential bug fixes.
  • Documentation

    • Streamlined installation instructions and updated environment variable requirements.
    • Enhanced clarity in README files for better user guidance.
  • Chores

    • Removed unnecessary licensing variables to simplify configuration.

mguptahub and others added 21 commits June 14, 2024 13:02
fix: action and readme updated
chore: custom ingress annotations
chore: action modified to push to harbor registry
fix: harbor publish action
fix: questions.yml file for ce and ee
promote develop to master
chore: redis changed to valkey
Merging various updates/fixes from Develop to Master
Promoted Develop To Master
Promoting Develop to Master
Copy link

coderabbitai bot commented Sep 6, 2024

Walkthrough

The changes encompass updates across multiple files in the Plane Enterprise Helm Chart, including documentation rebranding, version increments, and configuration modifications. Key alterations include the removal of licensing references, adjustments to environment variables, and the introduction of new monitoring services. Additionally, the Docker registry feature has been disabled by default, reflecting a shift in deployment requirements and enhancing the application's monitoring capabilities.

Changes

Files Change Summary
charts/plane-ce/README.md Removed header line introducing the document.
charts/plane-enterprise/Chart.yaml Updated version from 1.0.8 to 1.0.9.
charts/plane-enterprise/README.md Rebranded from "Plane One" to "Plane Enterprise"; updated installation instructions and environment variables.
charts/plane-enterprise/questions.yml Changed defaults for dockerRegistry.enabled (true to false) and planeVersion (latest to v1.2.0); added new monitoring variables.
charts/plane-enterprise/templates/_helpers.tpl Removed .Values.license.licenseKey from hashString function.
charts/plane-enterprise/templates/config-secrets/app-env.yaml Removed LICENSE_KEY, replaced LICENSE_DOMAIN and LICENSE_VERSION with APP_DOMAIN and APP_VERSION; added new entries for payment and feature flag URLs.
charts/plane-enterprise/templates/config-secrets/monitor.yaml Introduced new ConfigMap for monitoring configuration.
charts/plane-enterprise/templates/workloads/api.deployment.yaml Minor formatting change (removed empty line).
charts/plane-enterprise/templates/workloads/monitor.stateful.yaml New configuration for monitoring service and StatefulSet.
charts/plane-enterprise/values.yaml Disabled Docker registry feature by default; added new monitoring service configuration.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Helm
    participant Kubernetes

    User->>Helm: Deploy Plane Enterprise
    Helm->>Kubernetes: Install application components
    Kubernetes->>Kubernetes: Create ConfigMap for monitoring
    Kubernetes->>Kubernetes: Deploy monitoring StatefulSet
    Kubernetes->>User: Application is running
Loading

🐇 "In fields of green, I hop with glee,
Changes abound, oh what a spree!
From Plane One to Enterprise bright,
New paths to explore, oh what delight!
Monitoring's here, with features galore,
Let's celebrate, and dance some more!" 🐇


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Outside diff range, codebase verification and nitpick comments (1)
charts/plane-enterprise/templates/config-secrets/app-env.yaml (1)

20-23: Verify integration of configuration entries.

The configuration entries PAYMENT_SERVER_BASE_URL and FEATURE_FLAG_SERVER_BASE_URL are defined in app-env.yaml but are not referenced elsewhere in the codebase. Please verify their intended use and ensure they are correctly integrated into the application if necessary.

Analysis chain

Verify new configuration entries for correctness and integration.

The new entries PAYMENT_SERVER_BASE_URL and FEATURE_FLAG_SERVER_BASE_URL are crucial for the application's modularity and integration. Please ensure that these URLs are correctly formatted and functional within the application's context.

Run the following script to verify the correctness of the new configuration entries:

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the correctness of new configuration entries.

# Test: Search for the usage of new configuration entries. Expect: Correct format and integration.
rg --type yaml -A 5 $'PAYMENT_SERVER_BASE_URL|FEATURE_FLAG_SERVER_BASE_URL'

Length of output: 917


Script:

#!/bin/bash
# Description: Search for the usage of new configuration entries in the application codebase.

# Test: Search for references to PAYMENT_SERVER_BASE_URL and FEATURE_FLAG_SERVER_BASE_URL in the codebase.
rg 'PAYMENT_SERVER_BASE_URL|FEATURE_FLAG_SERVER_BASE_URL' -A 5

Length of output: 905

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 8f19c1b and 767ef5c.

Files selected for processing (10)
  • charts/plane-ce/README.md (1 hunks)
  • charts/plane-enterprise/Chart.yaml (1 hunks)
  • charts/plane-enterprise/README.md (8 hunks)
  • charts/plane-enterprise/questions.yml (5 hunks)
  • charts/plane-enterprise/templates/_helpers.tpl (1 hunks)
  • charts/plane-enterprise/templates/config-secrets/app-env.yaml (1 hunks)
  • charts/plane-enterprise/templates/config-secrets/monitor.yaml (1 hunks)
  • charts/plane-enterprise/templates/workloads/api.deployment.yaml (1 hunks)
  • charts/plane-enterprise/templates/workloads/monitor.stateful.yaml (1 hunks)
  • charts/plane-enterprise/values.yaml (2 hunks)
Files skipped from review due to trivial changes (3)
  • charts/plane-ce/README.md
  • charts/plane-enterprise/Chart.yaml
  • charts/plane-enterprise/templates/workloads/api.deployment.yaml
Additional context used
yamllint
charts/plane-enterprise/templates/config-secrets/monitor.yaml

[warning] 7-7: wrong indentation: expected 2 but found 4

(indentation)


[error] 5-5: syntax error: expected , but found ''

(syntax)

charts/plane-enterprise/templates/workloads/monitor.stateful.yaml

[warning] 10-10: wrong indentation: expected 0 but found 2

(indentation)


[error] 74-74: no new line character at the end of file

(new-line-at-end-of-file)


[error] 74-74: trailing spaces

(trailing-spaces)


[error] 5-5: syntax error: expected , but found ''

(syntax)

LanguageTool
charts/plane-enterprise/README.md

[uncategorized] ~182-~182: Possible missing article found.
Context: ...loyment in kubernetes can be set to use maximum cpu they are allowed to use. This key s...

(AI_HYDRA_LEO_MISSING_THE)

Additional comments not posted (11)
charts/plane-enterprise/templates/_helpers.tpl (1)

6-7: Verify the impact of removing licenseKey from hash calculation.

The removal of licenseKey from the hash calculation in hashString could impact systems that rely on this hash for validation or identification. Please confirm that this change aligns with the intended security and functionality requirements.

Run the following script to verify the impact of this change:

charts/plane-enterprise/templates/workloads/monitor.stateful.yaml (1)

1-19: Service Configuration Review:

The Service configuration, including conditional cluster IP assignment and port settings, is correctly implemented and follows Kubernetes best practices.

Tools
yamllint

[warning] 10-10: wrong indentation: expected 0 but found 2

(indentation)


[error] 5-5: syntax error: expected , but found ''

(syntax)

charts/plane-enterprise/values.yaml (2)

4-4: Docker Registry Configuration Change:

The Docker registry has been disabled (enabled: false). Verify that this change aligns with the deployment strategy and document the rationale behind disabling the Docker registry to ensure clarity for future maintenance.


60-65: Monitor Service Configuration Review:

The configuration for the new monitor service is correctly defined, including resource limits, image specification, and volume size. This setup enhances the monitoring capabilities and aligns with the overall application architecture.

charts/plane-enterprise/questions.yml (2)

6-6: Configuration Questions for Docker Registry and Plane Version:

The default settings for the Docker registry and Plane version have been updated. Verify that these changes align with the deployment strategy and document the rationale behind these updates to ensure clarity for future maintenance.

Also applies to: 23-23


126-143: Monitor Service Configuration Questions Review:

The configuration questions for the new monitor service are well-defined, including memory limit, CPU limit, volume size, and cluster IP assignment. These settings provide clear options for users configuring the monitoring services.

charts/plane-enterprise/README.md (5)

Line range hint 6-50: Updated Installation Instructions and Branding

The installation instructions have been updated to reflect the rebranding from "Plane One" to "Plane Enterprise" and the changes in environment variable names. The Helm installation command has been updated to use plane-app instead of one-app and the namespace plane instead of plane-one. These changes are consistent with the PR objectives and enhance clarity for users transitioning to the new branding.


91-91: Update on Docker Registry Configuration

The default value for dockerRegistry.enabled has been changed from true to false. This indicates a shift in the installation requirements for the Docker registry, possibly reflecting a change in how Plane handles Docker images. It's important to ensure that this change is clearly communicated to users to avoid confusion during installation.


100-100: Updated Plane Version

The planeVersion has been updated from v1.1.1 to v1.2.1. This change should be clearly documented in the change log or release notes to inform users about the new version being deployed.


177-186: New Monitor Deployment Section

A new section for monitoring deployment settings has been added, detailing memory and CPU limits, Docker image, volume size, and cluster IP assignment. This addition is crucial for users needing detailed configuration options for monitoring services. The settings are well-documented and align with the overall structure of the README.

Tools
LanguageTool

[uncategorized] ~182-~182: Possible missing article found.
Context: ...loyment in kubernetes can be set to use maximum cpu they are allowed to use. This key s...

(AI_HYDRA_LEO_MISSING_THE)


243-249: Updated Routing Paths

The routing paths have been updated to reflect the new application name and namespace. This ensures that users are directed to the correct services under the new branding. It's important to verify that these routes are correctly configured in the Kubernetes environment to prevent any access issues.

| Setting | Default | Required | Description |
|---|:---:|:---:|---|
| services.monitor.memoryLimit | 1000Mi | | Every deployment in kubernetes can be set to use maximum memory they are allowed to use. This key sets the memory limit for this deployment to use.|
| services.monitor.cpuLimit | 500m | | Every deployment in kubernetes can be set to use maximum cpu they are allowed to use. This key sets the cpu limit for this deployment to use.|
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar Correction Needed

There is a grammatical error in the description of the services.monitor.cpuLimit setting. The phrase "Every deployment in kubernetes can be set to use maximum cpu they are allowed to use" is missing an article before "maximum cpu."

Consider revising the sentence for clarity and grammatical correctness:

- Every deployment in kubernetes can be set to use maximum cpu they are allowed to use.
+ Every deployment in Kubernetes can be set to use the maximum CPU they are allowed to use.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
| services.monitor.cpuLimit | 500m | | Every deployment in kubernetes can be set to use maximum cpu they are allowed to use. This key sets the cpu limit for this deployment to use.|
| services.monitor.cpuLimit | 500m | | Every deployment in Kubernetes can be set to use the maximum CPU they are allowed to use. This key sets the cpu limit for this deployment to use.|
Tools
LanguageTool

[uncategorized] ~182-~182: Possible missing article found.
Context: ...loyment in kubernetes can be set to use maximum cpu they are allowed to use. This key s...

(AI_HYDRA_LEO_MISSING_THE)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 767ef5c and 7ed1a12.

Files selected for processing (3)
  • charts/plane-enterprise/questions.yml (5 hunks)
  • charts/plane-enterprise/templates/config-secrets/app-env.yaml (1 hunks)
  • charts/plane-enterprise/values.yaml (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • charts/plane-enterprise/templates/config-secrets/app-env.yaml
  • charts/plane-enterprise/values.yaml
Additional comments not posted (3)
charts/plane-enterprise/questions.yml (3)

23-23: Updated default version for planeVersion.

The default value for planeVersion has been updated from latest to v1.2.0. This change helps in ensuring a more stable and predictable deployment by using a specific version rather than always pulling the latest version, which might introduce breaking changes or instability.


42-46: Addition of Monitor Docker Image configuration.

A new variable services.monitor.image has been introduced with a default value pointing to a specific version of the monitor service Docker image. This addition is crucial for deployments that require monitoring services, ensuring that the correct Docker image is used.


126-143: Configuration for monitoring service resources and settings.

New entries for services.monitor.memoryLimit, services.monitor.cpuLimit, services.monitor.volumeSize, and services.monitor.assign_cluster_ip have been added. These configurations allow fine-tuning of the monitoring service's resources and network settings, which is essential for managing the performance and scalability of the service in different deployment environments.

charts/plane-enterprise/questions.yml Show resolved Hide resolved
@mguptahub mguptahub merged commit e4b5f79 into develop Sep 6, 2024
@mguptahub mguptahub deleted the feat/prime-v2 branch September 6, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants