Skip to content

Commit

Permalink
release operating-0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikykun committed Sep 27, 2023
1 parent 4af43e4 commit 7adfaae
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 33 deletions.
2 changes: 1 addition & 1 deletion charts/operating
4 changes: 2 additions & 2 deletions versions/operating/0.1.0/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: Helm chart for operating components
# 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.0-beta.1
version: 0.1.0
# 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.0-beta.1
appVersion: 0.1.0

home: https://KusionStack.io
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
jsonPath: .status.replicas
name: CURRENT
type: integer
- description: The number of pods available.
jsonPath: .status.availableReplicas
name: AVAILABLE
type: integer
- description: The number of pods updated.
jsonPath: .status.updatedReplicas
name: UPDATED
Expand Down Expand Up @@ -95,6 +99,11 @@ spec:
It is not allowed to change. Context defaults to be CollaSet's
name.
type: string
operationDelaySeconds:
description: OperationDelaySeconds indicates how many seconds
it should delay before operating scale.
format: int32
type: integer
persistentVolumeClaimRetentionPolicy:
description: PersistentVolumeClaimRetentionPolicy describes the
lifecycle of PersistentVolumeClaim created from volumeClaimTemplates.
Expand Down Expand Up @@ -190,6 +199,11 @@ spec:
will be employed to update Pods in the CollaSet when a revision
is made to Template.
properties:
operationDelaySeconds:
description: OperationDelaySeconds indicates how many seconds
it should delay before operating update.
format: int32
type: integer
podUpgradePolicy:
description: PodUpdatePolicy indicates the policy by to update
pods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: rulesets.apps.kusionstack.io
name: podtransitionrules.apps.kusionstack.io
spec:
group: apps.kusionstack.io
names:
kind: RuleSet
listKind: RuleSetList
plural: rulesets
kind: PodTransitionRule
listKind: PodTransitionRuleList
plural: podtransitionrules
shortNames:
- rs
singular: ruleset
singular: podtransitionrule
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: RuleSet is the Schema for the rulesets API
description: PodTransitionRule is the Schema for the podtransitionrules API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -35,7 +35,7 @@ spec:
metadata:
type: object
spec:
description: RuleSetSpec defines the desired state of RuleSet
description: PodTransitionRuleSpec defines the desired state of PodTransitionRule
properties:
rules:
description: Rules is a set of rules that need to be checked in certain
Expand Down Expand Up @@ -258,7 +258,7 @@ spec:
type: object
type: array
selector:
description: Selector select the targets controlled by ruleset
description: Selector select the targets controlled by podtransitionrule
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
Expand Down Expand Up @@ -304,10 +304,10 @@ spec:
x-kubernetes-map-type: atomic
type: object
status:
description: RuleSetStatus defines the observed state of RuleSet
description: PodTransitionRuleStatus defines the observed state of PodTransitionRule
properties:
details:
description: Details contains all pods ruleset details
description: Details contains all pods podtransitionrule details
items:
properties:
name:
Expand Down Expand Up @@ -335,7 +335,7 @@ spec:
type: array
observedGeneration:
description: ObservedGeneration is the most recent generation observed
for RuleSet
for PodTransitionRule
format: int64
type: integer
ruleStates:
Expand All @@ -353,8 +353,8 @@ spec:
processing progress
properties:
itemStatus:
description: RuleSetPodStatus is async request status representing
the info of pods
description: PodTransitionRulePodStatus is async request
status representing the info of pods
items:
description: ItemStatus defines async request info of
resources
Expand Down Expand Up @@ -393,7 +393,7 @@ spec:
type: object
type: array
targets:
description: Targets contains the target resource names this RuleSet
description: Targets contains the target resource names this PodTransitionRule
is able to select.
items:
type: string
Expand Down
5 changes: 0 additions & 5 deletions versions/operating/0.1.0/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ spec:
periodSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 10 }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
serviceAccountName: kusionstack-controller-manager
terminationGracePeriodSeconds: 0
volumes:
Expand Down
6 changes: 3 additions & 3 deletions versions/operating/0.1.0/templates/rbac/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ rules:
- apiGroups:
- apps.kusionstack.io
resources:
- rulesets
- podtransitionrules
verbs:
- create
- delete
Expand All @@ -132,13 +132,13 @@ rules:
- apiGroups:
- apps.kusionstack.io
resources:
- rulesets/finalizers
- podtransitionrules/finalizers
verbs:
- update
- apiGroups:
- apps.kusionstack.io
resources:
- rulesets/status
- podtransitionrules/status
verbs:
- get
- patch
Expand Down
59 changes: 52 additions & 7 deletions versions/operating/0.1.0/templates/webhook/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ webhooks:
- v1beta1
clientConfig:
service:
name: kusionstack-controller-manager
namespace: {{ .Values.namespace }}
name: kusionstack-controller-manager
path: /mutating-generic
failurePolicy: Fail
name: mutating-generic.apps.kusionstack.io
name: mutating-pod.apps.kusionstack.io
objectSelector:
matchExpressions:
- key: podopslifecycle.kusionstack.io/control
- key: kusionstack.io/control
operator: In
values:
- "true"
Expand All @@ -34,6 +34,28 @@ webhooks:
- pods/status
scope: '*'
sideEffects: NoneOnDryRun
- name: mutating-generic.apps.kusionstack.io
sideEffects: NoneOnDryRun
admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
namespace: {{ .Values.namespace }}
name: kusionstack-controller-manager
path: /mutating-generic
failurePolicy: Fail
rules:
- apiGroups:
- "apps.kusionstack.io"
apiVersions:
- "*"
operations:
- CREATE
- UPDATE
- DELETE
resources:
- "*/*"
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
Expand All @@ -45,14 +67,14 @@ webhooks:
- v1beta1
clientConfig:
service:
name: kusionstack-controller-manager
namespace: {{ .Values.namespace }}
name: kusionstack-controller-manager
path: /validating-generic
failurePolicy: Fail
name: validating-generic.apps.kusionstack.io
name: validating-pod.apps.kusionstack.io
objectSelector:
matchExpressions:
- key: podopslifecycle.kusionstack.io/control
- key: kusionstack.io/control
operator: In
values:
- "true"
Expand All @@ -67,4 +89,27 @@ webhooks:
resources:
- pods
scope: '*'
sideEffects: NoneOnDryRun
sideEffects: NoneOnDryRun
- name: validating-generic.apps.kusionstack.io
sideEffects: NoneOnDryRun
admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
namespace: {{ .Values.namespace }}
name: kusionstack-controller-manager
path: /validating-generic
failurePolicy: Fail
rules:
- apiGroups:
- "apps.kusionstack.io"
apiVersions:
- "*"
operations:
- CREATE
- UPDATE
- DELETE
resources:
- "*/*"
scope: '*'
2 changes: 1 addition & 1 deletion versions/operating/0.1.0/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespaceEnabled: true
controlPlane: kusionstack-operating

image:
tag: v0.1.0-beta.1
tag: v0.1.0
repo: kusionstack/operating
pullPolicy: IfNotPresent

Expand Down

0 comments on commit 7adfaae

Please sign in to comment.