Skip to content

Commit

Permalink
Add namespace template
Browse files Browse the repository at this point in the history
  • Loading branch information
rawagner committed Oct 31, 2023
1 parent a7ccf50 commit 1397bd2
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 68 deletions.
148 changes: 80 additions & 68 deletions index.yaml

Large diffs are not rendered by default.

Binary file added ns-template-0.0.1.tgz
Binary file not shown.
23 changes: 23 additions & 0 deletions ns-template/.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/
7 changes: 7 additions & 0 deletions ns-template/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v2
name: ns-template
description: A Helm chart which installs namespace
annotations:
cluster-template: true
type: application
version: 0.0.1
3 changes: 3 additions & 0 deletions ns-template/templates/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Namespace
metadata:
name: {{ .Release.Namespace }}-{{ .Release.Name }}
13 changes: 13 additions & 0 deletions ns-template/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: ns-role
rules:
- verbs:
- create
- get
- update
apiGroups:
- submariner.io
resources:
- brokers
12 changes: 12 additions & 0 deletions ns-template/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"required": [
"ocpVersion"
],
"properties": {
"ocpVersion": {
"type": "string"
}
}
}
6 changes: 6 additions & 0 deletions ns-template/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Default values for demo-template.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

#An OCP version to deploy
ocpVersion: 4.14.0-rc.7

0 comments on commit 1397bd2

Please sign in to comment.