Skip to content

Commit 7536980

Browse files
pepovcsatib02
andcommitted
chore(charts): rename crds subchart to logging-operator-crds
Signed-off-by: Peter Wilcsinszky <peter.wilcsinszky@axoflow.com> Co-authored-by: Bence Csati <bence.csati@axoflow.com>
1 parent 3b67b93 commit 7536980

24 files changed

+30
-30
lines changed

.github/workflows/artifacts.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -387,69 +387,69 @@ jobs:
387387
if: github.repository == 'kube-logging/logging-operator'
388388
name: CRD subchart
389389
runs-on: ubuntu-latest
390-
390+
391391
permissions:
392392
contents: read
393393
packages: write
394394
id-token: write
395395
security-events: write
396-
396+
397397
outputs:
398398
name: ${{ steps.oci-chart-name.outputs.value }}
399399
tag: ${{ steps.version.outputs.value }}
400400
package: ${{ steps.build.outputs.package }}
401-
401+
402402
env:
403-
subchartPath: logging-operator/charts/crds
404-
subchartName: crds
405-
403+
subchartPath: logging-operator/charts/logging-operator-crds
404+
subchartName: logging-operator-crds
405+
406406
steps:
407407
- name: Checkout repository
408408
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
409-
409+
410410
- name: Set up Helm
411411
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
412412
with:
413413
version: v3.12.0
414-
414+
415415
- name: Set up Cosign
416416
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
417-
417+
418418
- name: Set chart name
419419
id: chart-name
420420
run: echo "value=${{ github.event.repository.name }}/$subchartName" >> "$GITHUB_OUTPUT"
421-
421+
422422
- name: Set OCI registry name
423423
id: oci-registry-name
424424
run: echo "value=ghcr.io/${{ github.repository_owner }}/helm-charts" >> "$GITHUB_OUTPUT"
425-
425+
426426
- name: Set OCI chart name
427427
id: oci-chart-name
428428
run: echo "value=${{ steps.oci-registry-name.outputs.value }}/${{ steps.chart-name.outputs.value }}" >> "$GITHUB_OUTPUT"
429-
429+
430430
- name: Helm lint
431431
run: helm lint charts/$subchartPath
432-
432+
433433
- name: Determine raw version
434434
uses: haya14busa/action-cond@94f77f7a80cd666cb3155084e428254fea4281fd # v1.2.1
435435
id: version
436436
with:
437437
cond: ${{ inputs.release }}
438438
if_true: ${{ github.ref_name }}
439439
if_false: 0.0.0
440-
440+
441441
- name: Helm package
442442
id: build
443443
run: |
444444
helm package charts/$subchartPath --version ${{ steps.version.outputs.value }} --app-version ${{ steps.version.outputs.value }}
445445
echo "package=${{ github.workspace }}/$subchartName-${{ steps.version.outputs.value }}.tgz" >> "$GITHUB_OUTPUT"
446-
446+
447447
- name: Upload chart as artifact
448448
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
449449
with:
450450
name: "[${{ github.job }}] Helm chart"
451451
path: ${{ steps.build.outputs.package }}
452-
452+
453453
- name: Login to GitHub Container Registry
454454
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
455455
with:
@@ -466,13 +466,13 @@ jobs:
466466
env:
467467
HELM_REGISTRY_CONFIG: ~/.docker/config.json
468468
if: inputs.publish && inputs.release
469-
469+
470470
- name: Sign chart with GitHub OIDC Token
471471
if: ${{ inputs.publish && inputs.release && github.repository_owner == 'kube-logging' }} # Check if the workflow is called by the same GitHub organization
472472
env:
473473
DIGEST: ${{ steps.push.outputs.digest }}
474474
run: cosign sign --yes --rekor-url "https://rekor.sigstore.dev/" "${{ steps.oci-chart-name.outputs.value }}@${DIGEST}"
475-
475+
476476
- name: Verify signed chart with cosign
477477
if: ${{ inputs.publish && inputs.release && github.repository_owner == 'kube-logging' }} # Check if the workflow is called by the same GitHub organization
478478
env:
@@ -482,25 +482,25 @@ jobs:
482482
--rekor-url "https://rekor.sigstore.dev/" \
483483
--certificate-identity "https://github.com/${{ github.repository }}/.github/workflows/artifacts.yaml@${{ github.ref }}" \
484484
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" | jq
485-
485+
486486
- name: Run Trivy vulnerability scanner
487487
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # 0.28.0
488488
env:
489489
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
490490
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:1
491491
with:
492492
scan-type: config
493-
scan-ref: charts/${{ steps.chart-name.outputs.value }}
493+
scan-ref: charts/$subchartPath
494494
format: sarif
495495
output: trivy-results.sarif
496-
496+
497497
- name: Upload Trivy scan results as artifact
498498
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
499499
with:
500500
name: "[${{ github.job }}] Trivy scan results"
501501
path: trivy-results.sarif
502502
retention-days: 5
503-
503+
504504
- name: Upload Trivy scan results to GitHub Security tab
505505
uses: github/codeql-action/upload-sarif@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2.22.8
506506
with:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ manifests: ${CONTROLLER_GEN} ## Generate manifests e.g. CRD, RBAC etc.
149149
cd pkg/sdk && $(CONTROLLER_GEN) $(CRD_OPTIONS) webhook paths="./..." output:crd:artifacts:config=../../config/crd/bases output:webhook:artifacts:config=../../config/webhook
150150
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role paths="./controllers/..." output:rbac:artifacts:config=./config/rbac
151151
cp config/crd/bases/* charts/logging-operator/crds/
152-
for f in config/crd/bases/*.yaml; do sed '/controller-gen.kubebuilder.io\/version/ r hack/crds.annotations.snippet.txt' $${f} > charts/logging-operator/charts/crds/templates/$${f##*/}; done
152+
for f in config/crd/bases/*.yaml; do sed '/controller-gen.kubebuilder.io\/version/ r hack/crds.annotations.snippet.txt' $${f} > charts/logging-operator/charts/logging-operator-crds/templates/$${f##*/}; done
153153
echo "{{- if .Values.rbac.enabled }}" > ./charts/logging-operator/templates/clusterrole.yaml
154154
cat config/rbac/role.yaml | sed -e 's@manager-role@{{ template "logging-operator.fullname" . }}@' | sed -e '/creationTimestamp/d' | cat >> ./charts/logging-operator/templates/clusterrole.yaml
155155
echo "{{- end }}" >> ./charts/logging-operator/templates/clusterrole.yaml

