diff --git a/charts/ctrlmesh b/charts/ctrlmesh new file mode 120000 index 0000000..3e8b44b --- /dev/null +++ b/charts/ctrlmesh @@ -0,0 +1 @@ +../versions/ctrlmesh/0.1.0-beta.6 \ No newline at end of file diff --git a/charts/demo-operator b/charts/demo-operator new file mode 120000 index 0000000..a2917ff --- /dev/null +++ b/charts/demo-operator @@ -0,0 +1 @@ +../versions/demo-operator/0.1.1 \ No newline at end of file diff --git a/charts/kridge b/charts/kridge deleted file mode 120000 index 81e1b6a..0000000 --- a/charts/kridge +++ /dev/null @@ -1 +0,0 @@ -../versions/kridge/0.1.0-beta.3 \ No newline at end of file diff --git a/charts/kridge-demo-operator b/charts/kridge-demo-operator deleted file mode 120000 index e90e3b5..0000000 --- a/charts/kridge-demo-operator +++ /dev/null @@ -1 +0,0 @@ -../versions/kridge-demo-operator/0.1.1 \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.3/Chart.yaml b/versions/ctrlmesh/0.1.0-beta.6/Chart.yaml similarity index 78% rename from versions/kridge/0.1.0-beta.3/Chart.yaml rename to versions/ctrlmesh/0.1.0-beta.6/Chart.yaml index 0b83f73..902cdb9 100644 --- a/versions/kridge/0.1.0-beta.3/Chart.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/Chart.yaml @@ -1,16 +1,16 @@ apiVersion: v1 -name: kridge -description: Helm chart for kridge components +name: ctrlmesh +description: Helm chart for Controller-Mesh 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.3 +version: 0.1.0-beta.6 # 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.3 +appVersion: 0.1.0-beta.6 home: https://KusionStack.io sources: - - https://github.com/KusionStack/kridge \ No newline at end of file + - https://github.com/KusionStack/controllermesh \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/README.md b/versions/ctrlmesh/0.1.0-beta.6/README.md similarity index 100% rename from versions/kridge-demo-operator/0.1.0/README.md rename to versions/ctrlmesh/0.1.0-beta.6/README.md diff --git a/versions/kridge/0.1.0-beta.1/templates/NOTES.txt b/versions/ctrlmesh/0.1.0-beta.6/templates/NOTES.txt similarity index 100% rename from versions/kridge/0.1.0-beta.1/templates/NOTES.txt rename to versions/ctrlmesh/0.1.0-beta.6/templates/NOTES.txt diff --git a/versions/kridge/0.1.0-beta.1/templates/_helpers.tpl b/versions/ctrlmesh/0.1.0-beta.6/templates/_helpers.tpl similarity index 100% rename from versions/kridge/0.1.0-beta.1/templates/_helpers.tpl rename to versions/ctrlmesh/0.1.0-beta.6/templates/_helpers.tpl diff --git a/versions/kridge/0.1.0-beta.3/templates/configmap.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/configmap.yaml similarity index 82% rename from versions/kridge/0.1.0-beta.3/templates/configmap.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/configmap.yaml index e88a5eb..dc36043 100644 --- a/versions/kridge/0.1.0-beta.3/templates/configmap.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/configmap.yaml @@ -4,5 +4,5 @@ data: {{- toYaml .Values.shardingGroupVersionKinds | nindent 4 }} kind: ConfigMap metadata: - name: kridge-sharding-resource + name: ctrlmesh-sharding-resource namespace: {{ .Values.namespace }} \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_circuitbreakers.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/crd/circuitbreakers.yaml similarity index 99% rename from versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_circuitbreakers.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/crd/circuitbreakers.yaml index e8e0951..3f4b826 100644 --- a/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_circuitbreakers.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/crd/circuitbreakers.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.7.0 creationTimestamp: null - name: circuitbreakers.kridge.kusionstack.io + name: circuitbreakers.ctrlmesh.kusionstack.io spec: - group: kridge.kusionstack.io + group: ctrlmesh.kusionstack.io names: kind: CircuitBreaker listKind: CircuitBreakerList diff --git a/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_managerstates.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/crd/managerstates.yaml similarity index 97% rename from versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_managerstates.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/crd/managerstates.yaml index 39a6beb..cafe3b0 100644 --- a/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_managerstates.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/crd/managerstates.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.7.0 creationTimestamp: null - name: managerstates.kridge.kusionstack.io + name: managerstates.ctrlmesh.kusionstack.io spec: - group: kridge.kusionstack.io + group: ctrlmesh.kusionstack.io names: kind: ManagerState listKind: ManagerStateList diff --git a/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_shardingconfigs.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/crd/shardingconfigs.yaml similarity index 99% rename from versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_shardingconfigs.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/crd/shardingconfigs.yaml index c4dc96a..1d3023c 100644 --- a/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_shardingconfigs.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/crd/shardingconfigs.yaml @@ -5,9 +5,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.10.0 creationTimestamp: null - name: shardingconfigs.kridge.kusionstack.io + name: shardingconfigs.ctrlmesh.kusionstack.io spec: - group: kridge.kusionstack.io + group: ctrlmesh.kusionstack.io names: kind: ShardingConfig listKind: ShardingConfigList diff --git a/versions/kridge/0.1.0-beta.3/templates/deployment.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/deployment.yaml similarity index 87% rename from versions/kridge/0.1.0-beta.3/templates/deployment.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/deployment.yaml index d3f12ba..53f0f72 100644 --- a/versions/kridge/0.1.0-beta.3/templates/deployment.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/deployment.yaml @@ -2,15 +2,15 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - kridge.kusionstack.io/ignore-webhook: 'true' - name: kridge + ctrlmesh.kusionstack.io/ignore-webhook: 'true' + name: ctrlmesh namespace: {{ .Values.namespace }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: 10 selector: matchLabels: - control-plane: kridge + control-plane: ctrlmesh strategy: rollingUpdate: maxSurge: 1 @@ -19,9 +19,9 @@ spec: template: metadata: labels: - control-plane: kridge - kridge.kusionstack.io/ignore-webhook: 'true' - kridge.kusionstack.io/watching: 'true' + control-plane: ctrlmesh + ctrlmesh.kusionstack.io/ignore-webhook: 'true' + ctrlmesh.kusionstack.io/watching: 'true' spec: containers: - args: @@ -34,7 +34,7 @@ spec: - --proxy-ephemeral-storage={{ .Values.proxyResources.ephemeralStorage }} - --proxy-image-pull-policy={{ .Values.proxyImage.pullPolicy }} command: - - /kridge-manager + - /ctrlmesh-manager env: - name: POD_NAMESPACE valueFrom: @@ -82,5 +82,5 @@ spec: terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst - serviceAccount: kridge-serviceaccount - serviceAccountName: kridge-serviceaccount \ No newline at end of file + serviceAccount: ctrlmesh-serviceaccount + serviceAccountName: ctrlmesh-serviceaccount \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/templates/namespace.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/namespace.yaml similarity index 100% rename from versions/kridge/0.1.0-beta.1/templates/namespace.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/namespace.yaml diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/leader_election_role.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/leader_election_role.yaml similarity index 100% rename from versions/kridge/0.1.0-beta.1/templates/rbac/leader_election_role.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/leader_election_role.yaml diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/leader_election_role_binding.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/leader_election_role_binding.yaml similarity index 77% rename from versions/kridge/0.1.0-beta.3/templates/rbac/leader_election_role_binding.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/leader_election_role_binding.yaml index 44e50ab..d2db064 100644 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/leader_election_role_binding.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/leader_election_role_binding.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - name: kridge-leader-election-rolebinding + name: ctrlmesh-leader-election-rolebinding namespace: {{ .Values.namespace }} roleRef: apiGroup: rbac.authorization.k8s.io @@ -9,5 +9,5 @@ roleRef: name: leader-election-role subjects: - kind: ServiceAccount - name: kridge-serviceaccount + name: ctrlmesh-serviceaccount namespace: {{ .Values.namespace }} diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/managerstate_editor_role.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/managerstate_editor_role.yaml similarity index 86% rename from versions/kridge/0.1.0-beta.3/templates/rbac/managerstate_editor_role.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/managerstate_editor_role.yaml index 69e1dc7..ce51d6e 100644 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/managerstate_editor_role.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/managerstate_editor_role.yaml @@ -5,7 +5,7 @@ metadata: name: managerstate-editor-role rules: - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - managerstates verbs: @@ -17,7 +17,7 @@ rules: - update - watch - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - managerstates/status verbs: diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/managerstate_viewer_role.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/managerstate_viewer_role.yaml similarity index 84% rename from versions/kridge/0.1.0-beta.1/templates/rbac/managerstate_viewer_role.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/managerstate_viewer_role.yaml index e5cfeb8..fda2de2 100644 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/managerstate_viewer_role.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/managerstate_viewer_role.yaml @@ -5,7 +5,7 @@ metadata: name: managerstate-viewer-role rules: - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - managerstates verbs: @@ -13,7 +13,7 @@ rules: - list - watch - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - managerstates/status verbs: diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/public_role.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/public_role.yaml similarity index 75% rename from versions/kridge/0.1.0-beta.1/templates/rbac/public_role.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/public_role.yaml index c979f8a..d082b45 100644 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/public_role.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/public_role.yaml @@ -1,10 +1,10 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: kridge-public-role + name: ctrlmesh-public-role rules: - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - managerstates - trafficpolicies diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/public_role_binding.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/public_role_binding.yaml similarity index 82% rename from versions/kridge/0.1.0-beta.1/templates/rbac/public_role_binding.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/public_role_binding.yaml index b767ae8..98f4e98 100644 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/public_role_binding.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/public_role_binding.yaml @@ -1,11 +1,11 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: kridge-public-rolebinding + name: ctrlmesh-public-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: kridge-public-role + name: ctrlmesh-public-role subjects: - apiGroup: rbac.authorization.k8s.io kind: Group diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/role.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/role.yaml similarity index 92% rename from versions/kridge/0.1.0-beta.1/templates/rbac/role.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/role.yaml index dc1b5c1..808a6b1 100644 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/role.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/role.yaml @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null - name: kridge-kusionstack-role + name: ctrlmesh-kusionstack-role rules: - apiGroups: - '*' @@ -67,7 +67,7 @@ rules: - update - watch - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - managerstates - managerstates/finalizers @@ -80,7 +80,7 @@ rules: - update - watch - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io resources: - '*' - '*/status' diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/role_binding.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/role_binding.yaml similarity index 69% rename from versions/kridge/0.1.0-beta.3/templates/rbac/role_binding.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/rbac/role_binding.yaml index 6450238..abddd4a 100644 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/role_binding.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/rbac/role_binding.yaml @@ -1,12 +1,12 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: kridge-rolebinding + name: ctrlmesh-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: kridge-kusionstack-role + name: ctrlmesh-kusionstack-role subjects: - kind: ServiceAccount - name: kridge-serviceaccount + name: ctrlmesh-serviceaccount namespace: {{ .Values.namespace }} diff --git a/versions/kridge/0.1.0-beta.3/templates/service.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/service.yaml similarity index 62% rename from versions/kridge/0.1.0-beta.3/templates/service.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/service.yaml index c6996f8..226e1d9 100644 --- a/versions/kridge/0.1.0-beta.3/templates/service.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/service.yaml @@ -2,8 +2,8 @@ apiVersion: v1 kind: Service metadata: labels: - kridge.kusionstack.io/ignore-webhook: "true" - name: kridge-webhook-service + ctrlmesh.kusionstack.io/ignore-webhook: "true" + name: ctrlmesh-webhook-service namespace: {{ .Values.namespace }} spec: ports: @@ -11,5 +11,5 @@ spec: protocol: TCP targetPort: 9443 selector: - control-plane: kridge + control-plane: ctrlmesh type: NodePort \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/templates/serviceaccount.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/serviceaccount.yaml similarity index 71% rename from versions/kridge/0.1.0-beta.1/templates/serviceaccount.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/serviceaccount.yaml index d13b31c..8506ff2 100644 --- a/versions/kridge/0.1.0-beta.1/templates/serviceaccount.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/serviceaccount.yaml @@ -1,5 +1,5 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: kridge-serviceaccount + name: ctrlmesh-serviceaccount namespace: {{ .Values.namespace }} \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.3/templates/webhook/mutating.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/webhook/mutating.yaml similarity index 82% rename from versions/kridge/0.1.0-beta.3/templates/webhook/mutating.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/webhook/mutating.yaml index a0aeae8..e009be1 100644 --- a/versions/kridge/0.1.0-beta.3/templates/webhook/mutating.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/webhook/mutating.yaml @@ -2,19 +2,19 @@ apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: - name: kridge-mutating + name: ctrlmesh-mutating webhooks: - admissionReviewVersions: - v1 - v1beta1 clientConfig: service: - name: kridge-webhook-service + name: ctrlmesh-webhook-service namespace: {{ .Values.namespace }} path: /mutate-namespace port: 443 failurePolicy: Ignore - name: namesapace.kridge.mutating.io + name: namesapace.ctrlmesh.mutating.io rules: - apiGroups: - "" @@ -30,12 +30,12 @@ webhooks: - v1beta1 clientConfig: service: - name: kridge-webhook-service + name: ctrlmesh-webhook-service namespace: {{ .Values.namespace }} path: /mutate-pod port: 443 failurePolicy: Ignore - name: pod.kridge.mutating.io + name: pod.ctrlmesh.mutating.io rules: - apiGroups: - "" @@ -51,12 +51,12 @@ webhooks: - v1beta1 clientConfig: service: - name: kridge-webhook-service + name: ctrlmesh-webhook-service namespace: {{ .Values.namespace }} path: /mutate-resource port: 443 failurePolicy: Ignore - name: resource.kridge.mutating.io + name: resource.ctrlmesh.mutating.io rules: - apiGroups: - "" diff --git a/versions/kridge/0.1.0-beta.1/templates/webhook/validating.yaml b/versions/ctrlmesh/0.1.0-beta.6/templates/webhook/validating.yaml similarity index 68% rename from versions/kridge/0.1.0-beta.1/templates/webhook/validating.yaml rename to versions/ctrlmesh/0.1.0-beta.6/templates/webhook/validating.yaml index 4eb5464..9029a34 100644 --- a/versions/kridge/0.1.0-beta.1/templates/webhook/validating.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/templates/webhook/validating.yaml @@ -2,22 +2,22 @@ apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: - name: kridge-validating + name: ctrlmesh-validating webhooks: - admissionReviewVersions: - v1 - v1beta1 clientConfig: service: - name: kridge-webhook-service + name: ctrlmesh-webhook-service namespace: {{ .Values.namespace }} - path: /validate-kridge-shardingconfig + path: /validate-ctrlmesh-shardingconfig port: 443 failurePolicy: Fail - name: shardingconfigs.kridge.validating.io + name: shardingconfigs.ctrlmesh.validating.io rules: - apiGroups: - - kridge.kusionstack.io + - ctrlmesh.kusionstack.io apiVersions: - v1alpha1 operations: diff --git a/versions/kridge/0.1.0-beta.3/values.yaml b/versions/ctrlmesh/0.1.0-beta.6/values.yaml similarity index 71% rename from versions/kridge/0.1.0-beta.3/values.yaml rename to versions/ctrlmesh/0.1.0-beta.6/values.yaml index e5fa65c..022bab4 100644 --- a/versions/kridge/0.1.0-beta.3/values.yaml +++ b/versions/ctrlmesh/0.1.0-beta.6/values.yaml @@ -1,22 +1,22 @@ -# Default values for mykridge. +# Default values for Controller Mesh. # This is a YAML-formatted file. # Declare variables to be passed into your templates. replicaCount: 2 -namespace: kridge +namespace: ctrlmesh namesapceEnabled: true -imageTag: v0.1.0-beta.3 +imageTag: v0.1.0-beta.6 proxyImage: - repository: kusionstack/kridge-proxy + repository: kusionstack/ctrlmesh-proxy pullPolicy: IfNotPresent managerImage: - repository: kusionstack/kridge-manager + repository: kusionstack/ctrlmesh-manager pullPolicy: IfNotPresent -initImage: kusionstack/kridge-init +initImage: kusionstack/ctrlmesh-init managerResources: limits: @@ -33,7 +33,7 @@ proxyResources: shardingGroupVersionKinds: groupVersionKinds: - kridge.kusionstack.io/v1alpha1: + ctrlmesh.kusionstack.io/v1alpha1: - '*' v1: - Pod diff --git a/versions/kridge-demo-operator/0.1.1/Chart.yaml b/versions/demo-operator/0.1.1/Chart.yaml similarity index 80% rename from versions/kridge-demo-operator/0.1.1/Chart.yaml rename to versions/demo-operator/0.1.1/Chart.yaml index 5d5e587..73c622f 100644 --- a/versions/kridge-demo-operator/0.1.1/Chart.yaml +++ b/versions/demo-operator/0.1.1/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 -name: kridge-demo-operator -description: Helm chart for kridge components +name: demo-operator +description: Helm chart for demo operator # 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/) @@ -10,7 +10,7 @@ version: 0.1.1 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. appVersion: 0.1.1 -namespace: kridge +namespace: ctrlmesh home: https://KusionStack.io -sources: - - https://github.com/KusionStack/kridge-demo-operator \ No newline at end of file +#sources: +# - https://github.com/KusionStack/demo-operator \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.1/README.md b/versions/demo-operator/0.1.1/README.md similarity index 100% rename from versions/kridge-demo-operator/0.1.1/README.md rename to versions/demo-operator/0.1.1/README.md diff --git a/versions/kridge-demo-operator/0.1.0/templates/NOTES.txt b/versions/demo-operator/0.1.1/templates/NOTES.txt similarity index 100% rename from versions/kridge-demo-operator/0.1.0/templates/NOTES.txt rename to versions/demo-operator/0.1.1/templates/NOTES.txt diff --git a/versions/kridge-demo-operator/0.1.1/templates/configmap.yaml b/versions/demo-operator/0.1.1/templates/configmap.yaml similarity index 81% rename from versions/kridge-demo-operator/0.1.1/templates/configmap.yaml rename to versions/demo-operator/0.1.1/templates/configmap.yaml index 444e0ce..6d284ae 100644 --- a/versions/kridge-demo-operator/0.1.1/templates/configmap.yaml +++ b/versions/demo-operator/0.1.1/templates/configmap.yaml @@ -4,7 +4,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-0 + namespace: demo-0a labels: control-by: demo --- @@ -12,7 +12,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-1 + namespace: demo-0b labels: control-by: demo --- @@ -20,7 +20,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-2 + namespace: demo-0c labels: control-by: demo --- @@ -28,7 +28,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-3 + namespace: demo-0d labels: control-by: demo --- @@ -36,7 +36,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-4 + namespace: demo-0e labels: control-by: demo --- @@ -44,7 +44,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-5 + namespace: demo-0f labels: control-by: demo --- @@ -52,7 +52,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-6 + namespace: demo-0g labels: control-by: demo --- @@ -60,7 +60,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-7 + namespace: demo-0o labels: control-by: demo --- @@ -68,7 +68,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-8 + namespace: demo-0p labels: control-by: demo --- @@ -76,7 +76,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-9 + namespace: demo-0q labels: control-by: demo --- @@ -84,7 +84,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-21 + namespace: demo-0r labels: control-by: demo --- @@ -92,7 +92,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-22 + namespace: demo-0s labels: control-by: demo --- @@ -100,7 +100,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-23 + namespace: demo-0t labels: control-by: demo --- @@ -108,7 +108,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-24 + namespace: demo-0u labels: control-by: demo --- @@ -116,7 +116,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: demo - namespace: demo-25 + namespace: demo-0v labels: control-by: demo {{- end }} \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.1/templates/namesapce.yaml b/versions/demo-operator/0.1.1/templates/namesapce.yaml similarity index 74% rename from versions/kridge-demo-operator/0.1.1/templates/namesapce.yaml rename to versions/demo-operator/0.1.1/templates/namesapce.yaml index e3a9598..0de8340 100644 --- a/versions/kridge-demo-operator/0.1.1/templates/namesapce.yaml +++ b/versions/demo-operator/0.1.1/templates/namesapce.yaml @@ -3,75 +3,75 @@ apiVersion: v1 kind: Namespace metadata: - name: demo-0 + name: demo-0a --- apiVersion: v1 kind: Namespace metadata: - name: demo-1 + name: demo-0b --- apiVersion: v1 kind: Namespace metadata: - name: demo-2 + name: demo-0c --- apiVersion: v1 kind: Namespace metadata: - name: demo-3 + name: demo-0d --- apiVersion: v1 kind: Namespace metadata: - name: demo-4 + name: demo-0e --- apiVersion: v1 kind: Namespace metadata: - name: demo-5 + name: demo-0f --- apiVersion: v1 kind: Namespace metadata: - name: demo-6 + name: demo-0g --- apiVersion: v1 kind: Namespace metadata: - name: demo-7 + name: demo-0o --- apiVersion: v1 kind: Namespace metadata: - name: demo-8 + name: demo-0p --- apiVersion: v1 kind: Namespace metadata: - name: demo-9 + name: demo-0q --- apiVersion: v1 kind: Namespace metadata: - name: demo-21 + name: demo-0r --- apiVersion: v1 kind: Namespace metadata: - name: demo-22 + name: demo-0s --- apiVersion: v1 kind: Namespace metadata: - name: demo-23 + name: demo-0t --- apiVersion: v1 kind: Namespace metadata: - name: demo-24 + name: demo-0u --- apiVersion: v1 kind: Namespace metadata: - name: demo-25 + name: demo-0v {{- end }} \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/templates/rbac.yaml b/versions/demo-operator/0.1.1/templates/rbac.yaml similarity index 79% rename from versions/kridge-demo-operator/0.1.0/templates/rbac.yaml rename to versions/demo-operator/0.1.1/templates/rbac.yaml index 41dbe16..ccf3a5c 100644 --- a/versions/kridge-demo-operator/0.1.0/templates/rbac.yaml +++ b/versions/demo-operator/0.1.1/templates/rbac.yaml @@ -3,14 +3,14 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: kridge-demo-operator-serviceaccount + name: demo-operator-serviceaccount namespace: {{ .Values.namespace }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null - name: kridge-demo-operator-role + name: demo-operator-role rules: - apiGroups: - '*' @@ -36,14 +36,14 @@ rules: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: kridge-demo-operator-binding + name: demo-operator-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: kridge-demo-operator-role + name: demo-operator-role subjects: - kind: ServiceAccount - name: kridge-demo-operator-serviceaccount + name: demo-operator-serviceaccount namespace: {{ .Values.namespace }} --- {{- if .Values.namesapceEnabled -}} diff --git a/versions/kridge-demo-operator/0.1.1/templates/shardingconfig.yaml b/versions/demo-operator/0.1.1/templates/shardingconfig.yaml similarity index 84% rename from versions/kridge-demo-operator/0.1.1/templates/shardingconfig.yaml rename to versions/demo-operator/0.1.1/templates/shardingconfig.yaml index c14ff6b..938ca91 100644 --- a/versions/kridge-demo-operator/0.1.1/templates/shardingconfig.yaml +++ b/versions/demo-operator/0.1.1/templates/shardingconfig.yaml @@ -1,5 +1,5 @@ {{- if .Values.sharding.enable -}} -apiVersion: kridge.kusionstack.io/v1alpha1 +apiVersion: ctrlmesh.kusionstack.io/v1alpha1 kind: ShardingConfig metadata: name: sharding-root @@ -7,11 +7,11 @@ metadata: spec: root: prefix: operator-demo - targetStatefulSet: kridge-demo-operator + targetStatefulSet: demo-operator canary: replicas: 1 inNamespaces: - - demo-0 + - demo-0a auto: everyShardReplicas: 2 shardingSize: {{ .Values.sharding.size }} diff --git a/versions/kridge-demo-operator/0.1.1/templates/statefulset.yaml b/versions/demo-operator/0.1.1/templates/statefulset.yaml similarity index 77% rename from versions/kridge-demo-operator/0.1.1/templates/statefulset.yaml rename to versions/demo-operator/0.1.1/templates/statefulset.yaml index 1a8b8f5..84ab4c4 100644 --- a/versions/kridge-demo-operator/0.1.1/templates/statefulset.yaml +++ b/versions/demo-operator/0.1.1/templates/statefulset.yaml @@ -2,23 +2,23 @@ apiVersion: apps/v1 kind: StatefulSet metadata: - name: kridge-demo-operator + name: demo-operator namespace: {{ .Values.namespace }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: 10 selector: matchLabels: - control-plane: kridge-demo-operator + control-plane: demo-operator updateStrategy: type: OnDelete template: metadata: labels: - control-plane: kridge-demo-operator - kridge.kusionstack.io/watching: 'true' + control-plane: demo-operator + ctrlmesh.kusionstack.io/watching: 'true' {{- if .Values.sharding.enable}} - kridge.kusionstack.io/enable-proxy: 'true' + ctrlmesh.kusionstack.io/enable-proxy: 'true' {{- end}} spec: containers: @@ -45,5 +45,5 @@ spec: terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst - serviceAccount: kridge-demo-operator-serviceaccount - serviceAccountName: kridge-demo-operator-serviceaccount \ No newline at end of file + serviceAccount: demo-operator-serviceaccount + serviceAccountName: demo-operator-serviceaccount \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.1/values.yaml b/versions/demo-operator/0.1.1/values.yaml similarity index 86% rename from versions/kridge-demo-operator/0.1.1/values.yaml rename to versions/demo-operator/0.1.1/values.yaml index 9d44a9c..cabfc6b 100644 --- a/versions/kridge-demo-operator/0.1.1/values.yaml +++ b/versions/demo-operator/0.1.1/values.yaml @@ -1,10 +1,10 @@ -# Default values for mykridge. +# Default values for demo operator. # This is a YAML-formatted file. # Declare variables to be passed into your templates. replicaCount: 5 -namespace: kridge +namespace: ctrlmesh namesapceEnabled: false demoNsEnabled: true diff --git a/versions/kridge-demo-operator/0.1.0/Chart.yaml b/versions/kridge-demo-operator/0.1.0/Chart.yaml deleted file mode 100644 index 8886b9f..0000000 --- a/versions/kridge-demo-operator/0.1.0/Chart.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -name: kridge-demo-operator -description: Helm chart for kridge 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 -# 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 -namespace: kridge -home: https://KusionStack.io -sources: - - https://github.com/KusionStack/kridge-demo-operator \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/templates/configmap.yaml b/versions/kridge-demo-operator/0.1.0/templates/configmap.yaml deleted file mode 100644 index ad7c014..0000000 --- a/versions/kridge-demo-operator/0.1.0/templates/configmap.yaml +++ /dev/null @@ -1,82 +0,0 @@ -{{- if .Values.demoCmEnabled -}} ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-0 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-1 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-2 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-3 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-4 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-5 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-6 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-7 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-8 - labels: - control-by: demo ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: demo - namespace: demo-9 - labels: - control-by: demo -{{- end }} \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/templates/namesapce.yaml b/versions/kridge-demo-operator/0.1.0/templates/namesapce.yaml deleted file mode 100644 index c2282bb..0000000 --- a/versions/kridge-demo-operator/0.1.0/templates/namesapce.yaml +++ /dev/null @@ -1,52 +0,0 @@ -{{- if .Values.demoNsEnabled -}} ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-0 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-1 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-2 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-3 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-4 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-5 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-6 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-7 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-8 ---- -apiVersion: v1 -kind: Namespace -metadata: - name: demo-9 -{{- end }} \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/templates/shardingconfig.yaml b/versions/kridge-demo-operator/0.1.0/templates/shardingconfig.yaml deleted file mode 100644 index 4efef06..0000000 --- a/versions/kridge-demo-operator/0.1.0/templates/shardingconfig.yaml +++ /dev/null @@ -1,169 +0,0 @@ -{{- if .Values.shardingConfig.enable -}} -{{- if eq .Values.shardingConfig.size "x3" -}} -apiVersion: kridge.kusionstack.io/v1alpha1 -kind: ShardingConfig -metadata: - name: demo-manager-sharding-0 - namespace: {{ .Values.namespace }} -spec: - controller: - leaderElectionName: demo-manager - limits: - - relateResources: - - apiGroups: - - '*' - resources: - - pods - - services - - configmaps - selector: - matchExpressions: - - key: kridge.kusionstack.io/namespace - operator: In - values: - - demo-0 - matchLabels: - control-by: demo - selector: - matchExpressions: - - key: statefulset.kubernetes.io/pod-name - operator: In - values: - - kridge-demo-operator-0 ---- -apiVersion: kridge.kusionstack.io/v1alpha1 -kind: ShardingConfig -metadata: - name: demo-manager-sharding-1 - namespace: {{ .Values.namespace }} -spec: - controller: - leaderElectionName: demo-manager - limits: - - relateResources: - - apiGroups: - - '*' - resources: - - pods - - services - - configmaps - selector: - matchExpressions: - - key: kridge.kusionstack.io/namespace - operator: NotIn - values: - - demo-0 - - key: kridge.kusionstack.io/sharding-hash - operator: In - values: ["0", "1", "2", "3", "4", "5"] - matchLabels: - control-by: demo - selector: - matchExpressions: - - key: statefulset.kubernetes.io/pod-name - operator: In - values: - - kridge-demo-operator-1 - - kridge-demo-operator-2 ---- -apiVersion: kridge.kusionstack.io/v1alpha1 -kind: ShardingConfig -metadata: - name: demo-manager-sharding-2 - namespace: {{ .Values.namespace }} -spec: - controller: - leaderElectionName: demo-manager - limits: - - relateResources: - - apiGroups: - - '*' - resources: - - pods - - services - - configmaps - selector: - matchExpressions: - - key: kridge.kusionstack.io/namespace - operator: NotIn - values: - - demo-0 - - key: kridge.kusionstack.io/sharding-hash - operator: NotIn - values: ["0", "1", "2", "3", "4", "5"] - matchLabels: - control-by: demo - selector: - matchExpressions: - - key: statefulset.kubernetes.io/pod-name - operator: In - values: - - kridge-demo-operator-3 - - kridge-demo-operator-4 -{{- end }} - -{{- if eq .Values.shardingConfig.size "x2" -}} -apiVersion: kridge.kusionstack.io/v1alpha1 -kind: ShardingConfig -metadata: - name: demo-manager-sharding-0 - namespace: {{ .Values.namespace }} -spec: - controller: - leaderElectionName: demo-manager - limits: - - relateResources: - - apiGroups: - - '*' - resources: - - pods - - services - - configmaps - selector: - matchExpressions: - - key: kridge.kusionstack.io/namespace - operator: In - values: - - demo-0 - matchLabels: - control-by: demo - selector: - matchExpressions: - - key: statefulset.kubernetes.io/pod-name - operator: In - values: - - kridge-demo-operator-0 ---- -apiVersion: kridge.kusionstack.io/v1alpha1 -kind: ShardingConfig -metadata: - name: demo-manager-sharding-1 - namespace: {{ .Values.namespace }} -spec: - controller: - leaderElectionName: demo-manager - limits: - - relateResources: - - apiGroups: - - '*' - resources: - - pods - - services - - configmaps - selector: - matchExpressions: - - key: kridge.kusionstack.io/namespace - operator: NotIn - values: - - demo-0 - matchLabels: - control-by: demo - selector: - matchExpressions: - - key: statefulset.kubernetes.io/pod-name - operator: In - values: - - kridge-demo-operator-1 - - kridge-demo-operator-2 -{{- end }} -{{- end }} \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/templates/statefulset.yaml b/versions/kridge-demo-operator/0.1.0/templates/statefulset.yaml deleted file mode 100644 index 6752f68..0000000 --- a/versions/kridge-demo-operator/0.1.0/templates/statefulset.yaml +++ /dev/null @@ -1,49 +0,0 @@ ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: kridge-demo-operator - namespace: {{ .Values.namespace }} -spec: - replicas: {{ .Values.replicaCount }} - revisionHistoryLimit: 10 - selector: - matchLabels: - control-plane: kridge-demo-operator - updateStrategy: - type: OnDelete - template: - metadata: - labels: - control-plane: kridge-demo-operator - kridge.kusionstack.io/watching: 'true' - {{- if .Values.shardingConfig.enable}} - kridge.kusionstack.io/enable-proxy: 'true' - {{- end}} - spec: - containers: - - command: - - /kridge-operator-demo - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.namespace - - name: POD_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - name: demo-operator - image: {{ .Values.image }} - imagePullPolicy: IfNotPresent - resources: - {{- toYaml .Values.resources | nindent 12 }} - securityContext: - allowPrivilegeEscalation: false - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - dnsPolicy: ClusterFirst - serviceAccount: kridge-demo-operator-serviceaccount - serviceAccountName: kridge-demo-operator-serviceaccount \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.0/values.yaml b/versions/kridge-demo-operator/0.1.0/values.yaml deleted file mode 100644 index a0c5a05..0000000 --- a/versions/kridge-demo-operator/0.1.0/values.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# Default values for mykridge. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 5 - -namespace: kridge -namesapceEnabled: false - -demoNsEnabled: true -demoCmEnabled: true - -shardingConfig: - enable: false - size: x3 - -image: chaerr/kridge:demo-operator-v0.1.2 - - -resources: - limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 10m - memory: 64Mi - - diff --git a/versions/kridge-demo-operator/0.1.1/templates/NOTES.txt b/versions/kridge-demo-operator/0.1.1/templates/NOTES.txt deleted file mode 100644 index cbe80a5..0000000 --- a/versions/kridge-demo-operator/0.1.1/templates/NOTES.txt +++ /dev/null @@ -1 +0,0 @@ -Kridge Demo Operator. \ No newline at end of file diff --git a/versions/kridge-demo-operator/0.1.1/templates/rbac.yaml b/versions/kridge-demo-operator/0.1.1/templates/rbac.yaml deleted file mode 100644 index 41dbe16..0000000 --- a/versions/kridge-demo-operator/0.1.1/templates/rbac.yaml +++ /dev/null @@ -1,54 +0,0 @@ - ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: kridge-demo-operator-serviceaccount - namespace: {{ .Values.namespace }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: kridge-demo-operator-role -rules: -- apiGroups: - - '*' - resources: - - configmaps - - pods - - services - - events - - leases - verbs: - - '*' -- apiGroups: - - "" - resources: - - namespaces - verbs: - - get - - list - - patch - - update - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: kridge-demo-operator-binding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: kridge-demo-operator-role -subjects: -- kind: ServiceAccount - name: kridge-demo-operator-serviceaccount - namespace: {{ .Values.namespace }} ---- -{{- if .Values.namesapceEnabled -}} -apiVersion: v1 -kind: Namespace -metadata: - name: {{ .Values.namespace }} -{{- end }} \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/Chart.yaml b/versions/kridge/0.1.0-beta.1/Chart.yaml deleted file mode 100644 index 90d8ca9..0000000 --- a/versions/kridge/0.1.0-beta.1/Chart.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -name: kridge -description: Helm chart for kridge 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 -# 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 - -home: https://KusionStack.io -sources: - - https://github.com/KusionStack/kridge \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/README.md b/versions/kridge/0.1.0-beta.1/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/versions/kridge/0.1.0-beta.1/templates/configmap.yaml b/versions/kridge/0.1.0-beta.1/templates/configmap.yaml deleted file mode 100644 index e88a5eb..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/configmap.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -data: - resource-config: | - {{- toYaml .Values.shardingGroupVersionKinds | nindent 4 }} -kind: ConfigMap -metadata: - name: kridge-sharding-resource - namespace: {{ .Values.namespace }} \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_managerstates.yaml b/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_managerstates.yaml deleted file mode 100644 index 39a6beb..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_managerstates.yaml +++ /dev/null @@ -1,80 +0,0 @@ - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: managerstates.kridge.kusionstack.io -spec: - group: kridge.kusionstack.io - names: - kind: ManagerState - listKind: ManagerStateList - plural: managerstates - singular: managerstate - scope: Cluster - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: ManagerState is the Schema for the managerstates 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: ManagerStateSpec defines the desired state of ManagerState - type: object - status: - description: ManagerStateStatus defines the observed state of ManagerState - properties: - endpoints: - items: - properties: - leader: - type: boolean - name: - type: string - podIP: - type: string - required: - - leader - - name - - podIP - type: object - type: array - namespace: - type: string - ports: - properties: - grpcLeaderElectionPort: - type: integer - grpcNonLeaderElectionPort: - type: integer - type: object - updateTimestamp: - format: date-time - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_shardingconfigs.yaml b/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_shardingconfigs.yaml deleted file mode 100644 index 3d7e36d..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/crd/kridge.kusionstack.io_shardingconfigs.yaml +++ /dev/null @@ -1,303 +0,0 @@ - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: shardingconfigs.kridge.kusionstack.io -spec: - group: kridge.kusionstack.io - names: - kind: ShardingConfig - listKind: ShardingConfigList - plural: shardingconfigs - shortNames: - - shard - singular: shardingconfig - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: ShardingConfig is the Schema for the ShardingConfigs 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: ShardingConfigSpec defines the desired state of ShardingConfig - properties: - controller: - description: ShardingConfigControllerConfiguration defines the configuration - of controller in this application. - properties: - leaderElectionName: - type: string - required: - - leaderElectionName - type: object - limits: - items: - properties: - relateResources: - items: - properties: - apiGroups: - items: - type: string - type: array - resources: - items: - type: string - type: array - type: object - type: array - selector: - description: A label selector is a label query over a set of - resources. The result of matchLabels and matchExpressions - are ANDed. An empty label selector matches all objects. A - null label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: A label selector requirement is a selector - that contains values, a key, and an operator that relates - the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: operator represents a key's relationship - to a set of values. Valid operators are In, NotIn, - Exists and DoesNotExist. - type: string - values: - description: values is an array of string values. - If the operator is In or NotIn, the values array - must be non-empty. If the operator is Exists or - DoesNotExist, the values array must be empty. This - array is replaced during a strategic merge patch. - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - description: matchLabels is a map of {key,value} pairs. - A single {key,value} in the matchLabels map is equivalent - to an element of matchExpressions, whose key field is - "key", the operator is "In", and the values array contains - only "value". The requirements are ANDed. - type: object - type: object - type: object - type: array - root: - properties: - canary: - properties: - inNamespaces: - items: - type: string - type: array - inNumbers: - items: - type: string - type: array - type: object - canaryReplicas: - type: integer - disable: - type: boolean - manual: - items: - properties: - id: - type: integer - numbers: - items: - type: string - type: array - required: - - id - - numbers - type: object - type: array - normalReplicas: - type: integer - prefix: - type: string - resourceSelector: - items: - properties: - relateResources: - items: - properties: - apiGroups: - items: - type: string - type: array - resources: - items: - type: string - type: array - type: object - type: array - selector: - description: A label selector is a label query over a set - of resources. The result of matchLabels and matchExpressions - are ANDed. An empty label selector matches all objects. - A null label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: A label selector requirement is a selector - that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: operator represents a key's relationship - to a set of values. Valid operators are In, - NotIn, Exists and DoesNotExist. - type: string - values: - description: values is an array of string values. - If the operator is In or NotIn, the values array - must be non-empty. If the operator is Exists - or DoesNotExist, the values array must be empty. - This array is replaced during a strategic merge - patch. - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - description: matchLabels is a map of {key,value} pairs. - A single {key,value} in the matchLabels map is equivalent - to an element of matchExpressions, whose key field - is "key", the operator is "In", and the values array - contains only "value". The requirements are ANDed. - type: object - type: object - type: object - type: array - size: - type: integer - targetStatefulSet: - type: string - type: - type: string - type: object - selector: - description: Selector is a label query over pods of this configuration. - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. - The requirements are ANDed. - items: - description: A label selector requirement is a selector that - contains values, a key, and an operator that relates the key - and values. - properties: - key: - description: key is the label key that the selector applies - to. - type: string - operator: - description: operator represents a key's relationship to - a set of values. Valid operators are In, NotIn, Exists - and DoesNotExist. - type: string - values: - description: values is an array of string values. If the - operator is In or NotIn, the values array must be non-empty. - If the operator is Exists or DoesNotExist, the values - array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - description: matchLabels is a map of {key,value} pairs. A single - {key,value} in the matchLabels map is equivalent to an element - of matchExpressions, whose key field is "key", the operator - is "In", and the values array contains only "value". The requirements - are ANDed. - type: object - type: object - webhook: - description: ShardingConfigWebhookConfiguration defines the configuration - of webhook in this application. - properties: - certDir: - type: string - port: - type: integer - required: - - certDir - - port - type: object - required: - - selector - type: object - status: - description: ShardingConfigStatus defines the observed state of ShardingConfig - properties: - root: - properties: - childShardingConfigs: - items: - type: string - type: array - type: object - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/versions/kridge/0.1.0-beta.1/templates/deployment.yaml b/versions/kridge/0.1.0-beta.1/templates/deployment.yaml deleted file mode 100644 index d3f12ba..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/deployment.yaml +++ /dev/null @@ -1,86 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - kridge.kusionstack.io/ignore-webhook: 'true' - name: kridge - namespace: {{ .Values.namespace }} -spec: - replicas: {{ .Values.replicaCount }} - revisionHistoryLimit: 10 - selector: - matchLabels: - control-plane: kridge - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - labels: - control-plane: kridge - kridge.kusionstack.io/ignore-webhook: 'true' - kridge.kusionstack.io/watching: 'true' - spec: - containers: - - args: - - --logtostderr=true - - --v=4 - - --leader-election-namespace={{ .Values.namespace }} - - --proxy-image={{ .Values.proxyImage.repository }}:{{ .Values.imageTag }} - - --proxy-cpu={{ .Values.proxyResources.cpu }} - - --proxy-memory={{ .Values.proxyResources.memory }} - - --proxy-ephemeral-storage={{ .Values.proxyResources.ephemeralStorage }} - - --proxy-image-pull-policy={{ .Values.proxyImage.pullPolicy }} - command: - - /kridge-manager - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.namespace - - name: POD_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: ENABLE_WEBHOOK_SERVER - value: 'true' - - name: WEBHOOK_CERT_WRITER - value: secret - - name: WATCH_ON_LIMIT - value: 'true' - image: {{ .Values.managerImage.repository }}:{{ .Values.imageTag }} - imagePullPolicy: {{ .Values.managerImage.pullPolicy }} - livenessProbe: - failureThreshold: 3 - httpGet: - path: /healthz - port: 8081 - scheme: HTTP - initialDelaySeconds: 15 - periodSeconds: 20 - successThreshold: 1 - timeoutSeconds: 1 - name: manager - readinessProbe: - failureThreshold: 3 - httpGet: - path: /delay - port: 8083 - scheme: HTTP - initialDelaySeconds: 15 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 2 - resources: - {{- toYaml .Values.managerResources | nindent 12 }} - securityContext: - allowPrivilegeEscalation: false - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - dnsPolicy: ClusterFirst - serviceAccount: kridge-serviceaccount - serviceAccountName: kridge-serviceaccount \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/leader_election_role_binding.yaml b/versions/kridge/0.1.0-beta.1/templates/rbac/leader_election_role_binding.yaml deleted file mode 100644 index 44e50ab..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/leader_election_role_binding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: kridge-leader-election-rolebinding - namespace: {{ .Values.namespace }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: leader-election-role -subjects: -- kind: ServiceAccount - name: kridge-serviceaccount - namespace: {{ .Values.namespace }} diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/managerstate_editor_role.yaml b/versions/kridge/0.1.0-beta.1/templates/rbac/managerstate_editor_role.yaml deleted file mode 100644 index 69e1dc7..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/managerstate_editor_role.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# permissions for end users to edit managerstates. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: managerstate-editor-role -rules: -- apiGroups: - - kridge.kusionstack.io - resources: - - managerstates - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - kridge.kusionstack.io - resources: - - managerstates/status - verbs: - - get diff --git a/versions/kridge/0.1.0-beta.1/templates/rbac/role_binding.yaml b/versions/kridge/0.1.0-beta.1/templates/rbac/role_binding.yaml deleted file mode 100644 index 6450238..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/rbac/role_binding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: kridge-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: kridge-kusionstack-role -subjects: -- kind: ServiceAccount - name: kridge-serviceaccount - namespace: {{ .Values.namespace }} diff --git a/versions/kridge/0.1.0-beta.1/templates/service.yaml b/versions/kridge/0.1.0-beta.1/templates/service.yaml deleted file mode 100644 index c6996f8..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - kridge.kusionstack.io/ignore-webhook: "true" - name: kridge-webhook-service - namespace: {{ .Values.namespace }} -spec: - ports: - - port: 443 - protocol: TCP - targetPort: 9443 - selector: - control-plane: kridge - type: NodePort \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.1/templates/webhook/mutating.yaml b/versions/kridge/0.1.0-beta.1/templates/webhook/mutating.yaml deleted file mode 100644 index a0aeae8..0000000 --- a/versions/kridge/0.1.0-beta.1/templates/webhook/mutating.yaml +++ /dev/null @@ -1,76 +0,0 @@ - -apiVersion: admissionregistration.k8s.io/v1 -kind: MutatingWebhookConfiguration -metadata: - name: kridge-mutating -webhooks: -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: kridge-webhook-service - namespace: {{ .Values.namespace }} - path: /mutate-namespace - port: 443 - failurePolicy: Ignore - name: namesapace.kridge.mutating.io - rules: - - apiGroups: - - "" - apiVersions: - - v1 - operations: - - CREATE - resources: - - namespaces - sideEffects: None -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: kridge-webhook-service - namespace: {{ .Values.namespace }} - path: /mutate-pod - port: 443 - failurePolicy: Ignore - name: pod.kridge.mutating.io - rules: - - apiGroups: - - "" - apiVersions: - - v1 - operations: - - CREATE - resources: - - pods - sideEffects: None -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: kridge-webhook-service - namespace: {{ .Values.namespace }} - path: /mutate-resource - port: 443 - failurePolicy: Ignore - name: resource.kridge.mutating.io - rules: - - apiGroups: - - "" - apiVersions: - - v1 - operations: - - CREATE - - UPDATE - resources: - - pods - - services - - statefulsets - - controllerrevisions - - configmaps - - persistentvolumeclaims - - endpoints - sideEffects: None diff --git a/versions/kridge/0.1.0-beta.1/values.yaml b/versions/kridge/0.1.0-beta.1/values.yaml deleted file mode 100644 index 1c2c4ae..0000000 --- a/versions/kridge/0.1.0-beta.1/values.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# Default values for mykridge. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 3 - -namespace: kridge -namesapceEnabled: true - -imageTag: v0.1.0-beta.1 -proxyImage: - repository: kusionstack/kridge-proxy - pullPolicy: IfNotPresent - -managerImage: - repository: kusionstack/kridge-manager - pullPolicy: IfNotPresent - -initImage: kusionstack/kridge-init - -managerResources: - limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 10m - memory: 64Mi - -proxyResources: - cpu: 100m - memory: 100Mi - ephemeralStorage: 100Mi - -shardingGroupVersionKinds: - groupVersionKinds: - kridge.kusionstack.io/v1alpha1: - - '*' - v1: - - Pod - - PersistentVolumeClaim - - Service - - ConfigMap - - Endpoint - apps/v1: - - StatefulSet - - ReplicaSet - - ControllerRevision - - diff --git a/versions/kridge/0.1.0-beta.3/README.md b/versions/kridge/0.1.0-beta.3/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/versions/kridge/0.1.0-beta.3/templates/NOTES.txt b/versions/kridge/0.1.0-beta.3/templates/NOTES.txt deleted file mode 100644 index 84a36a4..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/NOTES.txt +++ /dev/null @@ -1 +0,0 @@ -Welcome! ^_^ \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.3/templates/_helpers.tpl b/versions/kridge/0.1.0-beta.3/templates/_helpers.tpl deleted file mode 100644 index 140fe6b..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "myctrlmesh.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 "myctrlmesh.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 }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "myctrlmesh.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "myctrlmesh.labels" -}} -helm.sh/chart: {{ include "myctrlmesh.chart" . }} -{{ include "myctrlmesh.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "myctrlmesh.selectorLabels" -}} -app.kubernetes.io/name: {{ include "myctrlmesh.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "myctrlmesh.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "myctrlmesh.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} diff --git a/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_circuitbreakers.yaml b/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_circuitbreakers.yaml deleted file mode 100644 index e8e0951..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/crd/kridge.kusionstack.io_circuitbreakers.yaml +++ /dev/null @@ -1,321 +0,0 @@ - ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null - name: circuitbreakers.kridge.kusionstack.io -spec: - group: kridge.kusionstack.io - names: - kind: CircuitBreaker - listKind: CircuitBreakerList - plural: circuitbreakers - shortNames: - - cbk - singular: circuitbreaker - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: CircuitBreaker is the Schema for the circuitbreakers 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: CircuitBreakerSpec defines the desired state of CircuitBreaker - properties: - rateLimitings: - description: RateLimitings defines the limit policies - items: - description: Limiting defines the limit policy - properties: - bucket: - description: Bucket defines the whole token bucket of the policy - properties: - burst: - description: Burst is the max token number of the bucket - format: int32 - type: integer - interval: - description: 'Interval is the time interval of the limiting - policy, in format of time like: 1h, 3m, 5s.' - type: string - limit: - description: Limit is the token number of the limiting policy. - format: int32 - type: integer - required: - - burst - - interval - - limit - type: object - name: - description: Name is the name of the policy - type: string - properties: - additionalProperties: - type: string - description: 'Properties defines the additional properties of - the policy, like: SleepingWindowSize' - type: object - recoverPolicy: - description: RecoverPolicy defines how the circuit-breaking - policy recovered from 'Opened' to 'Closed' - type: string - resourceRules: - description: ResourceRules defines the target k8s resource of - the limiting policy - items: - description: ResourceRule defines the target k8s resource - of the limiting policy - properties: - apiGroups: - description: APIGroups is the name of the APIGroup that - contains the resources. If multiple API groups are - specified, any action requested against one of the enumerated - resources in any API group will be allowed. "*" means - all. - items: - type: string - type: array - namespaces: - description: Namespaces is a list of namespaces the rule - applies to. "*" means all. - items: - type: string - type: array - resources: - description: Resources is a list of resources this rule - applies to. "*" means all in the specified apiGroups. "*/foo" - represents the subresource 'foo' for all resources in - the specified apiGroups. - items: - type: string - type: array - verbs: - description: 'Verb is a list of kubernetes resource API - verbs, like: get, list, watch, create, update, delete, - proxy. "*" means all.' - items: - type: string - type: array - required: - - apiGroups - - namespaces - - resources - - verbs - type: object - type: array - restRules: - description: RestRules defines the target rest resource of the - limiting policy - items: - description: RestRule defines the target rest resource of - the limiting policy - properties: - method: - description: 'Method specifies the http method of the - request, like: PUT, POST, GET, DELETE.' - type: string - url: - description: URL gives the location of the rest request, - in standard URL form (`scheme://host:port/path`) - type: string - required: - - method - - url - type: object - type: array - triggerPolicy: - description: TriggerPolicy defines how the circuit-breaking - policy triggered from 'Closed' to 'Opened' - type: string - validatePolicy: - description: ValidatePolicy determine the opportunity to validate - req - type: string - required: - - bucket - - name - - recoverPolicy - - triggerPolicy - type: object - type: array - selector: - description: Selector is a label query over pods of this application. - properties: - labelSelector: - description: A label selector is a label query over a set of resources. - The result of matchLabels and matchExpressions are ANDed. An - empty label selector matches all objects. A null label selector - matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: A label selector requirement is a selector - that contains values, a key, and an operator that relates - the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: operator represents a key's relationship - to a set of values. Valid operators are In, NotIn, - Exists and DoesNotExist. - type: string - values: - description: values is an array of string values. If - the operator is In or NotIn, the values array must - be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced - during a strategic merge patch. - items: - type: string - type: array - required: - - key - - operator - type: object - type: array - matchLabels: - additionalProperties: - type: string - description: matchLabels is a map of {key,value} pairs. A - single {key,value} in the matchLabels map is equivalent - to an element of matchExpressions, whose key field is "key", - the operator is "In", and the values array contains only - "value". The requirements are ANDed. - type: object - type: object - targets: - items: - type: string - type: array - type: object - trafficInterceptRules: - description: TrafficInterceptRules defines the traffic rules - items: - description: TrafficInterceptRule defines the traffic intercept - rule - properties: - contentType: - description: ContentType is the content type of the traffic - rule - type: string - contents: - description: Content is the content of the traffic rule - items: - type: string - type: array - interceptType: - description: InterceptType is the intercept type of the traffic - rule - type: string - methods: - description: 'Method specifies the http method of the request, - like: PUT, POST, GET, DELETE.' - items: - type: string - type: array - name: - description: Name is the name of the traffic rule - type: string - required: - - contentType - - contents - - interceptType - - methods - - name - type: object - type: array - required: - - rateLimitings - type: object - status: - description: CircuitBreakerStatus defines the observed state of CircuitBreaker - properties: - lastUpdatedTime: - format: date-time - type: string - limitingSnapshots: - items: - description: LimitingSnapshot defines the snapshot of the whole - limiting policy - properties: - bucket: - description: Bucket defines the whole snapshot of the token - bucket - properties: - availableTokens: - description: AvailableTokens defines the rest tokens of - the bucket. - format: int64 - type: integer - lastAcquireTimestamp: - description: LastAcquireTimestamp is the unix timestamp - that the last token(s) were acquired. - format: int64 - type: integer - required: - - availableTokens - - lastAcquireTimestamp - type: object - endpoint: - description: Endpoint specifies the users who use this rule - type: string - lastTransitionTime: - description: LastTransitionTime is the last time that the status - changed - format: date-time - type: string - name: - description: Name specifies the name of the policy - type: string - podName: - description: PodName specifies the users pod name - type: string - status: - description: Status is the status of the circuit breaker, which - may be 'Opened' or 'Closed'. - type: string - required: - - bucket - - name - - status - type: object - type: array - observedGeneration: - format: int64 - type: integer - required: - - limitingSnapshots - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/versions/kridge/0.1.0-beta.3/templates/namespace.yaml b/versions/kridge/0.1.0-beta.3/templates/namespace.yaml deleted file mode 100644 index ab81ea1..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/namespace.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{- if .Values.namesapceEnabled -}} -apiVersion: v1 -kind: Namespace -metadata: - name: {{ .Values.namespace }} -{{- end }} \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/leader_election_role.yaml b/versions/kridge/0.1.0-beta.3/templates/rbac/leader_election_role.yaml deleted file mode 100644 index eba124e..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/leader_election_role.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# permissions to do leader election. -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: leader-election-role - namespace: {{ .Values.namespace }} -rules: -- apiGroups: - - "" - resources: - - configmaps - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - coordination.k8s.io - resources: - - leases - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/managerstate_viewer_role.yaml b/versions/kridge/0.1.0-beta.3/templates/rbac/managerstate_viewer_role.yaml deleted file mode 100644 index e5cfeb8..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/managerstate_viewer_role.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# permissions for end users to view managerstates. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: managerstate-viewer-role -rules: -- apiGroups: - - kridge.kusionstack.io - resources: - - managerstates - verbs: - - get - - list - - watch -- apiGroups: - - kridge.kusionstack.io - resources: - - managerstates/status - verbs: - - get diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/public_role.yaml b/versions/kridge/0.1.0-beta.3/templates/rbac/public_role.yaml deleted file mode 100644 index c979f8a..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/public_role.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: kridge-public-role -rules: -- apiGroups: - - kridge.kusionstack.io - resources: - - managerstates - - trafficpolicies - verbs: - - get - - list - - watch diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/public_role_binding.yaml b/versions/kridge/0.1.0-beta.3/templates/rbac/public_role_binding.yaml deleted file mode 100644 index b767ae8..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/public_role_binding.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: kridge-public-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: kridge-public-role -subjects: -- apiGroup: rbac.authorization.k8s.io - kind: Group - name: system:authenticated -- apiGroup: rbac.authorization.k8s.io - kind: Group - name: system:unauthenticated diff --git a/versions/kridge/0.1.0-beta.3/templates/rbac/role.yaml b/versions/kridge/0.1.0-beta.3/templates/rbac/role.yaml deleted file mode 100644 index dc1b5c1..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/rbac/role.yaml +++ /dev/null @@ -1,88 +0,0 @@ - ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: kridge-kusionstack-role -rules: -- apiGroups: - - '*' - resources: - - configmaps - - controllerrevisions - - deployments - - endpoints - - persistentvolumeclaims - - pods - - services - - statefulsets - - events - verbs: - - '*' -- apiGroups: - - admissionregistration.k8s.io - resources: - - mutatingwebhookconfigurations - - validatingwebhookconfigurations - verbs: - - get - - list - - patch - - update - - watch - - delete -- apiGroups: - - apps - resources: - - "" - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - "" - resources: - - namespaces - verbs: - - get - - list - - patch - - update - - watch -- apiGroups: - - "" - resources: - - secrets - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - kridge.kusionstack.io - resources: - - managerstates - - managerstates/finalizers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - kridge.kusionstack.io - resources: - - '*' - - '*/status' - verbs: - - '*' \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.3/templates/serviceaccount.yaml b/versions/kridge/0.1.0-beta.3/templates/serviceaccount.yaml deleted file mode 100644 index d13b31c..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/serviceaccount.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: kridge-serviceaccount - namespace: {{ .Values.namespace }} \ No newline at end of file diff --git a/versions/kridge/0.1.0-beta.3/templates/webhook/validating.yaml b/versions/kridge/0.1.0-beta.3/templates/webhook/validating.yaml deleted file mode 100644 index 4eb5464..0000000 --- a/versions/kridge/0.1.0-beta.3/templates/webhook/validating.yaml +++ /dev/null @@ -1,28 +0,0 @@ - -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - name: kridge-validating -webhooks: -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: kridge-webhook-service - namespace: {{ .Values.namespace }} - path: /validate-kridge-shardingconfig - port: 443 - failurePolicy: Fail - name: shardingconfigs.kridge.validating.io - rules: - - apiGroups: - - kridge.kusionstack.io - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - shardingconfigs - sideEffects: None