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

autoscaling/V2 for HorizontalPodAutoscaler, servicesGeneral support and serviceAccount name fix #79

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

s-silvius
Copy link

  • Added support for autoscaling/V2 api for HPA. Change that also to default. Keep supporting autoscaling/v2beta1
  • added support for serviceGeneral to able to add common labels and annotations to all services

Change also default apiVersion to autoscaling/v2 but support still
autoscaling/v2beta1.

Signed-off-by: Samuli Silvius <[email protected]>
Added
servicesGeneral.labels
servicesGeneral.annotations

Signed-off-by: Samuli Silvius <[email protected]>
serviceAccountName in pod did not matched the given name in values as ServiceAccount resource in using
helpers.app.fullname template

```
name: {{ include "helpers.app.fullname" (dict "name" $name "context" $) }}
```

So, use same template in pod to reference serviceAccount name to make them match.

Signed-off-by: Samuli Silvius <[email protected]>
@s-silvius s-silvius changed the title autoscaling/V2 for HorizontalPodAutoscaler and servicesGeneral support autoscaling/V2 for HorizontalPodAutoscaler, servicesGeneral support and serviceAccount name fix Oct 6, 2024
Conditional part used template that did not existed.

Signed-off-by: Samuli Silvius <[email protected]>
…essProbe

Container specific properties are merged with generic ones so that
specific ones will override generic properties.

Signed-off-by: Samuli Silvius <[email protected]>
…rsion

When nxs-universal-chart used as library chart as dependency, parent chart name and version can be used to
override following values in labels:

app.kubernetes.io/name
helm.sh/chart
app.kubernetes.io/version

instead of nxs chart values.
`app.kubernetes.io/name` is important to be override as used as part of selectorLabels and this way parent chart's name is used in each resource in addition to release name. Without this override this label get release name as the value, i.e. value is same as for the other label `app.kubernetes.io/instance` in the selector.

If both parentChart.name and parentChart.version is given `helm.sh/chart` will be using those values instead of Chart.Name and Chart.Version whihc are values of nxs chart.

For `app.kubernetes.io/version` label the value from parentChart.version is used if given instead of Chart.Appversion or Chart.version.

Signed-off-by: Samuli Silvius <[email protected]>
@lgg42
Copy link

lgg42 commented Nov 21, 2024

Looking so forward to have this one merged!! 😍

s-silvius and others added 4 commits December 20, 2024 21:25
Previously only single Role and ClusterRole was possible per serviceAccount
as role/clusterrole was a map entry.
Changed to both to list allows multiple roles/clusterroles.
Rules under each role/clusterrole are same as earlier.

Signed-off-by: Samuli Silvius <[email protected]>
It's possible and normal valid use case to bind ClusterRole
with RoleBinding to allow clusterlevel privileges to namespace level.

Added new `clusterScope` boolean parameter for role object and if value is true
ClusterRole is used in releRef, otherwice Role is used.
Default value is false.

Signed-off-by: Samuli Silvius <[email protected]>
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.

2 participants