-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(charts): move CRDs to a subchart
Signed-off-by: Niladri Halder <[email protected]>
- Loading branch information
Showing
12 changed files
with
421 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
name: lvm-localpv | ||
description: CSI Driver for dynamic provisioning of LVM Persistent Local Volumes. | ||
version: 1.4.0 | ||
appVersion: 1.4.0 | ||
version: 1.5.0 | ||
appVersion: 1.5.0 | ||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png | ||
home: https://openebs.io/ | ||
keywords: | ||
|
@@ -14,6 +14,10 @@ keywords: | |
- storage | ||
sources: | ||
- https://github.com/openebs/lvm-localpv | ||
dependencies: | ||
- name: crds | ||
version: "1.5.0" | ||
condition: crds.enabled | ||
maintainers: | ||
- name: prateekpandey14 | ||
email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v2 | ||
name: crds | ||
version: 1.5.0 | ||
description: A Helm chart that collects CustomResourceDefinitions (CRDs) from lvm-localpv. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{/* | ||
This returns a "1" if the CRD is absent in the cluster | ||
Usage: | ||
{{- if (include "crdIsAbsent" (list <crd-name>)) -}} | ||
# CRD Yaml | ||
{{- end -}} | ||
*/}} | ||
{{- define "crdIsAbsent" -}} | ||
{{- $crdName := index . 0 -}} | ||
{{- $crd := lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" $crdName -}} | ||
{{- $output := "1" -}} | ||
{{- if $crd -}} | ||
{{- $output = "" -}} | ||
{{- end -}} | ||
|
||
{{- $output -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.