Skip to content

Commit

Permalink
feat(charts/prow-crd): add chart prow-crd (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo authored Dec 16, 2022
1 parent 08bae50 commit 2b88725
Show file tree
Hide file tree
Showing 6 changed files with 23,324 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/charts_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- "charts/*"
- "charts/**"

jobs:
release:
Expand Down
23 changes: 23 additions & 0 deletions charts/prow/charts/prow-crd/.helmignore
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/
26 changes: 26 additions & 0 deletions charts/prow/charts/prow-crd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: prow-crd
description: Prow custom resource definations.
maintainers:
- name: wuhuizuo
email: [email protected]
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: v0.6.3-0.20210827222652-7b3a8699fa04
14 changes: 14 additions & 0 deletions charts/prow/charts/prow-crd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "prow-crd.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "prow-crd.labels" -}}
helm.sh/chart: {{ include "prow-crd.chart" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
Loading

0 comments on commit 2b88725

Please sign in to comment.