charts/logging-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ sources:
1414
- https://github.com/kube-logging/logging-operator
1515
- https://github.com/kube-logging/helm-charts/tree/main/charts/logging-operator
1616
dependencies:
17-
- name: crds
17+
- name: logging-operator-crds
1818
version: 0.0.0
19-
condition: crds.install
19+
condition: logging-operator-crds.install

charts/logging-operator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Use `createCustomResource=false` with Helm v3 to avoid trying to create CRDs fro
4848
| namespaceOverride | string | `""` | A namespace override for the app. |
4949
| annotations | object | `{}` | Define annotations for logging-operator pods. |
5050
| createCustomResource | bool | `false` | Deploy CRDs used by Logging Operator. |
51-
| crds.install | bool | `false` | Toggle to install and upgrade CRDs from a subchart. Make sure to use it with `--skip-crds` to avoid conflicts. [More info about limitations on CRDs in Helm 3](https://helm.sh/docs/topics/charts/#limitations-on-crds) |
52-
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
51+
| logging-operator-crds.install | bool | `false` | Toggle to install and upgrade CRDs from a subchart. Make sure to use it with `--skip-crds` to avoid conflicts. [More info about limitations on CRDs in Helm 3](https://helm.sh/docs/topics/charts/#limitations-on-crds) |
52+
| logging-operator-crds.annotations | object | `{}` | Annotations to be added to all CRDs |
5353
| http.port | int | `8080` | HTTP listen port number. |
5454
| http.service | object | `{"annotations":{},"clusterIP":"None","labels":{},"type":"ClusterIP"}` | Service definition for query http service. |
5555
| rbac.enabled | bool | `true` | Create rbac service account and roles. |

charts/logging-operator/charts/crds/Chart.yaml renamed to charts/logging-operator/charts/logging-operator-crds/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
apiVersion: v2
2-
name: crds
2+
name: logging-operator-crds
33
version: 0.0.0

charts/logging-operator/charts/crds/README.md renamed to charts/logging-operator/charts/logging-operator-crds/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# crds
1+
# logging-operator-crds
22

33
![Version: 0.0.0](https://img.shields.io/badge/Version-0.0.0-informational?style=flat-square)
44

charts/logging-operator/charts/crds/templates/logging-extensions.banzaicloud.io_eventtailers.yaml renamed to charts/logging-operator/charts/logging-operator-crds/templates/logging-extensions.banzaicloud.io_eventtailers.yaml

File renamed without changes.

charts/logging-operator/charts/crds/templates/logging-extensions.banzaicloud.io_hosttailers.yaml renamed to charts/logging-operator/charts/logging-operator-crds/templates/logging-extensions.banzaicloud.io_hosttailers.yaml

File renamed without changes.

charts/logging-operator/charts/crds/templates/logging.banzaicloud.io_clusterflows.yaml renamed to charts/logging-operator/charts/logging-operator-crds/templates/logging.banzaicloud.io_clusterflows.yaml

File renamed without changes.

charts/logging-operator/charts/crds/templates/logging.banzaicloud.io_clusteroutputs.yaml renamed to charts/logging-operator/charts/logging-operator-crds/templates/logging.banzaicloud.io_clusteroutputs.yaml

File renamed without changes.

0 commit comments

Comments
 (0)