Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
08b3e9e5
Commit
08b3e9e5
authored
Oct 02, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ability to add external ifaces using macvlan
parent
057ab72f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
0 deletions
+68
-0
charts/ix-chart/2009.0.1/questions.yaml
charts/ix-chart/2009.0.1/questions.yaml
+41
-0
charts/ix-chart/2009.0.1/templates/_helpers.tpl
charts/ix-chart/2009.0.1/templates/_helpers.tpl
+7
-0
charts/ix-chart/2009.0.1/templates/deployment.yaml
charts/ix-chart/2009.0.1/templates/deployment.yaml
+8
-0
charts/ix-chart/2009.0.1/templates/external-interfaces.yaml.py
...s/ix-chart/2009.0.1/templates/external-interfaces.yaml.py
+9
-0
charts/ix-chart/2009.0.1/values.yaml
charts/ix-chart/2009.0.1/values.yaml
+3
-0
No files found.
charts/ix-chart/2009.0.1/questions.yaml
View file @
08b3e9e5
...
...
@@ -82,3 +82,44 @@
schema
:
type
:
string
required
:
true
# Networking options
-
variable
:
externalInterfaces
description
:
"
Add
External
Interfaces"
label
:
"
Add
external
Interfaces"
group
:
"
Networking"
schema
:
type
:
list
items
:
-
variable
:
interfaceConfiguration
description
:
"
Interface
Configuration"
label
:
"
Interface
Configuration"
schema
:
type
:
dict
$ref
:
-
"
normalise/interfaceConfiguration"
attrs
:
-
variable
:
hostInterface
description
:
"
Please
specify
host
interface"
label
:
"
Host
Interface"
schema
:
type
:
string
required
:
true
$ref
:
-
"
definitions/interface"
-
variable
:
ipam
description
:
"
Define
how
IP
Address
will
be
managed"
label
:
"
IP
Address
Management"
schema
:
type
:
dict
required
:
true
attrs
:
-
variable
:
type
description
:
"
Specify
type
for
IPAM"
label
:
"
IPAM
Type"
schema
:
type
:
string
required
:
true
enum
:
-
"
dhcp"
-
"
static"
charts/ix-chart/2009.0.1/templates/_helpers.tpl
View file @
08b3e9e5
...
...
@@ -61,3 +61,10 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
{
{
/*
Name
for
external
interfaces
to
be
added
to
chart
*/
}
}
{{- define "externalInterfaceName" -}}
{{- printf "%s" .Release.Name }}
{{- end }}
charts/ix-chart/2009.0.1/templates/deployment.yaml
View file @
08b3e9e5
...
...
@@ -12,6 +12,14 @@ spec:
metadata
:
labels
:
{{
- include "ix-chart.selectorLabels" . | nindent 8
}}
annotations
:
rollme
:
{{
randAlphaNum 5 | quote
}}
{{
- if .Values.externalInterfaces
}}
k8s.v1.cni.cncf.io/networks
:
{{
- range $index
,
$iface
:
= .Values.externalInterfaces
}}
-
{{
include "externalInterfaceName" .
}}
-{{ $index }}
{{
- end
}}
{{
- end
}}
spec
:
containers
:
-
name
:
{{
.Chart.Name
}}
...
...
charts/ix-chart/2009.0.1/templates/external-interfaces.yaml.py
0 → 100644
View file @
08b3e9e5
{{
-
range
$
index
,
$
iface
:
=
.
Values
.
externalInterfaces
}}
apiVersion
:
"k8s.cni.cncf.io/v1"
kind
:
NetworkAttachmentDefinition
metadata
:
name
:
{{
include
"externalInterfaceName"
.
}}
-
{{
$
index
}}
spec
:
config
:
'{{ $iface }}'
----------------------------------------------------------
{{
-
end
}}
charts/ix-chart/2009.0.1/values.yaml
View file @
08b3e9e5
...
...
@@ -10,3 +10,6 @@ image:
containerCommand
:
[]
containerArgs
:
[]
containerEnvironmentVariables
:
[]
# Network related configuration
externalInterfaces
:
[]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment