Skip to content

Commit

Permalink
feat: introduce harvester-vm-dhcp-controller chart
Browse files Browse the repository at this point in the history
Signed-off-by: Zespre Chang <[email protected]>
  • Loading branch information
starbops authored and ibrokethecloud committed Feb 7, 2024
1 parent 894cfcb commit 948385c
Show file tree
Hide file tree
Showing 11 changed files with 877 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/harvester-vm-dhcp-controller/.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/
27 changes: 27 additions & 0 deletions charts/harvester-vm-dhcp-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v2
name: harvester-vm-dhcp-controller
description: A Helm chart for Harvester VM DHCP Controller

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.0-dev

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.1.0"

maintainers:
- name: harvester
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
{}
name: ippools.network.harvesterhci.io
spec:
group: network.harvesterhci.io
names:
kind: IPPool
listKind: IPPoolList
plural: ippools
shortNames:
- ippl
- ippls
singular: ippool
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.networkName
name: NETWORK
type: string
- jsonPath: .status.ipv4.available
name: AVAILABLE
type: integer
- jsonPath: .status.ipv4.used
name: USED
type: integer
- jsonPath: .status.conditions[?(@.type=='Registered')].status
name: REGISTERED
type: string
- jsonPath: .status.conditions[?(@.type=='CacheReady')].status
name: CACHEREADY
type: string
- jsonPath: .status.conditions[?(@.type=='AgentReady')].status
name: AGENTREADY
type: string
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
name: v1alpha1
schema:
openAPIV3Schema:
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:
properties:
ipv4Config:
properties:
cidr:
type: string
dns:
items:
type: string
type: array
domainName:
type: string
domainSearch:
items:
type: string
type: array
leaseTime:
type: integer
ntp:
items:
type: string
type: array
pool:
properties:
end:
type: string
exclude:
items:
type: string
type: array
start:
type: string
type: object
router:
type: string
serverIP:
type: string
type: object
networkName:
type: string
paused:
type: boolean
type: object
status:
properties:
agentPodRef:
properties:
name:
type: string
namespace:
type: string
type: object
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
type: string
lastUpdateTime:
description: The last time this condition was updated.
type: string
message:
description: Human-readable message indicating details about
last transition
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition.
type: string
required:
- status
- type
type: object
type: array
ipv4:
properties:
allocated:
additionalProperties:
type: string
type: object
available:
type: integer
used:
type: integer
required:
- available
- used
type: object
lastUpdate:
format: date-time
type: string
type: object
type: object
served: true
storage: true
subresources: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
{}
name: virtualmachinenetworkconfigs.network.harvesterhci.io
spec:
group: network.harvesterhci.io
names:
kind: VirtualMachineNetworkConfig
listKind: VirtualMachineNetworkConfigList
plural: virtualmachinenetworkconfigs
shortNames:
- vmnetcfg
- vmnetcfgs
singular: virtualmachinenetworkconfig
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.vmName
name: VMNAME
type: string
- jsonPath: .status.conditions[?(@.type=='Allocated')].status
name: ALLOCATED
type: string
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
name: v1alpha1
schema:
openAPIV3Schema:
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:
properties:
networkConfig:
items:
properties:
ipAddress:
type: string
macAddress:
type: string
networkName:
type: string
type: object
type: array
paused:
type: boolean
vmName:
type: string
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
type: string
lastUpdateTime:
description: The last time this condition was updated.
type: string
message:
description: Human-readable message indicating details about
last transition
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of cluster condition.
type: string
required:
- status
- type
type: object
type: array
networkConfig:
items:
properties:
allocatedIPAddress:
type: string
macAddress:
type: string
networkName:
type: string
state:
type: string
type: object
type: array
type: object
type: object
served: true
storage: true
subresources: {}
1 change: 1 addition & 0 deletions charts/harvester-vm-dhcp-controller/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The harvester-vm-dhcp-controller has been installed into "{{ .Release.Namespace }}" namespace.
Loading

0 comments on commit 948385c

Please sign in to comment.