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

Add helm chart #22

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Add helm chart #22

merged 2 commits into from
Sep 3, 2024

Conversation

adrianchiris
Copy link
Collaborator

@adrianchiris adrianchiris commented Sep 1, 2024

  • add helm chart
  • add automation and release workflow for helm chart

@coveralls
Copy link

coveralls commented Sep 1, 2024

Pull Request Test Coverage Report for Build 10665553447

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 65.571%

Totals Coverage Status
Change from base Build 10626202188: 0.0%
Covered Lines: 1097
Relevant Lines: 1673

💛 - Coveralls

@adrianchiris adrianchiris force-pushed the add-helm-chart branch 2 times, most recently from 3b8fd47 to e6a6039 Compare September 1, 2024 14:29
GITHUB_TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
run: make chart-push-release
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: no new line at the end


GOLANGCI_LINT = $(LOCALBIN)/golangci-lint
GOLANGCI_LINT_VERSION ?= v1.59.1
golangci-lint:
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing .PHONY entry for golangci-lint

.PHONY: yq
yq: $(YQ) ## Download yq locally if necessary.
$(YQ): | $(LOCALBIN)
@curl -fsSL -o $(YQ) https://github.com/mikefarah/yq/releases/download/$(YQ_VERSION)/yq_linux_amd64 && chmod +x $(YQ)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here we always download x86 binary. Do we want to download the binary that matches the arch of the build host?

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 dont think its needed. its intended to be run in GH runner.

control-plane: {{ .Release.Name }}-controller-manager
{{- include "maintenance-operator.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.metricsService.ports | toYaml | nindent 2 }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

No new line at the end + mixing of spaces and tabs?

app.kubernetes.io/part-of: maintenance-operator
{{- include "maintenance-operator.labels" . | nindent 4 }}
spec:
logLevel: info
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: no new line at the end

control-plane: {{ .Release.Name }}-controller-manager
{{- include "maintenance-operator.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.webhookService.ports | toYaml | nindent 2 }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

tabs/spaces mixing

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should automatically update CRDs in the helm chart's dir with make manifests. WDYT?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

makes sense.

also i will add some additional values for operator config CR in the templates.

push helm chart as oci image to ghcr on release (tag)

Signed-off-by: adrianc <[email protected]>
@adrianchiris adrianchiris merged commit 929580f into Mellanox:main Sep 3, 2024
8 checks passed
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