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: Allows to override default values #508

Merged
merged 4 commits into from
Feb 14, 2020
Merged

feat: Allows to override default values #508

merged 4 commits into from
Feb 14, 2020

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented Feb 13, 2020

Signed-off-by: Anatoliy Bazko abazko@redhat.com

What does this PR do?

Allows to override default values of custom resources by providing a patch file.

patch.yaml

spec:
  storage:
    pvcStrategy: 'per-workspace'
  server:
    customCheProperties:
      ANY_KEY: ANY_VALUE
chectl server:start  --che-operator-cr-patch-yaml=patch.yaml ....

What issues does this PR fix or reference?

eclipse-che/che#15684

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
@tolusha tolusha changed the title Allows to override default values feat: Allows to override default values Feb 13, 2020
Copy link
Contributor

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

Please take a look my minor comments before merging

README.md Outdated
@@ -279,6 +279,10 @@ OPTIONS
-t, --templates=templates
[default: templates] Path to the templates folder

--che-operator-cr-patch=che-operator-cr-patch
Copy link
Contributor

Choose a reason for hiding this comment

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

well, it's actually checluster-cr... Maybe it makes sense to name it like this then?

README.md Outdated
@@ -279,6 +279,10 @@ OPTIONS
-t, --templates=templates
[default: templates] Path to the templates folder

--che-operator-cr-patch=che-operator-cr-patch
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
--che-operator-cr-patch=che-operator-cr-patch
--che-operator-cr-patch=che-operator-cr-patch.yaml

README.md Outdated
@@ -279,6 +279,10 @@ OPTIONS
-t, --templates=templates
[default: templates] Path to the templates folder

--che-operator-cr-patch=che-operator-cr-patch
Path to a yaml file that overrides the default value a CheCluster used by the operator. This parameter is used only
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Path to a yaml file that overrides the default value a CheCluster used by the operator. This parameter is used only
Path to a yaml file that overrides the default values in CheCluster CR used by the operator. This parameter is used only

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
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.

None yet

2 participants