Public Information

This commit is contained in:
2025-01-24 16:18:47 +01:00
commit 0bd2038c86
449 changed files with 108655 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: nplus-cluster
description: Installs Cluster-Wide Resources such as CRDs
icon: data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNTEuMDI0IDUxLjAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNTEuMDI0IDUxLjAyNCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBvbHlnb24gZmlsbD0iI0E0QkZFNCIgcG9pbnRzPSIzMi4zMjIsMTkuNzQ0IDIwLjY0OSwxOS43NDQgMTguNTkxLDMxLjQxNyAzMC4yNjQsMzEuNDE3IAkiLz4KCTxwb2x5Z29uIGZpbGw9IiNBNEJGRTQiIHBvaW50cz0iNDcuMTg1LDE5Ljc0NCAzNS41MTIsMTkuNzQ0IDMzLjQ1NCwzMS40MTcgNDUuMTI2LDMxLjQxNyAJIi8+Cgk8cG9seWdvbiBmaWxsPSIjQTRCRkU0IiBwb2ludHM9IjI5Ljc2NiwzNC41NTEgMTguMDk0LDM0LjU1MSAxNi4wMzUsNDYuMjI0IDI3LjcwOCw0Ni4yMjQgCSIvPgoJPHBvbHlnb24gZmlsbD0iI0E0QkZFNCIgcG9pbnRzPSIxNy41NywxOS43NDQgNS44OTcsMTkuNzQ0IDMuODM5LDMxLjQxNyAxNS41MTIsMzEuNDE3IAkiLz4KCTxwb2x5Z29uIGZpbGw9IiNBNEJGRTQiIHBvaW50cz0iMzUuMTUsNC43OTkgMjMuNDc3LDQuNzk5IDIxLjQxOSwxNi40NzIgMzMuMDkyLDE2LjQ3MiAJIi8+Cjwvc3ZnPgo=
type: application
version: 1.0.0

6
charts/cluster/README.md Normal file
View File

@@ -0,0 +1,6 @@
# nplus-cluster
Installs Cluster-Wide Resources such as CRDs

View File

@@ -0,0 +1,81 @@
{{/*
#
# Dieses ist erstmal ausgeschaltet, vielleicht brauchen wir das mal in einer späteren Version
#
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: nplus-role-argo
annotations:
{{- include "nplus.argoSharedResource" . | nindent 4 }}
{{- include "nplus.annotations" . | nindent 4 }}
rules:
- apiGroups: ["argoproj.io"]
resources: ["applications"]
verbs: ["create", "get", "update", "patch", "delete", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: nplus-role-binding-argo
labels:
{{- include "nplus.instanceLabels" . | nindent 4 }}
annotations:
{{- include "nplus.argoSharedResource" . | nindent 4 }}
{{- include "nplus.annotations" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nplus-role-argo
subjects:
- kind: ServiceAccount
name: nplus-svc-account
{{- if .this.utils.includeNamespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: nplus-argo-role
namespace: argocd
labels:
{{- include "nplus.instanceLabels" . | nindent 4 }}
annotations:
{{- include "nplus.argoSharedResource" . | nindent 4 }}
{{- include "nplus.annotations" . | nindent 4 }}
rules:
- apiGroups: [""]
resources: ["configmaps", "application","applicationset"]
verbs: ["create", "get", "update", "patch", "delete", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: nplus-argo-role-binding
namespace: argocd
labels:
{{- include "nplus.instanceLabels" . | nindent 4 }}
annotations:
{{- include "nplus.argoSharedResource" . | nindent 4 }}
{{- include "nplus.annotations" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: nplus-argo-role
subjects:
- kind: ServiceAccount
name: nplus-svc-account
{{- if .this.utils.includeNamespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
*/}}

View File

@@ -0,0 +1,54 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: applications.nplus.cloud
spec:
group: nplus.cloud
scope: Namespaced
names:
kind: Application
singular: application
plural: applications
categories:
- nplus
- nscale
versions:
- name: v1beta1
served: true
storage: true
additionalPrinterColumns:
- name: Environment
type: string
jsonPath: .metadata.labels.nplus/environment
priority: 1
- name: Instance
type: string
jsonPath: .metadata.labels.nplus/instance
- name: Application
type: string
jsonPath: .metadata.labels.nplus/component
- name: Version
type: string
jsonPath: .metadata.annotations.nplus/componentVersion
- name: Status
type: string
jsonPath: .status.message
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
properties:
message:
description: Health human readable
type: string
id:
description: Health status id
type: integer
updateTimestamp:
description: Timestamp of last Health Change
type: string

View File

@@ -0,0 +1,57 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: components.nplus.cloud
spec:
group: nplus.cloud
scope: Namespaced
names:
kind: Component
singular: component
plural: components
categories:
- nplus
- nscale
versions:
- name: v1beta1
served: true
storage: true
additionalPrinterColumns:
- name: Environment
type: string
jsonPath: .metadata.labels.nplus/environment
priority: 1
- name: Instance
type: string
jsonPath: .metadata.labels.nplus/instance
- name: Component
type: string
jsonPath: .metadata.labels.nplus/component
- name: Type
type: string
jsonPath: .metadata.labels.nplus/type
- name: Version
type: string
jsonPath: .metadata.annotations.nplus/componentVersion
- name: Status
type: string
jsonPath: .status.message
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
properties:
message:
description: Health human readable
type: string
id:
description: Health status id
type: integer
updateTimestamp:
description: Timestamp of last Health Change
type: string

View File

@@ -0,0 +1,92 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: instances.nplus.cloud
spec:
group: nplus.cloud
scope: Namespaced
names:
kind: Instance
singular: instance
plural: instances
categories:
- nplus
- nscale
versions:
- name: v1beta1
served: true
storage: true
additionalPrinterColumns:
- name: Handler
type: string
jsonPath: .spec.handler
- name: Version
type: string
jsonPath: .spec.nscaleVersion
- name: Tenant
type: string
jsonPath: .spec.tenant
- name: Provider
type: string
jsonPath: .spec.provider
priority: 1
- name: Status
type: string
jsonPath: .status.message
- name: Components
type: string
jsonPath: .spec.components
priority: 2
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
# x-kubernetes-preserve-unknown-fields: true
properties:
nscaleVersion:
type: string
components:
type: string
handler:
type: string
tenant:
type: string
provider:
type: string
url:
type: string
expected:
type: array
items:
type: object
properties:
component:
type: string
replicaCount:
type: integer
required:
- component
- replicaCount
status:
type: object
properties:
usage:
type: object
properties:
volume:
type: integer
accounts:
type: integer
documents:
type: integer
message:
description: Health human readable
type: string
id:
description: Health status id
type: integer
updateTimestamp:
description: Timestamp of last Health Change
type: string

View File

@@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"global": {
"description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.",
"title": "global",
"type": "object"
}
},
"type": "object"
}

View File

@@ -0,0 +1,2 @@
# yaml-language-server: $schema=values.schema.json
{}