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

Rename chart to qdrant-kubernetes-api #32

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Helm lint (CRDs)
run: |
helm lint charts/qdrant-operator-crds
helm lint charts/qdrant-kubernetes-api

- name: Check Go Formatting
run: |
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ jobs:
- name: Package helm chart (CRDs)
run: |
# Ensure correct versions in Chart.yaml
sed -i "s/version:.*/version: ${{ steps.extract_build_info.outputs.tag }}/g" charts/qdrant-operator-crds/Chart.yaml
sed -i "s/appVersion:.*/appVersion: ${{ steps.extract_build_info.outputs.tag }}/g" charts/qdrant-operator-crds/Chart.yaml
helm package charts/qdrant-operator-crds/
helm package --app-version ${{ steps.extract_build_info.outputs.tag }} --version ${{ steps.extract_build_info.outputs.tag }} charts/qdrant-kubernetes-api/

- name: Tag Release
shell: bash
Expand All @@ -66,7 +64,7 @@ jobs:
HARBOR_TOKEN: ${{ secrets.HARBOR_TOKEN }}
run: |
helm registry login registry.cloud.qdrant.io -u "${HARBOR_USERNAME}" --password "${HARBOR_TOKEN}"
push_output=$(helm push qdrant-operator-crds-${{ steps.extract_build_info.outputs.tag }}.tgz oci://registry.cloud.qdrant.io/qdrant-charts 2>&1)
push_output=$(helm push qdrant-kubernetes-api-${{ steps.extract_build_info.outputs.tag }}.tgz oci://registry.cloud.qdrant.io/qdrant-charts 2>&1)
echo $push_output
digest=$(echo $push_output | grep -oP '(?<=Digest: ).*')
echo $digest
Expand All @@ -79,7 +77,7 @@ jobs:
HARBOR_TOKEN: ${{ secrets.HARBOR_TOKEN }}
run: |
helm registry login registry.cloud.qdrant.io -u "${HARBOR_USERNAME}" --password "${HARBOR_TOKEN}"
push_output=$(helm push qdrant-operator-crds-${{ steps.extract_build_info.outputs.tag }}.tgz oci://registry.cloud.qdrant.io/library 2>&1)
push_output=$(helm push qdrant-kubernetes-api-${{ steps.extract_build_info.outputs.tag }}.tgz oci://registry.cloud.qdrant.io/library 2>&1)
echo $push_output
public_digest=$(echo $push_output | grep -oP '(?<=Digest: ).*')
echo $public_digest
Expand All @@ -89,12 +87,12 @@ jobs:
run: |
cosign sign --yes "${TAGS}@${DIGEST}"
env:
TAGS: registry.cloud.qdrant.io/qdrant-charts/qdrant-operator-crds:${{ steps.extract_build_info.outputs.tag }}
TAGS: registry.cloud.qdrant.io/qdrant-charts/qdrant-kubernetes-api:${{ steps.extract_build_info.outputs.tag }}
DIGEST: ${{ steps.push-helm-chart-crds.outputs.digest }}

- name: Sign helm chart (CRDs) at registry.cloud.qdrant.io in public repo
run: |
cosign sign --yes "${TAGS}@${DIGEST}"
env:
TAGS: registry.cloud.qdrant.io/library/qdrant-operator-crds:${{ steps.extract_build_info.outputs.tag }}
TAGS: registry.cloud.qdrant.io/library/qdrant-kubernetes-api:${{ steps.extract_build_info.outputs.tag }}
DIGEST: ${{ steps.push-helm-chart-crds-public.outputs.public_digest }}
19 changes: 10 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,32 @@ GCI ?= $(LOCALBIN)/gci

CONTROLLER_TOOLS_VERSION ?= v0.16.1
CRD_REF_DOCS_VERSION ?= v0.0.12
CHART_DIR ?= charts/qdrant-kubernetes-api

lint:
bash -c 'files=$$(gofmt -l .) && echo $$files && [ -z "$$files" ]'
helm lint charts/qdrant-operator-crds
helm lint $(CHART_DIR)
golangci-lint run

.PHONY: gen
gen: manifests generate format vet ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

.PHONY: manifests
manifests: controller-gen ## Generate CustomResourceDefinition objects.
rm charts/qdrant-operator-crds/templates/management-crds/*.yaml
rm charts/qdrant-operator-crds/templates/region-crds/*.yaml
$(CONTROLLER_GEN) crd paths="./..." output:crd:artifacts:config=charts/qdrant-operator-crds/templates
mv charts/qdrant-operator-crds/templates/qdrant.io_qdrantreleases.yaml charts/qdrant-operator-crds/templates/management-crds/
mv charts/qdrant-operator-crds/templates/qdrant*.yaml charts/qdrant-operator-crds/templates/region-crds/
for file in charts/qdrant-operator-crds/templates/management-crds/*.yaml; do \
rm $(CHART_DIR)/templates/management-crds/*.yaml
rm $(CHART_DIR)/templates/region-crds/*.yaml
$(CONTROLLER_GEN) crd paths="./..." output:crd:artifacts:config=$(CHART_DIR)/templates
mv $(CHART_DIR)/templates/qdrant.io_qdrantreleases.yaml $(CHART_DIR)/templates/management-crds/
mv $(CHART_DIR)/templates/qdrant*.yaml $(CHART_DIR)/templates/region-crds/
for file in $(CHART_DIR)/templates/management-crds/*.yaml; do \
echo "{{ if .Values.includeManagementCRDs }}" | cat - $$file > temp && mv temp $$file; \
echo "{{ end }}" >> $$file; \
done
for file in charts/qdrant-operator-crds/templates/region-crds/*.yaml; do \
for file in $(CHART_DIR)/templates/region-crds/*.yaml; do \
echo "{{ if .Values.includeRegionCRDs }}" | cat - $$file > temp && mv temp $$file; \
echo "{{ end }}" >> $$file; \
done
helm lint charts/qdrant-operator-crds
helm lint $(CHART_DIR)

.PHONY: generate
generate: controller-gen crd-ref-docs ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v2
name: qdrant-operator-crds
description: Operator CRDs used to manage Qdrant databases inside of Kubernetes # Used by both the operator and agent.
name: qdrant-kubernetes-api
description: Kubernetes API (CRDs) used to manage Qdrant databases inside of Kubernetes cluster # Used by both the operator and agent.
home: https://qdrant.tech
type: application
version: 0.1.0
sources:
- https://github.com/qdrant/operator
- https://github.com/qdrant/kubernetes-api
keywords:
- vector database
maintainers:
Expand Down
Loading