-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Fritch <[email protected]>
- Loading branch information
1 parent
c63d2b9
commit 35a5412
Showing
24 changed files
with
965 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
charts/rke2-multus/rke2-multus/v4.0.2-build2023070702/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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 | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
17 changes: 17 additions & 0 deletions
17
charts/rke2-multus/rke2-multus/v4.0.2-build2023070702/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v2 | ||
appVersion: 4.0.2 | ||
dependencies: | ||
- condition: rke2-whereabouts.enabled | ||
name: rke2-whereabouts | ||
repository: file://./charts/rke2-whereabouts | ||
description: Multus Helm chart for Kubernetes | ||
home: https://github.com/k8snetworkplumbingwg/multus-cni | ||
icon: https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/doc/images/Multus.png | ||
maintainers: | ||
- email: [email protected] | ||
name: Rancher Labs | ||
name: rke2-multus | ||
sources: | ||
- https://github.com/intel/multus-cni | ||
type: application | ||
version: v4.0.2-build2023070702 |
23 changes: 23 additions & 0 deletions
23
charts/rke2-multus/rke2-multus/v4.0.2-build2023070702/charts/rke2-whereabouts/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
10 changes: 10 additions & 0 deletions
10
charts/rke2-multus/rke2-multus/v4.0.2-build2023070702/charts/rke2-whereabouts/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v2 | ||
appVersion: 0.6.2 | ||
description: A Helm chart to deploy the whereabouts CNI | ||
home: https://github.com/k8snetworkplumbingwg/whereabouts | ||
maintainers: | ||
- email: [email protected] | ||
name: Rancher Labs | ||
name: rke2-whereabouts | ||
type: application | ||
version: 0.1.1 |
69 changes: 69 additions & 0 deletions
69
.../v4.0.2-build2023070702/charts/rke2-whereabouts/crds/whereabouts.cni.cncf.io_ippools.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.4.1 | ||
creationTimestamp: null | ||
name: ippools.whereabouts.cni.cncf.io | ||
spec: | ||
group: whereabouts.cni.cncf.io | ||
names: | ||
kind: IPPool | ||
listKind: IPPoolList | ||
plural: ippools | ||
singular: ippool | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: IPPool is the Schema for the ippools API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: IPPoolSpec defines the desired state of IPPool | ||
properties: | ||
allocations: | ||
additionalProperties: | ||
description: IPAllocation represents metadata about the pod/container | ||
owner of a specific IP | ||
properties: | ||
id: | ||
type: string | ||
podref: | ||
type: string | ||
required: | ||
- id | ||
type: object | ||
description: Allocations is the set of allocated IPs for the given | ||
range. Its` indices are a direct mapping to the IP with the same | ||
index/offset for the pool's range. | ||
type: object | ||
range: | ||
description: Range is a RFC 4632/4291-style string that represents | ||
an IP address and prefix length in CIDR notation | ||
type: string | ||
required: | ||
- allocations | ||
- range | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
56 changes: 56 additions & 0 deletions
56
.../charts/rke2-whereabouts/crds/whereabouts.cni.cncf.io_overlappingrangeipreservations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.4.1 | ||
creationTimestamp: null | ||
name: overlappingrangeipreservations.whereabouts.cni.cncf.io | ||
spec: | ||
group: whereabouts.cni.cncf.io | ||
names: | ||
kind: OverlappingRangeIPReservation | ||
listKind: OverlappingRangeIPReservationList | ||
plural: overlappingrangeipreservations | ||
singular: overlappingrangeipreservation | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: OverlappingRangeIPReservation is the Schema for the OverlappingRangeIPReservations | ||
API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: OverlappingRangeIPReservationSpec defines the desired state | ||
of OverlappingRangeIPReservation | ||
properties: | ||
containerid: | ||
type: string | ||
podref: | ||
type: string | ||
required: | ||
- containerid | ||
type: object | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
5 changes: 5 additions & 0 deletions
5
...ke2-multus/rke2-multus/v4.0.2-build2023070702/charts/rke2-whereabouts/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Whereabouts is installed!! | ||
|
||
You can view the pods with the following command: | ||
|
||
kubectl get pods -n {{ .Release.Namespace }} -l app=whereabouts |
86 changes: 86 additions & 0 deletions
86
...-multus/rke2-multus/v4.0.2-build2023070702/charts/rke2-whereabouts/templates/_helpers.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{{/* | ||
Support private registry. | ||
*/}} | ||
{{- define "system_default_registry" -}} | ||
{{- if .Values.global.systemDefaultRegistry -}} | ||
{{- printf "%s/" .Values.global.systemDefaultRegistry -}} | ||
{{- else -}} | ||
{{- "" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "whereabouts.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 "whereabouts.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 }} | ||
|
||
{{/* | ||
Provide a method to override namespace so parent charts can set it | ||
*/}} | ||
{{- define "whereabouts.namespace" -}} | ||
{{- if hasKey .Values "namespaceOverride" -}} | ||
namespace: {{ .Values.namespaceOverride }} | ||
{{- else }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "whereabouts.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "whereabouts.labels" -}} | ||
app: whereabouts | ||
helm.sh/chart: {{ include "whereabouts.chart" . }} | ||
{{ include "whereabouts.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "whereabouts.selectorLabels" -}} | ||
app: {{ include "whereabouts.name" . }} | ||
app.kubernetes.io/name: {{ include "whereabouts.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "whereabouts.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "whereabouts.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} |
46 changes: 46 additions & 0 deletions
46
...us/rke2-multus/v4.0.2-build2023070702/charts/rke2-whereabouts/templates/cluster_role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "whereabouts.serviceAccountName" . }} | ||
rules: | ||
- apiGroups: | ||
- whereabouts.cni.cncf.io | ||
resources: | ||
- ippools | ||
- overlappingrangeipreservations | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- coordination.k8s.io | ||
resources: | ||
- leases | ||
verbs: | ||
- '*' | ||
- apiGroups: [""] | ||
resources: | ||
- pods | ||
verbs: | ||
- list | ||
- watch | ||
- apiGroups: ["k8s.cni.cncf.io"] | ||
resources: | ||
- network-attachment-definitions | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
- events.k8s.io | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch | ||
- update |
15 changes: 15 additions & 0 deletions
15
...multus/v4.0.2-build2023070702/charts/rke2-whereabouts/templates/cluster_role_binding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if .Values.serviceAccount.create -}} | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ include "whereabouts.serviceAccountName" . }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "whereabouts.serviceAccountName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "whereabouts.serviceAccountName" . }} | ||
{{- include "whereabouts.namespace" . | nindent 2 }} | ||
{{- end }} |
Oops, something went wrong.