Skip to content
Open
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
217 changes: 172 additions & 45 deletions documentation/public/installation.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions manifests/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: SM_CLUSTER_ROLE_BINDING_NAME
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: SM_CLUSTER_ROLE_NAME
subjects:
- kind: ServiceAccount
name: SM_ACCOUNT_NAME
namespace: SM_NAMESPACE
26 changes: 26 additions & 0 deletions manifests/cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: SM_CLUSTER_ROLE_NAME
rules:
- apiGroups: ["netcracker.com"]
resources: ["sitemanagers"]
verbs: ["get", "list", "watch"]
- apiGroups: ["netcracker.com"]
resources: ["sitemanagers/status"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["qubership.org"]
resources: ["sitemanagers"]
verbs: ["get", "list", "watch"]
- apiGroups: ["qubership.org"]
resources: ["sitemanagers/status"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "create", "update"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
133 changes: 133 additions & 0 deletions manifests/crd-sitemanager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.18.0
name: sitemanagers.qubership.org
spec:
group: qubership.org
names:
kind: SiteManager
listKind: SiteManagerList
plural: sitemanagers
singular: sitemanager
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Service name in site-manager
jsonPath: .status.serviceName
name: SERVICE NAME
type: string
- description: The summary status of service
jsonPath: .status.summary
name: STATUS
type: string
name: v3
schema:
openAPIV3Schema:
description: SiteManager is the Schema for the sitemanagers 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: SiteManagerSpec defines the desired state of SiteManager.
properties:
sitemanager:
description: This additional "options" struct is introduced to keep
backward compatibility
properties:
after:
items:
type: string
type: array
alias:
type: string
allowedStandbyStateList:
items:
type: string
type: array
before:
items:
type: string
type: array
module:
type: string
parameters:
properties:
healthzEndpoint:
type: string
serviceEndpoint:
type: string
type: object
sequence:
items:
type: string
type: array
timeout:
format: int64
type: integer
required:
- module
type: object
required:
- sitemanager
type: object
status:
description: SiteManagerStatus defines the observed state of SiteManager.
properties:
serviceName:
type: string
summary:
type: string
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: site-manager-qubership-validating-webhook-configuration
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
service:
name: site-manager
namespace: site-manager
path: /validate-qubership-org-v3-sitemanager
port: 442
caBundle: "<base-64-encoded-ca-bundle>"
failurePolicy: Fail
name: vsitemanager-v3.kb.io
rules:
- apiGroups:
- qubership.org
apiVersions:
- v3
operations:
- CREATE
- UPDATE
resources:
- sitemanagers
sideEffects: None
Loading
Loading