hashicorp / terraform-cloud-operator

Kubernetes Operator allows managing HCP Terraform resources via Kubernetes Custom Resources.
https://developer.hashicorp.com/terraform/cloud-docs
Mozilla Public License 2.0
114 stars 27 forks source link

🚀 Add affinity and tolerations to helm chart #350

Open Pale-whale opened 4 months ago

Pale-whale commented 4 months ago

Description

This pr adds the ability to modify the affinity and tolerations of the operator

Usage Example

operator:
  tolerations:
  - key: "kubernetes.azure.com/scalesetpriority"
    operator: "Equal"
    value: "spot"
    effect: "NoSchedule"
  affinity:
    nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
        - key: kubernetes.io/arch
          operator: In
          values:
          - amd64

References

Community Note

hashicorp-cla commented 4 months ago

CLA assistant check
All committers have signed the CLA.

arybolovlev commented 4 months ago

Hi @Pale-whale,

Thank you for your interest in contributing to this project. I am going to review this PR next week. In the meantime, could you please sign the CLA(Contributor License Agreement) that is pending?

Thanks!

arybolovlev commented 4 months ago

Hi @Pale-whale,

Thank you again for your contribution, there are a few things that I would like to ask you to add here and we should be good to go.

Thank you!

Pale-whale commented 4 months ago

Hi @arybolovlev,

Thanks for the insights, let me know if anything else is needed.

Thank you 😃

arybolovlev commented 4 months ago

Hi @Pale-whale,

Please let me know if you can make the requested changes.

Thanks.