Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Policy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU Software
OSDU Data Platform
Security and Compliance
Policy
Merge requests
!209
Draft: Merge ibm helm to master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Merge ibm helm to master
merge-ibm-helm
into
master
Overview
12
Commits
64
Pipelines
8
Changes
21
Closed
Manish Singh
requested to merge
merge-ibm-helm
into
master
2 years ago
Overview
12
Commits
64
Pipelines
8
Changes
21
Expand
ibm-helm-charts : Merge ibm helm to master
0
0
Merge request reports
Compare
master
version 3
593dbae2
2 years ago
version 2
35d9ab0c
2 years ago
version 1
236d932e
2 years ago
master (base)
and
latest version
latest version
08a2a1b2
64 commits,
2 years ago
version 3
593dbae2
63 commits,
2 years ago
version 2
35d9ab0c
62 commits,
2 years ago
version 1
236d932e
32 commits,
2 years ago
21 files
+
690
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
21
Search (e.g. *.vue) (Ctrl+P)
devops/ibm/ibm-policy-config/templates/_helpers.tpl
0 → 100644
+
62
−
0
Options
{{
/*
Expand
the
name
of
the
chart
.
*/
}}
{{- define "ibm-policy-config.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{
{
/*
Create
a
default
fully
qualified
app
name
.
We
truncate
at
63
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
If
release
name
contains
chart
name
it
will
be
used
as
a
full
name
.
*/
}
}
{{- define "ibm-policy-config.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{
{
/*
Create
chart
name
and
version
as
used
by
the
chart
label
.
*/
}
}
{{- define "ibm-policy-config.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{
{
/*
Common
labels
*/
}
}
{{- define "ibm-policy-config.labels" -}}
helm.sh/chart: {{ include "ibm-policy-config.chart" . }}
{{ include "ibm-policy-config.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{
{
/*
Selector
labels
*/
}
}
{{- define "ibm-policy-config.selectorLabels" -}}
app.kubernetes.io/name: {{ include "ibm-policy-config.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{
{
/*
Create
the
name
of
the
service
account
to
use
*/
}
}
{{- define "ibm-policy-config.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "ibm-policy-config.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
Loading