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

Customresource spec.deployment is only a limited subset #310

Open
johanjk opened this issue Nov 10, 2023 · 4 comments
Open

Customresource spec.deployment is only a limited subset #310

johanjk opened this issue Nov 10, 2023 · 4 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@johanjk
Copy link

johanjk commented Nov 10, 2023

When setting overrides on the deployment, only the following parameters are available:

spec:
  deployment: 
    affinity: [...]
    containers: [...]
    imagePullSecret: [...]
    nodeSelector: [...]
    replicas: [...]
    serviceAccountName: [...]
    tolerations: [...]

I would like to be able to configure, amongst other things spec.strategy. Could the operator allow the full deployment spec to be configured?

/kind feature

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 10, 2023
@alexander-demicev
Copy link
Contributor

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 13, 2023
@alexander-demicev
Copy link
Contributor

This can be added to our deployment spec in provider's API

@salasberryfin
Copy link

Hey @johanjk @alexander-demicev. I've been taking a look at this and, assuming the fields of interest are the ones in DeploymentSpec here, there are a few of them that are not optional. Is it expected to support overriding only a selection of these fields or would it be useful to have this struct embedded inline and have access to all fields considering some of them would be required?

@alexander-demicev
Copy link
Contributor

@salasberryfin We had a bad experience with embedding structures in API, if something changes in the structure our API can get broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants