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,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