Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit f9632f2

Browse files
committed
Adding buildconfig helm chart
1 parent 5308b57 commit f9632f2

File tree

6 files changed

+118
-0
lines changed

6 files changed

+118
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: v2
2+
name: helm-buildconfig-example
3+
description: A Helm chart for Kubernetes
4+
5+
maintainers:
6+
- name: claudiol
7+
8+
9+
# A chart can be either an 'application' or a 'library' chart.
10+
#
11+
# Application charts are a collection of templates that can be packaged into versioned archives
12+
# to be deployed.
13+
#
14+
# Library charts provide useful utilities or functions for the chart developer. They're included as
15+
# a dependency of application charts to inject those utilities and functions into the rendering
16+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
17+
type: application
18+
19+
# This is the chart version. This version number should be incremented each time you make changes
20+
# to the chart and its templates, including the app version.
21+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
22+
version: 0.1.0
23+
24+
# This is the version number of the application being deployed. This version number should be
25+
# incremented each time you make changes to the application. Versions are not expected to
26+
# follow Semantic Versioning. They should reflect the version the application is using.
27+
# It is recommended to use it with quotes.
28+
appVersion: "0.1.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: build.openshift.io/v1
2+
kind: BuildConfig
3+
metadata:
4+
name: {{ .Values.buildconfig.example.name }}
5+
namespace: {{ .Values.buildconfig.example.name }}
6+
labels:
7+
app: cli-tools
8+
spec:
9+
source:
10+
type: Git
11+
git:
12+
uri: {{ .Values.buildconfig.example.git.uri }}
13+
ref: {{ .Values.buildconfig.example.git.ref }}
14+
contextDir: {{ .Values.buildconfig.example.contextDir }}
15+
strategy:
16+
type: Docker
17+
dockerStrategy:
18+
dockerfilePath: Dockerfile
19+
from:
20+
kind: ImageStreamTag
21+
namespace: openshift
22+
name: cli:latest
23+
output:
24+
to:
25+
kind: ImageStreamTag
26+
name: cli-tools:latest
27+
triggers:
28+
- type: ImageChange
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: image.openshift.io/v1
2+
kind: ImageStream
3+
metadata:
4+
name: {{ .Values.buildconfig.example.name }}
5+
namespace: {{ .Values.buildconfig.example.namespace }}
6+
spec:
7+
lookupPolicy:
8+
local: false
9+
tags:
10+
- name: latest
11+
from:
12+
kind: DockerImage
13+
name: image-registry.openshift-image-registry.svc:5000/openshift/cli
14+
referencePolicy:
15+
type: Source
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- if .Values.buildconfig.createNamespace }}
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
labels:
6+
kubernetes.io/metadata.name: buildconfig-example
7+
name: buildconfig-example
8+
spec:
9+
finalizers:
10+
- kubernetes
11+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Default values for helm-buildconfig-example.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
buildconfig:
6+
example:
7+
name: cli-tools
8+
namespace: buildconfig-example
9+
git:
10+
uri: https://github.com/hybrid-cloud-patterns/s2i-cli-tools
11+
ref: main
12+
contextDir: containerfiles
13+
createNamespace: true

0 commit comments

Comments
 (0)