Skip to content

Commit

Permalink
Merge pull request #9 from KusionStack/231030-release
Browse files Browse the repository at this point in the history
Operating v0.1.1
  • Loading branch information
Eikykun authored Oct 30, 2023
2 parents c6e6e50 + 77ad78b commit f9ade51
Show file tree
Hide file tree
Showing 14 changed files with 1,721 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operating
16 changes: 16 additions & 0 deletions versions/operating/0.1.1/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
name: operating
description: Helm chart for KusionStack Operating
# 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.1.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: 0.1.1

home: https://KusionStack.io
sources:
- https://github.com/KusionStack/operating
Empty file.
18 changes: 18 additions & 0 deletions versions/operating/0.1.1/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


ShardingConfig options are enabled.

Default values:
```
sharding:
enabled: false # Apply a default ShardingConfig
isDemo: false # Create some demo namespace
replicas: 5 # StatefulSet Replicas
size: 2 # Sharding Size
```

You can enable ShardingConfig with
$helm install ctrlmesh kusionstack/ctrlmesh --version 0.1.1 --set sharding.enabled=true

KusionStack Operating v0.1.1 installed successfully.
Welcome! ^_^

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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.10.0
creationTimestamp: null
name: resourcecontexts.apps.kusionstack.io
spec:
group: apps.kusionstack.io
names:
kind: ResourceContext
listKind: ResourceContextList
plural: resourcecontexts
shortNames:
- rc
singular: resourcecontext
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ResourceContext is the Schema for the resourcecontext 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: ResourceContextSpec defines the desired state of ResourceContext
properties:
contexts:
items:
properties:
data:
additionalProperties:
type: string
type: object
id:
type: integer
required:
- id
type: object
type: array
type: object
type: object
served: true
storage: true
107 changes: 107 additions & 0 deletions versions/operating/0.1.1/templates/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{{- if .Values.namespaceEnabled -}}
apiVersion: v1
kind: Namespace
metadata:
labels:
{{- toYaml .Values.commonLabels | nindent 4 }}
control-plane: {{ .Values.controlPlane }}
name: {{ .Values.namespace }}
{{- end }}

{{- if .Values.sharding.isDemo }}
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0a
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0b
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0c
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0d
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0e
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0f
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0g
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0o
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0p
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0q
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0r
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0s
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0t
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0u
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0v
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0w
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0x
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0y
---
apiVersion: v1
kind: Namespace
metadata:
name: demo-0z
{{- end }}
Loading

0 comments on commit f9ade51

Please sign in to comment.