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

Place crd in the chart directory's crds directory of the log router #343

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
38 changes: 38 additions & 0 deletions charts/log-router/templates/crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{{ if .Values.installCrd }}
{{- /* if we need the CRD, install it */ -}}

{{/*
this CRD needs to live in the template directory because CRDs within the
chart crds/ directory are not processed as templates
*/}}

#
# log-router CRD resource:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: fluentdconfigs.logs.vdp.vmware.com
spec:
conversion:
strategy: None
group: logs.vdp.vmware.com
names:
kind: FluentdConfig
listKind: FluentdConfigList
plural: fluentdconfigs
singular: fluentdconfig
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
spec:
properties:
fluentconf:
type: string
type: object
type: object
served: true
storage: true
{{ end }}
3 changes: 3 additions & 0 deletions charts/log-router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ datasource: default
# together with the specified legacy datasource to facilitate the migration process to CRDs.
crdMigrationMode: false

# default to installing the CRD along with the helm chart
installCrd: true

defaultConfigmap: "fluentd-config"

image:
Expand Down
28 changes: 0 additions & 28 deletions kubectl/crd.yaml

This file was deleted.

1 change: 1 addition & 0 deletions kubectl/crd.yaml