-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kamaji to latest version (#361)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new version (2.0.0) for the Kamaji project with updated dependencies and configuration options. - Added support for a new `kamaji-etcd` dependency, enhancing datastore functionality. - Implemented comprehensive access control with a new Kubernetes ClusterRole. - Added webhook configurations for validating and mutating resources. - **Bug Fixes** - Streamlined configuration by removing outdated etcd settings and consolidating datastore configurations. - **Documentation** - Updated README.md to reflect new version and configuration options. - **Chores** - Simplified Dockerfile by using a pre-built image instead of a multi-stage build process. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
29 changed files
with
870 additions
and
2,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: kamaji-etcd | ||
repository: https://clastix.github.io/charts | ||
version: 0.8.0 | ||
digest: sha256:525b0eb2b5bae709d62de9328312d42c54b5219c6df67061de0da79eeca04fb3 | ||
generated: "2024-08-25T08:44:24.92211307+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
annotations: | ||
catalog.cattle.io/certified: partner | ||
catalog.cattle.io/display-name: Kamaji | ||
catalog.cattle.io/release-name: kamaji | ||
apiVersion: v2 | ||
appVersion: v1.0.0 | ||
description: Kamaji is the Hosted Control Plane Manager for Kubernetes. | ||
home: https://github.com/clastix/kamaji | ||
icon: https://github.com/clastix/kamaji/raw/master/assets/logo-colored.png | ||
kubeVersion: '>=1.21.0-0' | ||
kubeVersion: ">=1.21.0-0" | ||
maintainers: | ||
- email: [email protected] | ||
name: Dario Tranchitella | ||
|
@@ -21,4 +17,33 @@ name: kamaji | |
sources: | ||
- https://github.com/clastix/kamaji | ||
type: application | ||
version: 1.0.0 | ||
version: 2.0.0 | ||
dependencies: | ||
- name: kamaji-etcd | ||
repository: https://clastix.github.io/charts | ||
version: ">=0.7.0" | ||
condition: kamaji-etcd.deploy | ||
annotations: | ||
catalog.cattle.io/certified: partner | ||
catalog.cattle.io/release-name: kamaji | ||
catalog.cattle.io/display-name: Kamaji | ||
artifacthub.io/crds: | | ||
- kind: TenantControlPlane | ||
version: v1alpha1 | ||
name: tenantcontrolplanes.kamaji.clastix.io | ||
displayName: TenantControlPlane | ||
description: TenantControlPlane defines the desired state for a Control Plane backed by Kamaji. | ||
- kind: DataStore | ||
version: v1alpha1 | ||
name: datastores.kamaji.clastix.io | ||
displayName: DataStore | ||
description: DataStores is holding all the required details to communicate with a Datastore, such as etcd, MySQL, PostgreSQL, and NATS. | ||
artifacthub.io/links: | | ||
- name: CLASTIX | ||
url: https://clastix.io | ||
- name: support | ||
url: https://clastix.io/support | ||
artifacthub.io/operator: "true" | ||
artifacthub.io/operatorCapabilities: "full lifecycle" | ||
artifacthub.io/changes: | | ||
- Using dependency chart `kamaji-etcd` as a default DataStore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
packages/system/kamaji/charts/kamaji/controller-gen/clusterrole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- jobs | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
- secrets | ||
- services | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
resources: | ||
- datastores | ||
- tenantcontrolplanes | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
resources: | ||
- datastores/status | ||
- tenantcontrolplanes/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
resources: | ||
- tenantcontrolplanes/finalizers | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- networking.k8s.io | ||
resources: | ||
- ingresses | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch |
11 changes: 11 additions & 0 deletions
11
packages/system/kamaji/charts/kamaji/controller-gen/crd-conversion.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
spec: | ||
conversion: | ||
strategy: Webhook | ||
webhook: | ||
clientConfig: | ||
service: | ||
name: kamaji-webhook-service | ||
namespace: kamaji-system | ||
path: /convert | ||
conversionReviewVersions: | ||
- v1 |
20 changes: 20 additions & 0 deletions
20
packages/system/kamaji/charts/kamaji/controller-gen/mutating-webhook.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: '{{ include "kamaji.webhookServiceName" . }}' | ||
namespace: '{{ .Release.Namespace }}' | ||
path: /mutate-kamaji-clastix-io-v1alpha1-tenantcontrolplane | ||
failurePolicy: Fail | ||
name: mtenantcontrolplane.kb.io | ||
rules: | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- tenantcontrolplanes | ||
sideEffects: None |
81 changes: 81 additions & 0 deletions
81
packages/system/kamaji/charts/kamaji/controller-gen/validating-webhook.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: '{{ include "kamaji.webhookServiceName" . }}' | ||
namespace: '{{ .Release.Namespace }}' | ||
path: /telemetry | ||
failurePolicy: Ignore | ||
name: telemetry.kamaji.clastix.io | ||
rules: | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
- DELETE | ||
resources: | ||
- tenantcontrolplanes | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: '{{ include "kamaji.webhookServiceName" . }}' | ||
namespace: '{{ .Release.Namespace }}' | ||
path: /validate-kamaji-clastix-io-v1alpha1-datastore | ||
failurePolicy: Fail | ||
name: vdatastore.kb.io | ||
rules: | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
- DELETE | ||
resources: | ||
- datastores | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: '{{ include "kamaji.webhookServiceName" . }}' | ||
namespace: '{{ .Release.Namespace }}' | ||
path: /validate--v1-secret | ||
failurePolicy: Ignore | ||
name: vdatastoresecrets.kb.io | ||
rules: | ||
- apiGroups: | ||
- "" | ||
apiVersions: | ||
- v1 | ||
operations: | ||
- DELETE | ||
resources: | ||
- secrets | ||
sideEffects: None | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
service: | ||
name: '{{ include "kamaji.webhookServiceName" . }}' | ||
namespace: '{{ .Release.Namespace }}' | ||
path: /validate-kamaji-clastix-io-v1alpha1-tenantcontrolplane | ||
failurePolicy: Fail | ||
name: vtenantcontrolplane.kb.io | ||
rules: | ||
- apiGroups: | ||
- kamaji.clastix.io | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- tenantcontrolplanes | ||
sideEffects: None |
Oops, something went wrong.