Skip to content

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • Move rotationPolicy from spec.rotationPolicy to spec.privateKey.rotationPolicy
  • Fixes compatibility with cert-manager v1.16 through v1.19

Type of Change

  • Bug fix

Testing

Tested with helm template - Certificate renders correctly

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 28, 2026 6:43pm

Request Review

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 28, 2026

Greptile Overview

Greptile Summary

This PR includes two separate changes:

1. cert-manager Compatibility Fix (Primary)

  • Moved rotationPolicy from spec.rotationPolicy to spec.privateKey.rotationPolicy in the PostgreSQL Certificate resource
  • Fixes compatibility with cert-manager v1.16 through v1.19 (the API schema changed)
  • The fix is correct and aligns with cert-manager's current API specification

2. Branding ConfigMap Feature (Secondary)

  • Added new configmap-branding.yaml template for custom branding assets
  • Updated deployment-app.yaml to conditionally mount branding ConfigMap as a volume
  • Added comprehensive branding configuration section in values.yaml with clear documentation
  • Supports both text files (CSS, JSON) via data and binary files (images) via binaryData

Key Changes:

  • certificate-postgresql.yaml: Fixed rotationPolicy location (lines 17-19)
  • configmap-branding.yaml: New file for branding assets
  • deployment-app.yaml: Added conditional volume/volumeMount for branding (lines 113-133)
  • values.yaml: Added branding configuration block (lines 741-765)

Notes:

  • The PR title and description only mention the cert-manager fix, but the commit range includes branding changes from commit dfe48a44
  • Both changes are well-implemented and backward compatible (both features are opt-in via flags)

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Both changes are well-implemented, tested, and backward compatible. The cert-manager fix addresses a real API compatibility issue, and the branding feature is properly gated behind a feature flag. All Helm templating is correct with appropriate conditionals.
  • No files require special attention

Important Files Changed

Filename Overview
helm/sim/templates/certificate-postgresql.yaml Correctly moved rotationPolicy under privateKey for cert-manager v1.16+ compatibility
helm/sim/templates/configmap-branding.yaml Added new ConfigMap for branding assets with proper support for text and binary files
helm/sim/templates/deployment-app.yaml Added conditional volume and volumeMount for branding ConfigMap with appropriate conditions
helm/sim/values.yaml Added well-documented branding configuration with clear examples for text and binary files

Sequence Diagram

sequenceDiagram
    participant User as User/Helm
    participant Values as values.yaml
    participant CertTemplate as certificate-postgresql.yaml
    participant BrandingCM as configmap-branding.yaml
    participant Deployment as deployment-app.yaml
    participant CertManager as cert-manager
    participant K8s as Kubernetes

    User->>Values: Configure branding.enabled=true
    User->>Values: Set postgresql.tls.rotationPolicy
    
    Note over Values,Deployment: Helm Template Rendering
    
    Values->>BrandingCM: branding.enabled? Create ConfigMap
    BrandingCM->>K8s: Create branding ConfigMap resource
    
    Values->>CertTemplate: postgresql.tls.enabled? Create Certificate
    Note over CertTemplate: rotationPolicy now under<br/>spec.privateKey.rotationPolicy<br/>(cert-manager v1.16+ compatible)
    CertTemplate->>CertManager: Submit Certificate resource
    CertManager->>K8s: Generate TLS certificate secret
    
    Values->>Deployment: Configure app deployment
    alt branding.enabled
        Deployment->>K8s: Mount branding ConfigMap as volume
        K8s->>Deployment: Files available at /app/public/branding
    end
    
    Note over Deployment,K8s: Application pod starts with<br/>branding assets and TLS config
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

4 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@waleedlatif1 waleedlatif1 merged commit 6814f33 into staging Jan 28, 2026
12 checks passed
@waleedlatif1 waleedlatif1 deleted the improvement/helm branch January 28, 2026 18:51
waleedlatif1 added a commit that referenced this pull request Jan 28, 2026
…atibility (#3046)

* fix(helm): move rotationPolicy under privateKey for cert-manager compatibility

* docs(helm): add reclaimPolicy Retain guidance for production database storage

* fix(helm): prevent empty branding ConfigMap creation
waleedlatif1 added a commit that referenced this pull request Jan 28, 2026
* fix(workflow): update container dimensions on keyboard movement

* fix(workflow): avoid duplicate container updates during drag

Add !change.dragging check to only handle keyboard movements in
onNodesChange, since mouse drags are already handled by onNodeDrag.

* fix(workflow): persist keyboard movements to backend

Keyboard arrow key movements now call collaborativeBatchUpdatePositions
to sync position changes to the backend for persistence and real-time
collaboration.

* improvement(cmdk): refactor search modal to use cmdk + fix icon SVG IDs (#3044)

* improvement(cmdk): refactor search modal to use cmdk + fix icon SVG IDs

* chore: remove unrelated workflow.tsx changes

* chore: remove comments

* chore: add devtools middleware to search modal store

* fix: allow search data re-initialization when permissions change

* fix: include keywords in search filter + show service name in tool operations

* fix: correct filterBlocks type signature

* fix: move generic to function parameter position

* fix(mcp): correct event handler type for onInput

* perf: always render command palette for instant opening

* fix: clear search input when modal reopens

* fix(helm): move rotationPolicy under privateKey for cert-manager compatibility (#3046)

* fix(helm): move rotationPolicy under privateKey for cert-manager compatibility

* docs(helm): add reclaimPolicy Retain guidance for production database storage

* fix(helm): prevent empty branding ConfigMap creation

* fix(workflow): avoid duplicate position updates on drag end

Check isInDragOperation before persisting in onNodesChange to prevent
duplicate calls. Drag-end events have dragStartPosition still set,
while keyboard movements don't, allowing proper distinction.
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.

2 participants