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

Provide a way to override operand image, env, and resources in CRD #1245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MikeEdgar
Copy link
Member

@MikeEdgar MikeEdgar commented Nov 26, 2024

This change deprecates the existing images and env properties of the CRD and replaces them with per-container objects to specify a container image, env, and resources (cpu/memory).

Currently in the Console CR, API container ENVs and override images can be given like

spec:
  env:
  - name: SOME_ENVVAR
    value: "custom-value"
  images:
    api: example.com/myorg/my-api-image:1.0
    ui: example.com/myorg/my-ui-image:1.0

The new way with the change is:

spec:
  containers:
    api:
      image: example.com/myorg/my-api-image:1.0
      resources:
        limits:
          cpu: 500m
          memory: 256Mi
      env:
      - name: SOME_ENVVAR
        value: "custom-value"
    ui:
      image: example.com/myorg/my-ui-image:1.0
      resources:
        limits:
          cpu: 500m
          memory: 256Mi
      env:
      - name: SOME_ENVVAR_UI
        value: "custom-value"

Both sets of properties are still mapped to the console deployment, but the old properties are marked as deprecated in the CRD descriptions.

@MikeEdgar MikeEdgar modified the milestone: 0.5.0 Nov 26, 2024
@MikeEdgar MikeEdgar force-pushed the operand-container-overrides branch 4 times, most recently from 172ce81 to e731818 Compare December 10, 2024 16:06
@MikeEdgar MikeEdgar force-pushed the operand-container-overrides branch 3 times, most recently from 3f57c78 to 86863ae Compare December 19, 2024 18:44
@MikeEdgar MikeEdgar force-pushed the operand-container-overrides branch 3 times, most recently from 8268d19 to acfda91 Compare January 8, 2025 12:08
@MikeEdgar MikeEdgar force-pushed the operand-container-overrides branch from acfda91 to becb6a2 Compare January 9, 2025 17:59
@MikeEdgar MikeEdgar force-pushed the operand-container-overrides branch from becb6a2 to ed01509 Compare January 9, 2025 21:41
@MikeEdgar MikeEdgar added this to the 0.6.0 milestone Jan 9, 2025
@MikeEdgar MikeEdgar added java Pull requests that update Java code ready for review Pull request is ready for a static review labels Jan 9, 2025
@MikeEdgar MikeEdgar requested a review from a team January 9, 2025 23:04
@MikeEdgar
Copy link
Member Author

@k-wall, I'm curious to get your thoughts/feedback on the proposed CRD format in the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code ready for review Pull request is ready for a static review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant