Skip to content

Commit

Permalink
Merge pull request #22 from calvin0327/separate-core-chart
Browse files Browse the repository at this point in the history
separate core chart form clusterpedia
  • Loading branch information
Iceber committed Dec 12, 2022
2 parents 90975db + f8b7c33 commit b08c177
Show file tree
Hide file tree
Showing 26 changed files with 1,428 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
push:
pull_request:
paths:
- "charts/clusterpedia/**"
- "charts/**"

jobs:
chart-lint-test:
Expand Down
21 changes: 21 additions & 0 deletions charts/clusterpedia-core/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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
6 changes: 6 additions & 0 deletions charts/clusterpedia-core/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.17.1
digest: sha256:91bdebcf473f5da3c018dd74f25fab166d4faaa6be86d492f5caa50fc63f93fb
generated: "2022-11-24T10:42:29.705512+08:00"
37 changes: 37 additions & 0 deletions charts/clusterpedia-core/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: v2
name: clusterpedia-core
description: A Helm chart for Kubernetes

# 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.1

# 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.6.0"

sources:
- "https://github.com/clusterpedia-io/clusterpedia-helm"

maintainers:
- name: clusterpedia-io
url: https://github.com/clusterpedia-io/clusterpedia-helm

# This is clusterpedia dependencies
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.x.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
helm.sh/resource-policy: keep
creationTimestamp: null
name: clustersyncresources.cluster.clusterpedia.io
spec:
group: cluster.clusterpedia.io
names:
kind: ClusterSyncResources
listKind: ClusterSyncResourcesList
plural: clustersyncresources
singular: clustersyncresources
scope: Cluster
versions:
- name: v1alpha2
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:
syncResources:
items:
properties:
group:
type: string
resources:
items:
type: string
minItems: 1
type: array
versions:
items:
type: string
type: array
required:
- group
- resources
type: object
type: array
required:
- syncResources
type: object
type: object
served: true
storage: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
helm.sh/resource-policy: keep
creationTimestamp: null
name: pediaclusters.cluster.clusterpedia.io
spec:
group: cluster.clusterpedia.io
names:
kind: PediaCluster
listKind: PediaClusterList
plural: pediaclusters
singular: pediacluster
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .status.conditions[?(@.type == 'Ready')].status
name: Ready
type: string
- jsonPath: .status.version
name: Version
type: string
- jsonPath: .status.apiserver
name: APIServer
type: string
- jsonPath: .status.conditions[?(@.type == 'Validated')].reason
name: Validated
priority: 10
type: string
- jsonPath: .status.conditions[?(@.type == 'SynchroRunning')].reason
name: SynchroRunning
priority: 10
type: string
- jsonPath: .status.conditions[?(@.type == 'ClusterHealthy')].reason
name: ClusterHealthy
priority: 10
type: string
name: v1alpha2
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:
apiserver:
type: string
caData:
format: byte
type: string
certData:
format: byte
type: string
keyData:
format: byte
type: string
kubeconfig:
format: byte
type: string
syncAllCustomResources:
type: boolean
syncResources:
items:
properties:
group:
type: string
resources:
items:
type: string
minItems: 1
type: array
versions:
items:
type: string
type: array
required:
- group
- resources
type: object
type: array
syncResourcesRefName:
type: string
tokenData:
format: byte
type: string
required:
- syncResources
type: object
status:
properties:
apiserver:
type: string
conditions:
items:
description: "Condition contains details for one aspect of the current
state of this API Resource. --- This struct is intended for direct
use as an array at the field path .status.conditions. For example,
\n type FooStatus struct{ // Represents the observations of a
foo's current state. // Known .status.conditions.type are: \"Available\",
\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge
// +listType=map // +listMapKey=type Conditions []metav1.Condition
`json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\"
protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
properties:
lastTransitionTime:
description: lastTransitionTime is the last time the condition
transitioned from one status to another. This should be when
the underlying condition changed. If that is not known, then
using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: message is a human readable message indicating
details about the transition. This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: observedGeneration represents the .metadata.generation
that the condition was set based upon. For instance, if .metadata.generation
is currently 12, but the .status.conditions[x].observedGeneration
is 9, the condition is out of date with respect to the current
state of the instance.
format: int64
minimum: 0
type: integer
reason:
description: reason contains a programmatic identifier indicating
the reason for the condition's last transition. Producers
of specific condition types may define expected values and
meanings for this field, and whether the values are considered
a guaranteed API. The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- "True"
- "False"
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase.
--- Many .condition.type values are consistent across resources
like Available, but because arbitrary conditions can be useful
(see .node.status.conditions), the ability to deconflict is
important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
syncResources:
items:
properties:
group:
type: string
resources:
items:
properties:
kind:
type: string
name:
type: string
namespaced:
type: boolean
syncConditions:
items:
properties:
lastTransitionTime:
format: date-time
type: string
message:
description: optional
type: string
reason:
description: optional
type: string
status:
type: string
storageResource:
description: optional
type: string
storageVersion:
description: optional
type: string
syncResource:
description: optional
type: string
syncVersion:
description: optional
type: string
version:
type: string
required:
- lastTransitionTime
- status
- version
type: object
type: array
required:
- kind
- name
- namespaced
- syncConditions
type: object
type: array
required:
- group
- resources
type: object
type: array
version:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit b08c177

Please sign in to comment.