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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ generate: $(CONTROLLER_GEN) ## Generate code containing DeepCopy, DeepCopyInto,
go generate
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

.PHONY: crds
crds: manifests ## Generates go code (crds) for lib/crd, embedding config/crd/bases as Go source.
cd lib/crd; go generate

.PHONY: fmt
fmt: $(GOIMPORTS) ## Run go fmt against code.
$(GOIMPORTS) -local github.com/projectsveltos -w .
Expand Down
325 changes: 325 additions & 0 deletions lib/crd/clusterconfigurations.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,325 @@
// Generated by *go generate* - DO NOT EDIT
/*
Copyright 2026. projectsveltos.io. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package crd

var ClusterConfigurationFile = "../../config/crd/bases/config.projectsveltos.io_clusterconfigurations.yaml"
var ClusterConfigurationCRD = []byte(`---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.21.0
name: clusterconfigurations.config.projectsveltos.io
spec:
group: config.projectsveltos.io
names:
kind: ClusterConfiguration
listKind: ClusterConfigurationList
plural: clusterconfigurations
singular: clusterconfiguration
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
description: ClusterConfiguration is the Schema for the clusterconfigurations
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
status:
description: ClusterConfigurationStatus defines the observed state of
ClusterConfiguration
properties:
clusterProfileResources:
description: |-
ClusterProfileResources is the list of resources currently deployed in a Cluster due
to ClusterProfiles
items:
description: |-
ClusterProfileResource keeps info on all of the resources deployed in this Cluster
due to a given ClusterProfile
properties:
Features:
description: |-
Features contains the list of policies deployed in the Cluster because
of a given feature
items:
properties:
charts:
description: Charts is a list of helm charts deployed
in the Cluster.
items:
properties:
appVersion:
description: AppVersion is the version of the app
deployed in the Cluster.
type: string
chartVersion:
description: ChartVersion is the version of the
helm chart deployed in the Cluster.
type: string
icon:
description: The URL to an icon file.
type: string
lastAppliedTime:
description: LastAppliedTime identifies when this
resource was last applied to the cluster.
format: date-time
type: string
namespace:
description: Namespace where chart is deployed in
the Cluster.
type: string
releaseName:
description: ReleaseName name of the release deployed
in the Cluster.
minLength: 1
type: string
repoURL:
description: |-
RepoURL URL of the repo containing the helm chart deployed
in the Cluster.
minLength: 1
type: string
required:
- chartVersion
- lastAppliedTime
- releaseName
- repoURL
type: object
type: array
featureID:
description: FeatureID is an indentifier of the feature
whose status is reported
enum:
- Resources
- Helm
- Kustomize
type: string
resources:
description: Resources is a list of resources deployed
in the Cluster.
items:
properties:
deploymentType:
default: Remote
description: |-
DeploymentType indicates whether resources is deployed
into the management cluster (local) or the managed cluster (remote)
enum:
- Local
- Remote
type: string
group:
description: Group of the resource deployed in the
Cluster.
type: string
kind:
description: Kind of the resource deployed in the
Cluster.
minLength: 1
type: string
lastAppliedTime:
description: LastAppliedTime identifies when this
resource was last applied to the cluster.
format: date-time
type: string
name:
description: Name of the resource deployed in the
Cluster.
minLength: 1
type: string
namespace:
description: |-
Namespace of the resource deployed in the Cluster.
Empty for resources scoped at cluster level.
type: string
version:
description: Version of the resource deployed in
the Cluster.
minLength: 1
type: string
required:
- group
- kind
- name
- version
type: object
type: array
required:
- featureID
type: object
type: array
clusterProfileName:
description: ProfileName is the name of the ClusterProfile matching
the Cluster.
type: string
required:
- clusterProfileName
type: object
type: array
profileResources:
description: |-
ProfileResources is the list of resources currently deployed in a Cluster due
to Profiles
items:
description: |-
ProfileResource keeps info on all of the resources deployed in this Cluster
due to a given Profile
properties:
Features:
description: |-
Features contains the list of policies deployed in the Cluster because
of a given feature
items:
properties:
charts:
description: Charts is a list of helm charts deployed
in the Cluster.
items:
properties:
appVersion:
description: AppVersion is the version of the app
deployed in the Cluster.
type: string
chartVersion:
description: ChartVersion is the version of the
helm chart deployed in the Cluster.
type: string
icon:
description: The URL to an icon file.
type: string
lastAppliedTime:
description: LastAppliedTime identifies when this
resource was last applied to the cluster.
format: date-time
type: string
namespace:
description: Namespace where chart is deployed in
the Cluster.
type: string
releaseName:
description: ReleaseName name of the release deployed
in the Cluster.
minLength: 1
type: string
repoURL:
description: |-
RepoURL URL of the repo containing the helm chart deployed
in the Cluster.
minLength: 1
type: string
required:
- chartVersion
- lastAppliedTime
- releaseName
- repoURL
type: object
type: array
featureID:
description: FeatureID is an indentifier of the feature
whose status is reported
enum:
- Resources
- Helm
- Kustomize
type: string
resources:
description: Resources is a list of resources deployed
in the Cluster.
items:
properties:
deploymentType:
default: Remote
description: |-
DeploymentType indicates whether resources is deployed
into the management cluster (local) or the managed cluster (remote)
enum:
- Local
- Remote
type: string
group:
description: Group of the resource deployed in the
Cluster.
type: string
kind:
description: Kind of the resource deployed in the
Cluster.
minLength: 1
type: string
lastAppliedTime:
description: LastAppliedTime identifies when this
resource was last applied to the cluster.
format: date-time
type: string
name:
description: Name of the resource deployed in the
Cluster.
minLength: 1
type: string
namespace:
description: |-
Namespace of the resource deployed in the Cluster.
Empty for resources scoped at cluster level.
type: string
version:
description: Version of the resource deployed in
the Cluster.
minLength: 1
type: string
required:
- group
- kind
- name
- version
type: object
type: array
required:
- featureID
type: object
type: array
profileName:
description: ProfileName is the name of the Profile matching
the Cluster.
type: string
required:
- profileName
type: object
type: array
type: object
type: object
served: true
storage: true
subresources:
status: {}
`)
Loading