Skip to content

Conversation

@becky-intelletive
Copy link
Collaborator

No description provided.

@becky-intelletive becky-intelletive marked this pull request as ready for review May 18, 2023 18:58
enabled: false
loadBalancerType: ROUND_ROBIN
mtlsMode: "PERMISSIVE"
forceHttpRedirect: false
Copy link
Member

Choose a reason for hiding this comment

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

I think you may have added a lot of new stuff, so test case needs to be updated I think to take into account hte new stuff.

Copy link
Member

Choose a reason for hiding this comment

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

While we're at it we might refactor tests to use https://helm.sh/docs/topics/chart_tests/

# Configure resources it will be given with reasonable defaults
resources:
limits:
cpu: 1000m
Copy link
Member

Choose a reason for hiding this comment

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

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe we established that we didn't want to set an upper cpu limit

{{- range .Values.extraDeployment.deployments }}
{{- $deploymentName := (required "Each entry in extraDeployment.deployments needs a name" .name) }}
{{- $dictOfBasicLabels := include "chart.basicLabels" $ | fromYaml }}
{{- $dictOfBasicSelectorLabels := include "chart.basicSelectorLabels" $ | fromYaml }}
Copy link
Member

Choose a reason for hiding this comment

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

what are we doing to make sure cron jobs, jobs, statefulsets, and deployments don't have overlapping selector labels?

Copy link
Member

Choose a reason for hiding this comment

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

I think just statefulsets and deployments will run into this potential issue. Jobs/cronjobs create a dynamic label if I remember correctly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Basic selector labels are the app and release.
Basic labels are the app, release, chart, heritage, and version.
I didn't remove anything that differentiated between apps. I only replaced groups of common labels.
You're right, though, that we should add to the statefulset and extra deployments' labels. They need a distinguishing label.

@jasonWoodman
Copy link

Picking up this PR review. I can go through and point out all the place things change for the image tag refactor, but we want to take that out. The helper function, the ability to define the tag etc. Determining the image URL is outside the scope of this chart. We intentionally built it with 1 static image URL for simplicity. In practice, the pipelines or something outside of this chart should be determining how to render the full Image url if there is business logic to it as the chart will never have all that context. So there isn't any value in all the complexity in the helper function to determine the image url with an optional tag.

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.

3 participants