Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/codezero/codezero-1.11.5.tgz
Binary file not shown.
Binary file added assets/icons/codezero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions charts/codezero/codezero/1.11.5/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
13 changes: 13 additions & 0 deletions charts/codezero/codezero/1.11.5/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
annotations:
catalog.cattle.io/certified: partner
catalog.cattle.io/display-name: Codezero
catalog.cattle.io/kube-version: '>=1.27-0'
catalog.cattle.io/release-name: codezero
apiVersion: v2
appVersion: 2.20.0
description: Codezero 2.x system for Kubernetes
icon: file://assets/icons/codezero.png
kubeVersion: '>=1.27-0'
name: codezero
type: application
version: 1.11.5
65 changes: 65 additions & 0 deletions charts/codezero/codezero/1.11.5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Helm charts for Codezero Space Agent

For further information regarding Codezero, please refer to the [Codezero documentation](https://docs.codezero.io).

## Installing the Chart

```sh
helm repo add --force-update codezero https://charts.codezero.io
helm install --create-namespace --namespace=codezero \
--set space.name='<TEAMSPACE NAME>' \
--set org.id='<ORG_ID>' \
--set org.apikey='<ORG_API_KEY>' \
codezero codezero/codezero
```

## Upgrading the Chart

```sh
helm repo add --force-update codezero https://charts.codezero.io
helm upgrade --namespace=codezero codezero codezero/codezero
```

## Uninstalling the Chart

```sh
helm -n codezero uninstall codezero
kubectl delete ns codezero
```

## Configuration Options

| Name | Default | Description |
| -------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `image.repository` | `""` | Override default image repository for all codezero deployments. |
| `image.tag` | `""` | Override default image tag for all codezero deployments |
| `org.apikey` | `""` | Your Organization API Key |
| `org.id` | `""` | Your Organization ID |
| `org.secret` | `""` | Provide custom secret for `org.id` and `org.apikey`. Secret data must have the keys `CZ_HUB_ORG_ID` and `CZ_HUB_ORG_APIKEY`. Takes precedence over `org.id` and `org.apikey` helm values.
| `opa.url` | `""` | URL of your Open Policy Agent |
| `opa.enabled` | `false` | If true enable OPA |
| `operator.image.tag` | `""` | Override default image tag for operator deployment |
| `operator.image.repository` | `""` | Override default image repository for operator deployment |
| `operator.labels` | `{}` | Set operator deployment labels |
| `operator.podLabels` | `{}` | Set operator pod labels |
| `router.image.tag` | `""` | Override default image tag for router deployment |
| `router.image.repository` | `""` | Override default image repository for router deployment |
| `router.labels` | `{}` | Sets router deployment labels |
| `router.privilegedAccess` | `false` | If true router pods are deployed with an empty securityContext |
| `router.podAnnotations` | `{}` | Set pod annotations |
| `router.podLabels` | `{}` | Sets pod labels |
| `router.replicas` | `1` | Number of replicas for router deployments on Serves |
| `router.serviceLabels` | `{}` | Set router service labels |
| `router.topologySpreadConstraints` | `[]` | Pod Topology Spread Constraints of router deployments |
| `space.name` | `""` | Name of Teamspace |
| `spaceagent.externalHost` | `""` | For cases where codezero's loadbalancer host is not public and custom networking/ingress is used to make the spaceagent publicly accessible |
| `spaceagent.image.tag` | `""` | Override default image tag for spaceagent deployment |
| `spaceagent.image.repository` | `""` | Override default image repository for spaceagent deployment |
| `spaceagent.logLevel` | `info` | Set logging verbosity, valid log levels are: debug, info, warn, error. |
| `spaceagent.labels` | `{}` | Set spaceagent deployment labels |
| `spaceagent.podLabels` | `{}` | Set spaceagent pod labels |
| `spaceagent.replicas` | `1` | Number of replicas for the Space Agent deployment` |
| `spaceagent.redis.secret` | `""` | Required when `spaceagent.replicas` is greater than 1. Name of the K8s Secret that contains the Redis connection parameters with the following `data` keys: `host`, `password`. The Secret must be in the Space Agent's namespace. |
| `spaceagent.service.annotations` | `{}` | Set annotations for the spaceagent service, e.g. to set cloud provider specific annotations for loadbalancer creation.
| `spaceagent.service.loadBalancerIP` | `""` | Sets the IP address for the spaceagent service. If the IP address is the public IP for contacting the spaceagent set `spaceagent.externalHost` to the same value |
| `spaceagent.topologySpreadConstraints` | `[]` | Pod Topology Spread Constraints of Space Agent deployment |
21 changes: 21 additions & 0 deletions charts/codezero/codezero/1.11.5/app-readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Codezero

Codezero introduces an innovative overlay network that transforms VMs / Kubernetes clusters into Teamspaces, enhancing collaborative development.

**Teamspaces**: These are specialized development environments where developers can work together seamlessly. Teamspaces facilitate real-time collaboration by allowing developers to:

- **Consume Services**: Developers can access and utilize services listed in a Service Catalog. This Catalog includes services running either within a Kubernetes cluster / VM or on a team member's local machine, ensuring that all team members have access to the necessary components for development and testing.
- **Serve Local Variants**: Team members can temporarily share their own local versions (or Variants) of Services. By serving these local variants through the Service Catalog, developers can test and iterate on their work in a shared environment, promoting rapid feedback and integration.

This simplifies the development process and bridges the gap between Local development and Remote deployment, allowing developers to focus more on coding and less on managing network configurations.

## Rancher Installation

1. Log in to https://hub.codezero.io, navigate to "API Keys" and note the Organization ID and API Key.
1. Go to Apps in the Rancher UI. In the Chart section click on the Codezero chart and then on Install.
1. Select a namespace for Codezero Space Agent to be installed (recommended new namespace: codezero) and click "Next".
1. Paste the Organization ID and API Key from the Codezero API Keys page (see step 1).
1. Enter a name for the new Teamspace, e.g. the name of the cluster and click Next.
1. Click on the Install button to complete installation of the agent.

To perform an upgrade, click on Edit/Upgrade.
Binary file added charts/codezero/codezero/1.11.5/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions charts/codezero/codezero/1.11.5/questions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
questions:
- variable: org.id
required: true
description: "Your organization ID"
label: Organization ID
type: string
group: "Settings"
- variable: org.apikey
required: true
description: "Your organization API key"
label: Organization API Key
type: string
group: "Settings"
- variable: space.name
required: true
description: "Name of teamspace"
label: Teamspace Name
type: string
group: "Settings"
51 changes: 51 additions & 0 deletions charts/codezero/codezero/1.11.5/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{{- define "codezero.name" -}}
codezero
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "codezero.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "codezero.labels" -}}
helm.sh/chart: {{ include "codezero.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: codezero
{{- with .Values.labels }}
{{ . | toYaml }}
{{- end }}
{{- end }}

{{/*
Pod labels
*/}}
{{- define "codezero.podLabels" -}}
{{ include "codezero.labels" . }}
{{- with .Values.podLabels }}
{{ . | toYaml }}
{{- end }}
{{- end }}

{{/*
Pod annotations
*/}}
{{- define "codezero.podAnnotations" -}}
{{- with .Values.podAnnotations }}
{{ . | toYaml }}
{{- end }}
{{- end }}

{{/*
Return a remote image path based on `.` (passed as root) and e.g. `.Values.spaceagent.image` ( passed as image )
*/}}
{{- define "image-path" -}}
{{ .image.repository | default .root.Values.image.repository | default "c6oio" }}/{{ .image.name }}:{{ .image.tag | default .root.Values.image.tag | default .root.Chart.AppVersion }}
{{- end -}}
47 changes: 47 additions & 0 deletions charts/codezero/codezero/1.11.5/templates/operator/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{- if ne .Release.Namespace "codezero" }}
{{- fail "Codezero has to be installed in codezero namespace" }}
{{- end }}

{{- define "operator.name" -}}
operator
{{- end }}

{{/*
Common labels
*/}}
{{- define "operator.labels" -}}
{{ include "codezero.labels" . }}
{{ include "operator.selectorLabels" . }}
{{- with .Values.operator.labels }}
{{ . | toYaml }}
{{- end }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "operator.selectorLabels" -}}
app.kubernetes.io/name: {{ include "operator.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Pod labels
*/}}
{{- define "operator.podLabels" -}}
{{ include "codezero.podLabels" . }}
{{ include "operator.selectorLabels" . }}
{{- with .Values.operator.podLabels }}
{{ . | toYaml }}
{{- end }}
{{- end }}

{{/*
Pod annotations
*/}}
{{- define "operator.podAnnotations" -}}
{{ include "codezero.podAnnotations" . }}
{{- with .Values.operator.podAnnotations }}
{{ . | toYaml }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "codezero.name" . }}:operator
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services/status
verbs:
- get
- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments/status
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
verbs:
- list
- watch
- apiGroups:
- codezero.io
resources:
- serves
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- codezero.io
resources:
- serves/finalizers
verbs:
- update
- apiGroups:
- codezero.io
resources:
- serves/status
verbs:
- get
- patch
- update
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: operator
name: {{ include "codezero.name" . }}:operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "codezero.name" . }}:operator
subjects:
- kind: ServiceAccount
name: operator
namespace: {{ .Release.Namespace }}
Loading