-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: francostellari <[email protected]> CP, PCH, statusaddon, docs Signed-off-by: francostellari <[email protected]>
- Loading branch information
1 parent
c85c696
commit 014deef
Showing
12 changed files
with
686 additions
and
272 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
141 changes: 141 additions & 0 deletions
141
chart/crds/tenancy.kflex.kubestellar.org_controlplanes.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,141 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.11.3 | ||
creationTimestamp: null | ||
name: controlplanes.tenancy.kflex.kubestellar.org | ||
spec: | ||
group: tenancy.kflex.kubestellar.org | ||
names: | ||
kind: ControlPlane | ||
listKind: ControlPlaneList | ||
plural: controlplanes | ||
shortNames: | ||
- cp | ||
- cps | ||
singular: controlplane | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.conditions[?(@.type=='Synced')].status | ||
name: SYNCED | ||
type: string | ||
- jsonPath: .status.conditions[?(@.type=='Ready')].status | ||
name: READY | ||
type: string | ||
- jsonPath: .spec.type | ||
name: TYPE | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: AGE | ||
type: date | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: ControlPlane is the Schema for the controlplanes 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: ControlPlaneSpec defines the desired state of ControlPlane | ||
properties: | ||
backend: | ||
enum: | ||
- shared | ||
- dedicated | ||
type: string | ||
postCreateHook: | ||
type: string | ||
postCreateHookVars: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
type: | ||
enum: | ||
- k8s | ||
- ocm | ||
- vcluster | ||
- host | ||
type: string | ||
type: object | ||
status: | ||
description: ControlPlaneStatus defines the observed state of ControlPlane | ||
properties: | ||
conditions: | ||
items: | ||
description: ControlPlaneCondition describes the state of a control | ||
plane at a certain point. | ||
properties: | ||
lastTransitionTime: | ||
format: date-time | ||
type: string | ||
lastUpdateTime: | ||
format: date-time | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
type: string | ||
required: | ||
- lastTransitionTime | ||
- lastUpdateTime | ||
- message | ||
- reason | ||
- status | ||
- type | ||
type: object | ||
type: array | ||
observedGeneration: | ||
format: int64 | ||
type: integer | ||
postCreateHooks: | ||
additionalProperties: | ||
type: boolean | ||
type: object | ||
secretRef: | ||
description: SecretRef contains a referece to the secret containing | ||
the Kubeconfig for the control plane | ||
properties: | ||
inClusterKey: | ||
description: Required | ||
type: string | ||
key: | ||
description: Required | ||
type: string | ||
name: | ||
description: '`name` is the name of the secret. Required' | ||
type: string | ||
namespace: | ||
description: '`namespace` is the namespace of the secret. Required' | ||
type: string | ||
required: | ||
- inClusterKey | ||
- key | ||
- name | ||
- namespace | ||
type: object | ||
required: | ||
- conditions | ||
- observedGeneration | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
126 changes: 126 additions & 0 deletions
126
chart/crds/tenancy.kflex.kubestellar.org_postcreatehooks.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,126 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.11.3 | ||
creationTimestamp: null | ||
name: postcreatehooks.tenancy.kflex.kubestellar.org | ||
spec: | ||
group: tenancy.kflex.kubestellar.org | ||
names: | ||
kind: PostCreateHook | ||
listKind: PostCreateHookList | ||
plural: postcreatehooks | ||
shortNames: | ||
- pch | ||
- pchs | ||
singular: postcreatehook | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.conditions[?(@.type=='Synced')].status | ||
name: SYNCED | ||
type: string | ||
- jsonPath: .status.conditions[?(@.type=='Ready')].status | ||
name: READY | ||
type: string | ||
- jsonPath: .spec.type | ||
name: TYPE | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: AGE | ||
type: date | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: PostCreateHook is the Schema for the controlplanes 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: PostCreateHookSpec defines the desired state of PostCreateHook | ||
properties: | ||
templates: | ||
items: | ||
description: Manifest represents a resource to be deployed | ||
type: object | ||
x-kubernetes-embedded-resource: true | ||
x-kubernetes-preserve-unknown-fields: true | ||
type: array | ||
type: object | ||
status: | ||
description: PostCreateHookStatus defines the observed state of PostCreateHook | ||
properties: | ||
conditions: | ||
items: | ||
description: ControlPlaneCondition describes the state of a control | ||
plane at a certain point. | ||
properties: | ||
lastTransitionTime: | ||
format: date-time | ||
type: string | ||
lastUpdateTime: | ||
format: date-time | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
type: string | ||
required: | ||
- lastTransitionTime | ||
- lastUpdateTime | ||
- message | ||
- reason | ||
- status | ||
- type | ||
type: object | ||
type: array | ||
observedGeneration: | ||
format: int64 | ||
type: integer | ||
secretRef: | ||
description: SecretRef contains a referece to the secret containing | ||
the Kubeconfig for the control plane | ||
properties: | ||
inClusterKey: | ||
description: Required | ||
type: string | ||
key: | ||
description: Required | ||
type: string | ||
name: | ||
description: '`name` is the name of the secret. Required' | ||
type: string | ||
namespace: | ||
description: '`namespace` is the namespace of the secret. Required' | ||
type: string | ||
required: | ||
- inClusterKey | ||
- key | ||
- name | ||
- namespace | ||
type: object | ||
required: | ||
- conditions | ||
- observedGeneration | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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,17 @@ | ||
{{- range $name, $opt := .Values.cp }} | ||
--- | ||
apiVersion: tenancy.kflex.kubestellar.org/v1alpha1 | ||
kind: ControlPlane | ||
metadata: | ||
name: {{ $name }} | ||
spec: | ||
backend: shared | ||
{{- if $opt }} | ||
type: {{ $opt.type | default "k8s" }} | ||
{{- if $opt.pch }} | ||
postCreateHook: {{ $opt.pch }} | ||
{{- end }} | ||
{{- else }} | ||
type: "k8s" | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.