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

Added missing attributes and improvements to deployment yaml file - Merged with PR #10 #17

Merged
merged 5 commits into from
Feb 5, 2020

Conversation

robece
Copy link
Contributor

@robece robece commented Jan 30, 2020

  • Added features to deployment: nodeSelector, securityContext, tolerations and affinity

  • Added normalized yaml files names

  • Disabled CRD template installation for Helm 3.x, to prevent the message: info: skipping unknown hook: "crd-install", to install in Helm 2.x just add the parameter: --set customResourceDefinition.create=true

Relates to #18

- Added features to deployment: nodeSelector, securityContext, tolerations and affinity

- Added normalized yaml files names

- Disabled CRD template installation for Helm 3, to prevent: info:
     skipping unknown hook: "crd-install"
     to install in Helm 2 add the parameter: --set customResourceDefinition.create=true
@robece robece changed the title Added missing attributes and improvements to deployment yaml file Added missing attributes and improvements to deployment yaml file - Merged with PR #10 Jan 30, 2020
@tomkerkhove
Copy link
Member

tomkerkhove commented Jan 30, 2020

Looks like a flag is required for Helm 2.X now, would you mind sending a PR on https://github.com/kedacore/keda-docs to update https://keda.sh/deploy/ please?

- name: {{ .Values.operatorName }}-metrics-apiserver
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.metricsAdapter }}:{{ .Chart.AppVersion }}"
Copy link
Member

Choose a reason for hiding this comment

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

As per @ahmelsayed we'd prefer not to do this: #14 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, let me add the changes for custom keda deployments! :)

@tomkerkhove
Copy link
Member

All our files have been numbered as of #10 so I think it's best to stick with that.

I'm adding @zroubalik in case you have any questions on that.

Feel free to make the required changes to this branch so that we can keep the history of this feature change.

@tomkerkhove
Copy link
Member

You've mentioned this:

Disabled CRD template installation for Helm 3.x, to prevent the message: info: skipping unknown hook: "crd-install", to install in Helm 2.x just add the parameter: --set customResourceDefinition.create=true

Can you elaborate on what has changed please?

@robece
Copy link
Contributor Author

robece commented Jan 30, 2020

thanks @tomkerkhove , let me add the numbers , for the second question about "Disabled CRD template installation..." since Helm 3 removed the hooks and crds folder works for the CRD installation, the change was in the flag (customResourceDefinition.create) value to prevent CRD hook installation if you are using Helm 3, this avoid the some warning messages, using this flag only in case you want to use Helm 2.

@robece
Copy link
Contributor Author

robece commented Jan 30, 2020

Btw. this is a good question, in my first commit I removed the hooks for Helm 2 support to keep the use only for Helm 3 CRD installation folder files without hooks, but in the merge I saw there are pull request validations for Helm 2 and I prefer to keep the hooked CRD files in the template folder.

@robece
Copy link
Contributor Author

robece commented Jan 30, 2020

Hi @tomkerkhove @ahmelsayed , just to comment that I sent a PR for the documentation to add the parameter in the Helm 2 installation, kedacore/keda-docs#76, thanks!

@ahmelsayed
Copy link
Contributor

ahmelsayed commented Jan 31, 2020

I guess it's a side effect of us trying to have the same chart for both versions. I'm not sure how other charts manage that? separate helm repos?

@robece
Copy link
Contributor Author

robece commented Jan 31, 2020

Completely agree @ahmelsayed , originally I was planning to let the changes just for Helm 3, what do you think @tomkerkhove if we remove the hooks from this chart and create another chart for version 2? if everyone agree we can remove the lint validation for Helm 2 and commit the new changes to support only Helm 3 in this chart.

@jeffhollan
Copy link
Member

jeffhollan commented Jan 31, 2020

Tried to poke around and find another project that creates CRDs that has a helm 2 and helm 3 chart to see if any "best practices" were around. Couldn't find any. May ping helm team tomorrow

Edit: https://cloud-native.slack.com/archives/CGF207RB5/p1580440634001200

@tomkerkhove
Copy link
Member

I've opened #20 which is the culprit here.

Since we don't have proper support for publishing older chart versions we have to be backwards compatible.

Once we have that one we just bump the major version and remove Helm 2.x support.

What do you guys think? Happy to take this one up if we can get an Azure Container Registry or so.

@robece
Copy link
Contributor Author

robece commented Feb 3, 2020

Hi, I was wondering if there is anything else pending to move this change forward or if there is any pending conversation we want to check, if you need any help let me know, cheers!

@ahmelsayed
Copy link
Contributor

The change looks good to me. My only reservation is around requiring the extra flag for helm 2, but if @jeffhollan and @tomkerkhove are okay with it, then it's fine.

@tomkerkhove
Copy link
Member

I'd suggest to keep the same experience for Helm 2.x (and thus not use the flag) until we have resolved #20

@robece
Copy link
Contributor Author

robece commented Feb 4, 2020

Let's do that, I will remove the flag for Helm 2 in order to push the rest of the changes, in addition, I'll update the documentation to remove the flag, cheers!!

@ahmelsayed
Copy link
Contributor

Thanks @robece!

@ahmelsayed ahmelsayed merged commit 1e44265 into kedacore:master Feb 5, 2020
@tomkerkhove
Copy link
Member

Things turn out to be properly merged so we might be able to bit the bullet and fix this

@catirado catirado mentioned this pull request Jun 7, 2020
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.

4 participants