crd

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 14 Imported by: 17

Documentation

Overview

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022-23. 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.

Generated by *go generate* - DO NOT EDIT

Copyright 2022. 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.

Index

Constants

This section is empty.

Variables

View Source
var AccessRequestCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: accessrequests.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: AccessRequest
    listKind: AccessRequestList
    plural: accessrequests
    singular: accessrequest
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: AccessRequest is the Schema for the accessrequest 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: AccessRequestSpec defines the desired state of AccessRequest
            properties:
              controlPlaneEndpoint:
                description: |-
                  ControlPlaneEndpoint represents the endpoint used to communicate with the
                  management cluster controlplane endpoint. It will be used when generating the
                  kubeconfig.
                minProperties: 1
                properties:
                  host:
                    description: host is the hostname on which the API server is serving.
                    maxLength: 512
                    minLength: 1
                    type: string
                  port:
                    description: port is the port on which the API server is serving.
                    format: int32
                    maximum: 65535
                    minimum: 1
                    type: integer
                type: object
              name:
                description: |-
                  Name is the name of the service account created
                  for this AccessRequest
                type: string
              namespace:
                description: |-
                  Namespace is the namespace of the service account created
                  for this AccessRequest
                type: string
              type:
                description: Type represent the type of the request
                enum:
                - SveltosAgent
                - Different
                type: string
            required:
            - controlPlaneEndpoint
            - name
            - namespace
            - type
            type: object
          status:
            description: AccessRequestStatus defines the status of AccessRequest
            properties:
              failureMessage:
                description: FailureMessage provides more information if an error
                  occurs.
                type: string
              secretRef:
                description: SecretRef points to the Secret containing Kubeconfig
                properties:
                  apiVersion:
                    description: API version of the referent.
                    type: string
                  fieldPath:
                    description: |-
                      If referring to a piece of an object instead of an entire object, this string
                      should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                      For example, if the object reference is to a container within a pod, this would take on a value like:
                      "spec.containers{name}" (where "name" refers to the name of the container that triggered
                      the event) or if no container name is specified "spec.containers[2]" (container with
                      index 2 in this pod). This syntax is chosen only to have some well-defined way of
                      referencing a part of an object.
                    type: string
                  kind:
                    description: |-
                      Kind of the referent.
                      More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                    type: string
                  name:
                    description: |-
                      Name of the referent.
                      More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                    type: string
                  namespace:
                    description: |-
                      Namespace of the referent.
                      More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                    type: string
                  resourceVersion:
                    description: |-
                      Specific resourceVersion to which this reference is made, if any.
                      More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                    type: string
                  uid:
                    description: |-
                      UID of the referent.
                      More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                    type: string
                type: object
                x-kubernetes-map-type: atomic
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var AccessRequestFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_accessrequests.lib.projectsveltos.io.yaml"
View Source
var ClassifierCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: classifiers.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: Classifier
    listKind: ClassifierList
    plural: classifiers
    singular: classifier
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: Classifier is the Schema for the classifiers 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: ClassifierSpec defines the desired state of Classifier
            properties:
              classifierLabels:
                description: |-
                  ClassifierLabels is set of labels, key,value pair, that will be added to each
                  cluster matching Classifier instance
                items:
                  properties:
                    key:
                      description: Key is the label key
                      type: string
                    value:
                      description: Value is the label value
                      type: string
                  required:
                  - key
                  - value
                  type: object
                type: array
              deployedResourceConstraint:
                description: DeployedResourceConstraint allows to classify based on
                  current deployed resources
                properties:
                  aggregatedClassification:
                    description: |-
                      AggregatedClassification is optional and can be used to specify a Lua function
                      that will be used to further detect whether the subset of the resources
                      selected using the ResourceSelector field are a match for this Classifier.
                      The function will receive the array of resources selected by ResourceSelectors.
                      If this field is not specified, a cluster is a match for Classifier instance,
                      if all ResourceSelectors returns at least one match.
                      This field allows to perform more complex evaluation  on the resources, looking
                      at all resources together.
                      This can be useful for more sophisticated tasks, such as identifying resources
                      that are related to each other or that have similar properties.
                      The Lua function must return a struct with:
                      - "matching" field: boolean indicating whether cluster is a match;
                      - "message" field: (optional) message.
                    type: string
                  resourceSelectors:
                    description: |-
                      ResourceSelectors identifies what resources to select
                      If no AggregatedClassification is specified, a cluster is
                      a match for Classifier instance, if all ResourceSelectors returns at
                      least one match.
                    items:
                      description: ResourceSelector defines what resources are a match
                      properties:
                        evaluate:
                          description: |-
                            Evaluate contains a function "evaluate" in lua language.
                            The function will be passed one of the object selected based on
                            above criteria.
                            Must return struct with field "matching" representing whether
                            object is a match and an optional "message" field.
                          type: string
                        evaluateCEL:
                          description: |-
                            EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                            Each rule will be evaluated in order against each object selected based on
                            the criteria defined above. Each rule's expression must return a boolean value
                            indicating whether the object is a match.

                            Evaluation stops at the first rule that returns true; subsequent
                            rules will not be evaluated.
                          items:
                            description: CELRule defines a named CEL rule used in
                              EvaluateCEL.
                            properties:
                              name:
                                description: Name is a human-readable identifier for
                                  the rule.
                                type: string
                              rule:
                                description: |-
                                  Rule is the CEL (Common Expression Language) expression to evaluate.
                                  It must return a bool
                                type: string
                            required:
                            - name
                            - rule
                            type: object
                          type: array
                        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
                        labelFilters:
                          description: LabelFilters allows to filter resources based
                            on current labels.
                          items:
                            properties:
                              key:
                                description: Key is the label key
                                type: string
                              operation:
                                description: Operation is the comparison operation
                                enum:
                                - Equal
                                - Different
                                - Has
                                - DoesNotHave
                                type: string
                              value:
                                description: Value is the label value
                                type: string
                            required:
                            - key
                            - operation
                            type: object
                          type: array
                        name:
                          description: Name of the resource deployed in the  Cluster.
                          type: string
                        namespace:
                          description: |-
                            Namespace of the resource deployed in the  Cluster.
                            Empty for resources scoped at cluster level.
                            For namespaced resources, an empty string "" indicates all namespaces.
                          type: string
                        selector:
                          description: |-
                            Selector is a standard Kubernetes label selector. Resources are selected
                            if their labels match the selector. This field uses the standard
                            Kubernetes label matching syntax (e.g., {"environment": "production"}).
                            If both LabelFilters and Selector are specified, the requirements from
                            both are logically ANDed.
                          properties:
                            matchExpressions:
                              description: matchExpressions is a list of label selector
                                requirements. The requirements are ANDed.
                              items:
                                description: |-
                                  A label selector requirement is a selector that contains values, a key, and an operator that
                                  relates the key and values.
                                properties:
                                  key:
                                    description: key is the label key that the selector
                                      applies to.
                                    type: string
                                  operator:
                                    description: |-
                                      operator represents a key's relationship to a set of values.
                                      Valid operators are In, NotIn, Exists and DoesNotExist.
                                    type: string
                                  values:
                                    description: |-
                                      values is an array of string values. If the operator is In or NotIn,
                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                      the values array must be empty. This array is replaced during a strategic
                                      merge patch.
                                    items:
                                      type: string
                                    type: array
                                    x-kubernetes-list-type: atomic
                                required:
                                - key
                                - operator
                                type: object
                              type: array
                              x-kubernetes-list-type: atomic
                            matchLabels:
                              additionalProperties:
                                type: string
                              description: |-
                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                                map is equivalent to an element of matchExpressions, whose key field is "key", the
                                operator is "In", and the values array contains only "value". The requirements are ANDed.
                              type: object
                          type: object
                          x-kubernetes-map-type: atomic
                        version:
                          description: Version of the resource deployed in the Cluster.
                          type: string
                      required:
                      - group
                      - kind
                      - version
                      type: object
                    type: array
                required:
                - resourceSelectors
                type: object
              kubernetesVersionConstraints:
                description: KubernetesVersionConstraints allows to classify based
                  on current kubernetes version
                items:
                  properties:
                    comparison:
                      description: Comparison indicate how to compare cluster kubernetes
                        version with the specified version
                      enum:
                      - Equal
                      - NotEqual
                      - GreaterThan
                      - LessThan
                      - GreaterThanOrEqualTo
                      - LessThanOrEqualTo
                      type: string
                    version:
                      description: Version is the kubernetes version
                      type: string
                  required:
                  - comparison
                  - version
                  type: object
                type: array
            required:
            - classifierLabels
            type: object
          status:
            description: ClassifierStatus defines the observed state of Classifier
            properties:
              clusterInfo:
                description: |-
                  ClusterInfo reference all the cluster-api Cluster where Classifier
                  has been/is being deployed
                items:
                  properties:
                    cluster:
                      description: Cluster references the Cluster
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    failureMessage:
                      description: FailureMessage provides more information about
                        the error.
                      type: string
                    hash:
                      description: |-
                        Hash represents the hash of the Classifier currently deployed
                        in the Cluster
                      format: byte
                      type: string
                    status:
                      description: Status represents the state of the feature in the
                        workload cluster
                      enum:
                      - Provisioning
                      - Provisioned
                      - Failed
                      - Removing
                      - Removed
                      type: string
                  required:
                  - cluster
                  - hash
                  type: object
                type: array
              machingClusterStatuses:
                description: |-
                  MatchingClusterRefs reference all the cluster-api Cluster currently matching
                  Classifier
                items:
                  properties:
                    clusterRef:
                      description: ClusterRef references the matching Cluster
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    managedLabels:
                      description: |-
                        ManagedLabels indicates the labels being managed on
                        the cluster by this Classifier instance
                      items:
                        type: string
                      type: array
                    unManagedLabels:
                      description: |-
                        UnManagedLabel indicates the labels this Classifier instance
                        would like to manage but cannot because different instance is
                        already managing it
                      items:
                        properties:
                          failureMessage:
                            description: |-
                              FailureMessage is a human consumable message explaining the
                              misconfiguration
                            type: string
                          key:
                            description: |-
                              Key represents a label Classifier would like to manage
                              but cannot because currently managed by different instance
                            type: string
                        required:
                        - key
                        type: object
                      type: array
                  required:
                  - clusterRef
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ClassifierFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_classifiers.lib.projectsveltos.io.yaml"
View Source
var ClassifierReportCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: classifierreports.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ClassifierReport
    listKind: ClassifierReportList
    plural: classifierreports
    singular: classifierreport
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ClassifierReport is the Schema for the classifierreports 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:
            properties:
              classifierName:
                description: |-
                  ClassifierName is the name of the Classifier instance this report
                  is for.
                type: string
              clusterName:
                description: |-
                  ClusterName is the name of the Cluster this ClusterReport
                  is for.
                type: string
              clusterNamespace:
                description: |-
                  ClusterNamespace is the namespace of the Cluster this
                  ClusterReport is for.
                type: string
              clusterType:
                description: ClusterType is the type of Cluster
                type: string
              match:
                description: |-
                  Match indicates whether Cluster is currently a match for
                  the Classifier instance this report is for
                type: boolean
            required:
            - classifierName
            - clusterName
            - clusterNamespace
            - clusterType
            - match
            type: object
          status:
            description: ClassifierReportStatus defines the observed state of ClassifierReport
            properties:
              phase:
                description: Phase represents the current phase of report.
                enum:
                - WaitingForDelivery
                - Delivering
                - Processed
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ClassifierReportFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_classifierreports.lib.projectsveltos.io.yaml"
View Source
var ClusterHealthCheckCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: clusterhealthchecks.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ClusterHealthCheck
    listKind: ClusterHealthCheckList
    plural: clusterhealthchecks
    singular: clusterhealthcheck
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ClusterHealthCheck is the Schema for the clusterhealthchecks
          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: ClusterHealthCheckSpec defines the desired state of ClusterHealthCheck
            properties:
              clusterSelector:
                description: Selector identifies clusters to associate to.
                properties:
                  matchExpressions:
                    description: matchExpressions is a list of label selector requirements.
                      The requirements are ANDed.
                    items:
                      description: |-
                        A label selector requirement is a selector that contains values, a key, and an operator that
                        relates the key and values.
                      properties:
                        key:
                          description: key is the label key that the selector applies
                            to.
                          type: string
                        operator:
                          description: |-
                            operator represents a key's relationship to a set of values.
                            Valid operators are In, NotIn, Exists and DoesNotExist.
                          type: string
                        values:
                          description: |-
                            values is an array of string values. If the operator is In or NotIn,
                            the values array must be non-empty. If the operator is Exists or DoesNotExist,
                            the values array must be empty. This array is replaced during a strategic
                            merge patch.
                          items:
                            type: string
                          type: array
                          x-kubernetes-list-type: atomic
                      required:
                      - key
                      - operator
                      type: object
                    type: array
                    x-kubernetes-list-type: atomic
                  matchLabels:
                    additionalProperties:
                      type: string
                    description: |-
                      matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                      map is equivalent to an element of matchExpressions, whose key field is "key", the
                      operator is "In", and the values array contains only "value". The requirements are ANDed.
                    type: object
                type: object
                x-kubernetes-map-type: atomic
              livenessChecks:
                description: |-
                  LivenessChecks is a list of source of liveness checks to evaluate.
                  Anytime one of those changes, notifications will be sent
                items:
                  properties:
                    livenessSourceRef:
                      description: |-
                        LivenessSourceRef is a reference to a liveness-specific resource that holds
                        the details for the liveness check.
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    name:
                      description: |-
                        Name of the liveness check.
                        Must be a DNS_LABEL and unique within the ClusterHealthCheck.
                      type: string
                    type:
                      description: Type specifies the type of liveness
                      enum:
                      - Addons
                      - HealthCheck
                      type: string
                  required:
                  - name
                  - type
                  type: object
                type: array
              notifications:
                description: Notification is a list of notification mechanisms.
                items:
                  properties:
                    name:
                      description: |-
                        Name of the notification check.
                        Must be a DNS_LABEL and unique within the ClusterHealthCheck.
                      type: string
                    notificationRef:
                      description: |-
                        NotificationRef is a reference to a notification-specific resource that holds
                        the details for the notification.
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    type:
                      description: NotificationType specifies the type of notification
                      enum:
                      - KubernetesEvent
                      - Slack
                      - Webex
                      - Discord
                      - Teams
                      - Telegram
                      - SMTP
                      type: string
                  required:
                  - name
                  - type
                  type: object
                type: array
            required:
            - livenessChecks
            - notifications
            type: object
          status:
            properties:
              clusterCondition:
                description: |-
                  ClusterConditions contains conditions and notification status for all clusters
                  matching ClusterHealthCheck instance
                items:
                  properties:
                    clusterInfo:
                      properties:
                        cluster:
                          description: Cluster references the Cluster
                          properties:
                            apiVersion:
                              description: API version of the referent.
                              type: string
                            fieldPath:
                              description: |-
                                If referring to a piece of an object instead of an entire object, this string
                                should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                                For example, if the object reference is to a container within a pod, this would take on a value like:
                                "spec.containers{name}" (where "name" refers to the name of the container that triggered
                                the event) or if no container name is specified "spec.containers[2]" (container with
                                index 2 in this pod). This syntax is chosen only to have some well-defined way of
                                referencing a part of an object.
                              type: string
                            kind:
                              description: |-
                                Kind of the referent.
                                More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                              type: string
                            name:
                              description: |-
                                Name of the referent.
                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                              type: string
                            namespace:
                              description: |-
                                Namespace of the referent.
                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                              type: string
                            resourceVersion:
                              description: |-
                                Specific resourceVersion to which this reference is made, if any.
                                More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                              type: string
                            uid:
                              description: |-
                                UID of the referent.
                                More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                              type: string
                          type: object
                          x-kubernetes-map-type: atomic
                        failureMessage:
                          description: FailureMessage provides more information about
                            the error.
                          type: string
                        hash:
                          description: |-
                            Hash represents the hash of the Classifier currently deployed
                            in the Cluster
                          format: byte
                          type: string
                        status:
                          description: Status represents the state of the feature
                            in the workload cluster
                          enum:
                          - Provisioning
                          - Provisioned
                          - Failed
                          - Removing
                          - Removed
                          type: string
                      required:
                      - cluster
                      - hash
                      type: object
                    conditions:
                      description: Cluster conditions.
                      items:
                        description: Condition defines an observation of a Cluster
                          API resource operational state.
                        properties:
                          lastTransitionTime:
                            description: |-
                              Last time the condition transitioned from one status to another.
                              This should be when the underlying condition changed. If that is not known, then using the time when
                              the API field changed is acceptable.
                            format: date-time
                            type: string
                          message:
                            description: |-
                              A human readable message indicating details about the transition.
                              This field may be empty.
                            type: string
                          name:
                            description: Condition name
                            type: string
                          reason:
                            description: |-
                              The reason for the condition's last transition in CamelCase.
                              The specific API may choose whether or not this field is considered a guaranteed API.
                              This field may not be empty.
                            type: string
                          severity:
                            description: |-
                              Severity provides an explicit classification of Reason code, so the users or machines can immediately
                              understand the current situation and act accordingly.
                              The Severity field MUST be set only when Status=False.
                            type: string
                          status:
                            description: Status of the condition, one of True, False,
                              Unknown.
                            type: string
                          type:
                            description: Type of condition in CamelCase or in foo.example.com/CamelCase.
                            type: string
                        required:
                        - lastTransitionTime
                        - name
                        - status
                        - type
                        type: object
                      type: array
                    notificationSummaries:
                      description: NotificationSummaries contains status information
                        on notifications
                      items:
                        properties:
                          failureMessage:
                            description: |-
                              FailureMessage is a human consumable message explaining the
                              misconfiguration
                            type: string
                          name:
                            description: Name of the notification check.
                            type: string
                          status:
                            description: NotificationStatus specifies the notification
                              status
                            enum:
                            - Delivered
                            - FailedToDeliver
                            type: string
                        required:
                        - name
                        - status
                        type: object
                      type: array
                  required:
                  - clusterInfo
                  type: object
                type: array
              matchingClusters:
                description: |-
                  MatchingClusterRefs reference all the clusters currently matching
                  ClusterHealthCheck ClusterSelector
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ClusterHealthCheckFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_clusterhealthchecks.lib.projectsveltos.io.yaml"
View Source
var ClusterSetCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: clustersets.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ClusterSet
    listKind: ClusterSetList
    plural: clustersets
    singular: clusterset
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ClusterSet is the Schema for the clustersets 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:
            properties:
              clusterRefs:
                description: ClusterRefs identifies clusters to associate to.
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
              clusterSelector:
                description: ClusterSelector identifies clusters to associate to
                properties:
                  matchExpressions:
                    description: matchExpressions is a list of label selector requirements.
                      The requirements are ANDed.
                    items:
                      description: |-
                        A label selector requirement is a selector that contains values, a key, and an operator that
                        relates the key and values.
                      properties:
                        key:
                          description: key is the label key that the selector applies
                            to.
                          type: string
                        operator:
                          description: |-
                            operator represents a key's relationship to a set of values.
                            Valid operators are In, NotIn, Exists and DoesNotExist.
                          type: string
                        values:
                          description: |-
                            values is an array of string values. If the operator is In or NotIn,
                            the values array must be non-empty. If the operator is Exists or DoesNotExist,
                            the values array must be empty. This array is replaced during a strategic
                            merge patch.
                          items:
                            type: string
                          type: array
                          x-kubernetes-list-type: atomic
                      required:
                      - key
                      - operator
                      type: object
                    type: array
                    x-kubernetes-list-type: atomic
                  matchLabels:
                    additionalProperties:
                      type: string
                    description: |-
                      matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                      map is equivalent to an element of matchExpressions, whose key field is "key", the
                      operator is "In", and the values array contains only "value". The requirements are ANDed.
                    type: object
                type: object
                x-kubernetes-map-type: atomic
              maxReplicas:
                description: |-
                  MaxReplicas specifies the maximum number of clusters to be selected
                  from the pool matching the clusterSelector.
                type: integer
            type: object
          status:
            description: Status defines the observed state of ClusterSet/Set
            properties:
              matchingClusterRefs:
                description: |-
                  MatchingClusterRefs reference all the clusters currently matching
                  ClusterSet/Set ClusterSelector
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
              selectedClusterRefs:
                description: |-
                  SelectedClusters reference all the cluster currently selected among
                  all the ones matching
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ClusterSetFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_clustersets.lib.projectsveltos.io.yaml"
View Source
var ConfigurationBundleCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: configurationbundles.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ConfigurationBundle
    listKind: ConfigurationBundleList
    plural: configurationbundles
    singular: configurationbundle
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ConfigurationBundle is the Schema for the configurationbundle
          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:
            properties:
              helmChartVersion:
                description: |-
                  HelmChartVersion indicates the chart version of the Helm release
                  these resources belong to, if any
                type: string
              helmIcon:
                description: |-
                  HelmIcon indicates the URL of the icon of the Helm release
                  these resources belong to, if any
                type: string
              helmReleaseName:
                description: |-
                  HelmReleaseName indicates the name of the Helm release
                  these resources belong to, if any
                type: string
              helmReleaseNamespace:
                description: |-
                  HelmReleaseNamespace indicates the namespace of the Helm release
                  these resources belong to, if any
                type: string
              helmReleaseUninstall:
                default: false
                description: |-
                  HelmReleaseUninstall, when true, indicates that these resources are
                  part of a Helm release uninstallation process.
                  This can be used to trigger specific cleanup or post-uninstall hooks.
                type: boolean
              helmRepoURL:
                description: |-
                  HelmRepoURL indicates the repo URL of the Helm release
                  these resources belong to, if any
                type: string
              isLastHelmReleaseBundle:
                default: false
                description: |-
                  IsLastHelmReleaseBundle, when true, indicates that this ConfigurationBundle
                  is the final bundle in the sequence for the associated Helm release.
                  This can be used to trigger finalization steps, such as marking the
                  release as fully deployed or completely uninstalled in external tracking systems.
                type: boolean
              notTracked:
                description: |-
                  NotTracked, when true, signifies that the resources managed by the
                  ConfigurationBundles should not be tracked for conflicts
                  with other configurations and will not be automatically removed when the
                  ConfigurationGroup is deleted. This is intended for resources like
                  Sveltos CRDs or the agents Sveltos deploys in the managed clusters.
                type: boolean
              referenceTier:
                description: |-
                  ReferenceTier indicates the tier of the object (ConfigMap, Secret, etc)
                  referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
                format: int32
                type: integer
              referencedObjectKind:
                description: |-
                  ReferencedObjectKind is the Kind of the object (ConfigMap, Secret, etc)
                  referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
                type: string
              referencedObjectName:
                description: |-
                  ReferencedObjectName is the Name of the object (ConfigMap, Secret, etc)
                  referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
                type: string
              referencedObjectNamespace:
                description: |-
                  ReferencedObjectNamespace is the Namespace of the object (ConfigMap, Secret, etc)
                  referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
                type: string
              resources:
                description: |-
                  Resources contains all resources that need to be deployed.
                  Content is either YAML or JSON
                items:
                  type: string
                type: array
                x-kubernetes-list-type: atomic
              timeout:
                description: time to wait for Kubernetes operation (like Jobs for
                  hooks)
                type: string
            type: object
          status:
            properties:
              hash:
                description: |-
                  Hash represents of a unique value for the content stored in
                  the ConfigurationBundle
                format: byte
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ConfigurationBundleFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationbundles.lib.projectsveltos.io.yaml"
View Source
var ConfigurationGroupCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: configurationgroups.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ConfigurationGroup
    listKind: ConfigurationGroupList
    plural: configurationgroups
    singular: configurationgroup
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ConfigurationGroup is the Schema for the configurationgroup 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:
            properties:
              action:
                default: Deploy
                enum:
                - Deploy
                - Remove
                type: string
              configurationItem:
                description: |-
                  ConfigurationItems represents a list of configurations to deploy
                  The order of items in this list determines deployment sequence
                items:
                  properties:
                    contentRef:
                      description: |-
                        ContentRef references the Kubernetes resource containing
                        the content to deploy.
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    hash:
                      description: |-
                        Hash represents of a unique value for the content stored in
                        the referenced contentRef
                      format: byte
                      type: string
                  type: object
                type: array
                x-kubernetes-list-type: atomic
              continueOnConflict:
                default: false
                description: |-
                  By default (when ContinueOnConflict is unset or set to false), Sveltos stops deployment after
                  encountering the first conflict (e.g., another ClusterProfile already deployed the resource).
                  If set to true, Sveltos will attempt to deploy remaining resources in the ClusterProfile even
                  if conflicts are detected for previous resources.
                type: boolean
              continueOnError:
                default: false
                description: |-
                  By default (when ContinueOnError is unset or set to false), Sveltos stops deployment after
                  encountering the first error.
                  If set to true, Sveltos will attempt to deploy remaining resources in the ClusterProfile even
                  if errors are detected for previous resources.
                type: boolean
              deployedGroupVersionKind:
                description: |-
                  DeployedGroupVersionKind contains all GroupVersionKinds deployed in either
                  the workload cluster or the management cluster because of this feature.
                  Each element has format kind.version.group
                items:
                  type: string
                type: array
              driftDetection:
                default: false
                description: |-
                  DriftDetection indicates Sveltos must monitors deployed for resources configuration
                  drift. If drift is detected, a reconciliation is triggered to ensure the managed
                  cluster's configuration aligns with the expected configuration defined in the management
                  cluster
                type: boolean
              driftExclusions:
                description: |-
                  DriftExclusions is a list of configuration drift exclusions to be applied when syncMode is
                  set to ContinuousWithDriftDetection. Each exclusion specifies JSON6902 paths to ignore
                  when evaluating drift, optionally targeting specific resources and features.
                items:
                  properties:
                    paths:
                      description: Paths is a slice of JSON6902 paths to exclude from
                        configuration drift evaluation.
                      items:
                        type: string
                      type: array
                    target:
                      description: Target points to the resources that the paths refers
                        to.
                      properties:
                        annotationSelector:
                          description: |-
                            AnnotationSelector is a string that follows the label selection expression
                            https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
                            It matches with the resource annotations.
                          type: string
                        group:
                          description: |-
                            Group is the API group to select resources from.
                            Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources.
                            https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
                          type: string
                        kind:
                          description: |-
                            Kind of the API Group to select resources from.
                            Together with Group and Version it is capable of unambiguously
                            identifying and/or selecting resources.
                            https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
                          type: string
                        labelSelector:
                          description: |-
                            LabelSelector is a string that follows the label selection expression
                            https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
                            It matches with the resource labels.
                          type: string
                        name:
                          description: Name to match resources with.
                          type: string
                        namespace:
                          description: Namespace to select resources from.
                          type: string
                        version:
                          description: |-
                            Version of the API Group to select resources from.
                            Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources.
                            https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
                          type: string
                      type: object
                  required:
                  - paths
                  type: object
                type: array
                x-kubernetes-list-type: atomic
              dryRun:
                default: false
                description: |-
                  DryRun means no change will be propagated to matching cluster. A report
                  instead will be generated summarizing what would happen in any matching cluster
                  because of the changes made by this ConfigurationGroup
                type: boolean
              leavePolicies:
                default: false
                description: Indicates whether deployed resources must be left on
                  the managed cluster.
                type: boolean
              maxConsecutiveFailures:
                description: |-
                  The maximum number of consecutive deployment failures that Sveltos will permit.
                  After this many consecutive failures, the deployment will be considered failed, and Sveltos will stop retrying.
                  This setting applies only to feature deployments, not resource removal.
                  This field is optional. If not set, Sveltos default behavior is to keep retrying.
                type: integer
              reloader:
                default: false
                description: |-
                  Reloader indicates whether Deployment/StatefulSet/DaemonSet instances deployed
                  by Sveltos and part of this ConfigurationGroup need to be restarted via rolling upgrade
                  when a ConfigMap/Secret instance mounted as volume is modified.
                  When set to true, when any mounted ConfigMap/Secret is modified, Sveltos automatically
                  starts a rolling upgrade for Deployment/StatefulSet/DaemonSet instances mounting it.
                type: boolean
              requestorHash:
                description: |-
                  RequestorHash represents a hash of the state of the requestor that created this ConfigurationGroup.
                  This field is optional and can be used to determine when the creating resource's state has
                  changed and the ConfigurationGroup needs to be updated accordingly.
                format: byte
                type: string
              serviceAccountName:
                description: |-
                  ServiceAccountName is the name of the ServiceAccount to impersonate when applying
                  the configuration. If empty, the default ServiceAccount for the Sveltos-applier
                  will be used.
                  The ServiceAccount must exist in the managed cluster.
                type: string
              serviceAccountNamespace:
                description: |-
                  ServiceAccountNamespace is the namespace of the ServiceAccount to impersonate when applying
                  the configuration. If empty, the default namespace for the Sveltos-applier
                  will be used (typically the same namespace where the Sveltos-applier is deployed).
                  The ServiceAccount must exist in the managed cluster.
                type: string
              sourceRef:
                description: |-
                  SourceRef is the user facing Sveltos resource that caused this ConfigurationGroup to be
                  created. For instance, when a ClusterSummary creates a ConfigurationGroup, the user
                  facing resource is either a ClusterProfile or a Profile.
                properties:
                  apiVersion:
                    description: API version of the referent.
                    type: string
                  fieldPath:
                    description: |-
                      If referring to a piece of an object instead of an entire object, this string
                      should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                      For example, if the object reference is to a container within a pod, this would take on a value like:
                      "spec.containers{name}" (where "name" refers to the name of the container that triggered
                      the event) or if no container name is specified "spec.containers[2]" (container with
                      index 2 in this pod). This syntax is chosen only to have some well-defined way of
                      referencing a part of an object.
                    type: string
                  kind:
                    description: |-
                      Kind of the referent.
                      More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                    type: string
                  name:
                    description: |-
                      Name of the referent.
                      More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                    type: string
                  namespace:
                    description: |-
                      Namespace of the referent.
                      More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                    type: string
                  resourceVersion:
                    description: |-
                      Specific resourceVersion to which this reference is made, if any.
                      More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                    type: string
                  uid:
                    description: |-
                      UID of the referent.
                      More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                    type: string
                type: object
                x-kubernetes-map-type: atomic
              sourceStatus:
                default: Active
                description: |-
                  SourceStatus indicates the lifecycle status of the source resource (e.g., ClusterSummary)
                  that created this ConfigurationGroup. Valid values are "Active" and "Deleted".
                  This field helps determine if the ConfigurationGroup was created by a source that is
                  no longer present or in a different state.
                enum:
                - Active
                - Deleted
                type: string
              tier:
                default: 100
                description: |-
                  Tier controls the order of deployment for ClusterProfile or Profile resources targeting
                  the same cluster resources.
                  Imagine two configurations (ClusterProfiles or Profiles) trying to deploy the same resource (a Kubernetes
                  resource or an helm chart). By default, the first one to reach the cluster "wins" and deploys it.
                  Tier allows you to override this. When conflicts arise, the ClusterProfile or Profile with the **lowest**
                  Tier value takes priority and deploys the resource.
                  Higher Tier values represent lower priority. The default Tier value is 100.
                  Using Tiers provides finer control over resource deployment within your cluster, particularly useful
                  when multiple configurations manage the same resources.
                format: int32
                minimum: 1
                type: integer
              updatePhase:
                default: Ready
                description: |-
                  UpdatePhase indicates the current phase of configuration updates. When set to "Preparing",
                  it signals that a new version of this ConfigurationGroup is being prepared, forcing
                  metadata.generation to advance. This allows detection of differences between
                  status.observedGeneration and metadata.generation when agents process an older version,
                  enabling tracking of update propagation across managed clusters.
                enum:
                - Ready
                - Preparing
                type: string
              validateHealths:
                description: |-
                  ValidateHealths is a slice of Lua functions to run against
                  the managed cluster to validate the state of those add-ons/applications
                  is healthy
                items:
                  properties:
                    evaluateCEL:
                      description: |-
                        EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                        Each rule will be evaluated in order against each object selected based on
                        the criteria defined above. Each rule's expression must return a boolean value
                        indicating whether the object is a match.

                        Evaluation stops at the first rule that returns true; subsequent
                        rules will not be evaluated.
                      items:
                        description: CELRule defines a named CEL rule used in EvaluateCEL.
                        properties:
                          name:
                            description: Name is a human-readable identifier for the
                              rule.
                            type: string
                          rule:
                            description: |-
                              Rule is the CEL (Common Expression Language) expression to evaluate.
                              It must return a bool
                            type: string
                        required:
                        - name
                        - rule
                        type: object
                      type: array
                    featureID:
                      description: |-
                        FeatureID is an indentifier of the feature (Helm/Kustomize/Resources)
                        This field indicates when to run this check.
                        For instance:
                        - if set to Helm this check will be run after all helm
                        charts specified in the ClusterProfile are deployed.
                        - if set to Resources this check will be run after the content
                        of all the ConfigMaps/Secrets referenced by ClusterProfile in the
                        PolicyRef sections is deployed
                      enum:
                      - Resources
                      - Helm
                      - Kustomize
                      type: string
                    group:
                      description: Group of the resource to fetch in the managed Cluster.
                      type: string
                    kind:
                      description: Kind of the resource to fetch in the managed Cluster.
                      minLength: 1
                      type: string
                    labelFilters:
                      description: LabelFilters allows to filter resources based on
                        current labels.
                      items:
                        properties:
                          key:
                            description: Key is the label key
                            type: string
                          operation:
                            description: Operation is the comparison operation
                            enum:
                            - Equal
                            - Different
                            - Has
                            - DoesNotHave
                            type: string
                          value:
                            description: Value is the label value
                            type: string
                        required:
                        - key
                        - operation
                        type: object
                      type: array
                    name:
                      description: Name is the name of this check
                      type: string
                    namespace:
                      description: |-
                        Namespace of the resource to fetch in the managed Cluster.
                        Empty for resources scoped at cluster level.
                      type: string
                    script:
                      description: |-
                        Script is a text containing a lua script.
                        Must return struct with field "health"
                        representing whether object is a match (true or false)
                      type: string
                    version:
                      description: Version of the resource to fetch in the managed
                        Cluster.
                      type: string
                  required:
                  - featureID
                  - group
                  - kind
                  - name
                  - version
                  type: object
                type: array
                x-kubernetes-list-type: atomic
            type: object
          status:
            properties:
              deployedGroupVersionKind:
                description: |-
                  DeployedGroupVersionKind contains all GroupVersionKinds deployed because of
                  the ConfigurationGroup.
                  Each element has format kind.version.group
                items:
                  type: string
                type: array
              failureMessage:
                description: FailureMessage provides more information about the error.
                type: string
              lastAppliedTime:
                description: LastAppliedTime is the time feature was last reconciled
                format: date-time
                type: string
              observedGeneration:
                description: |-
                  ObservedGeneration reflects the generation of the most recently observed ConfigurationGroup.
                  When this value matches the ConfigurationGroup's metadata.generation, it indicates that the
                  status reflects the latest desired specification. If observedGeneration is less than generation,
                  it means the controller has not yet processed the latest changes to the specification.
                format: int64
                type: integer
              observedRequestorHash:
                description: |-
                  ObservedRequestorHash reflects the requestor hash that was last processed by the controller.
                  When this value matches the spec.requestorHash, it indicates that the controller has
                  processed the latest state of the creating resource. If observedRequestorHash differs
                  from spec.requestorHash, it means the requestor has changed and reconciliation is needed.
                format: byte
                type: string
              status:
                description: Status represents the state of the feature in the workload
                  cluster
                enum:
                - Provisioning
                - Provisioned
                - Failed
                - FailedNonRetriable
                - Removing
                - Removed
                - AgentRemoving
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ConfigurationGroupFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationgroups.lib.projectsveltos.io.yaml"
View Source
var DebuggingConfigurationCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: debuggingconfigurations.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: DebuggingConfiguration
    listKind: DebuggingConfigurationList
    plural: debuggingconfigurations
    singular: debuggingconfiguration
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: DebuggingConfiguration is the Schema for the debuggingconfigurations
          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: DebuggingConfigurationSpec defines the desired state of DebuggingConfiguration
            properties:
              configuration:
                description: Configuration contains debugging configuration as granular
                  as per component.
                items:
                  description: ComponentConfiguration is the debugging configuration
                    to be applied to a Sveltos component.
                  properties:
                    component:
                      description: Component indicates which Sveltos component the
                        configuration applies to.
                      enum:
                      - AddonManager
                      - Classifier
                      - ClassifierAgent
                      - SveltosClusterManager
                      - DriftDetectionManager
                      - AccessManager
                      - HealthCheckManager
                      - EventManager
                      - ShardController
                      - UIBackend
                      - SveltosAgent
                      - ConversionWebhook
                      - Techsupport
                      - MCPServer
                      type: string
                    logLevel:
                      description: 'LogLevel is the log severity above which logs
                        are sent to the stdout. [Default: Info]'
                      enum:
                      - LogLevelNotSet
                      - LogLevelInfo
                      - LogLevelDebug
                      - LogLevelVerbose
                      type: string
                  required:
                  - component
                  type: object
                type: array
                x-kubernetes-list-type: atomic
            type: object
        type: object
    served: true
    storage: true
`)
View Source
var DebuggingConfigurationFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_debuggingconfigurations.lib.projectsveltos.io.yaml"
View Source
var EventReportCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: eventreports.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: EventReport
    listKind: EventReportList
    plural: eventreports
    singular: eventreport
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: EventReport is the Schema for the EventReport 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:
            properties:
              cloudEvents:
                description: CloudEvents contains a list of CloudEvents matching an
                  EventSource
                items:
                  format: byte
                  type: string
                type: array
              clusterName:
                description: |-
                  ClusterName is the name of the Cluster this EventReport
                  is for.
                type: string
              clusterNamespace:
                description: |-
                  ClusterNamespace is the namespace of the Cluster this
                  EventReport is for.
                type: string
              clusterType:
                description: |-
                  ClusterType is the type of Cluster this EventReport
                  is for.
                type: string
              eventSourceName:
                description: |-
                  EventSourceName is the name of the EventSource instance this report
                  is for.
                type: string
              matchingResources:
                description: MatchingResources contains a list of resources matching
                  an EventSource
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
                x-kubernetes-list-type: atomic
              resources:
                description: |-
                  If EventSource Spec.CollectResources is set to true, all matching resources
                  will be collected and contained in the Resources field.
                format: byte
                type: string
            required:
            - clusterName
            - clusterNamespace
            - clusterType
            - eventSourceName
            type: object
          status:
            description: EventReportStatus defines the observed state of EventReport
            properties:
              phase:
                description: Phase represents the current phase of report.
                enum:
                - WaitingForDelivery
                - Delivering
                - Processed
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var EventReportFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventreports.lib.projectsveltos.io.yaml"
View Source
var EventSourceCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: eventsources.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: EventSource
    listKind: EventSourceList
    plural: eventsources
    singular: eventsource
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: EventSource is the Schema for the EventSource 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: EventSourceSpec defines the desired state of EventSource
            properties:
              aggregatedSelection:
                description: |-
                  This field is optional and can be used to specify a Lua function
                  that will be used to further select a subset of the resources that
                  have already been selected using the ResourceSelector field.
                  The function will receive the array of resources selected by ResourceSelectors.
                  If this field is not specified, all resources selected by the ResourceSelector
                  field will be considered.
                  This field allows to perform more complex filtering or selection operations
                  on the resources, looking at all resources together.
                  This can be useful for more sophisticated tasks, such as identifying resources
                  that are related to each other or that have similar properties.
                  The Lua function must return a struct with:
                  - "resources" field: slice of matching resorces;
                  - "message" field: (optional) message.
                type: string
              collectResources:
                default: false
                description: |-
                  CollectResources indicates whether matching resources need
                  to be collected and added to EventReport.
                type: boolean
              messagingMatchCriteria:
                description: |-
                  MessagingMatchCriteria defines a list of MessagingMatchCriteria. Each criteria specifies
                  how to match CloudEvents received on specific NATS/JetStream subjects.
                items:
                  description: |-
                    MessagingMatchCriteria defines criteria for matching CloudEvents received via NATS.
                    Sveltos listens to NATS/JetStream subjects, and the messages delivered on those
                    subjects are expected to be CloudEvents.
                  properties:
                    cloudEventSource:
                      description: |-
                        CloudEventSource filters CloudEvents based on their "source" attribute.
                        If specified, only CloudEvents with a matching source will be considered.
                        Regular expressions are supported.
                      type: string
                    cloudEventSubject:
                      description: |-
                        CloudEventSubject filters CloudEvents based on their "subject" attribute.
                        If specified, only CloudEvents with a matching subject will be considered.
                        Regular expressions are supported.
                      type: string
                    cloudEventType:
                      description: |-
                        CloudEventType filters CloudEvents based on their "type" attribute.
                        If specified, only CloudEvents with a matching type will be considered.
                        Regular expressions are supported.
                      type: string
                    subject:
                      description: |-
                        Subject is an optional NATS/JetStream subject filter. If specified, this criteria will
                        only consider CloudEvents received on this specific subject. Leaving it empty
                        means the criteria will match CloudEvents from any of the subjects Sveltos
                        is subscribed to. Regular expressions are supported.
                      type: string
                  type: object
                type: array
              resourceSelectors:
                description: ResourceSelectors identifies what Kubernetes resources
                  to select
                items:
                  description: ResourceSelector defines what resources are a match
                  properties:
                    evaluate:
                      description: |-
                        Evaluate contains a function "evaluate" in lua language.
                        The function will be passed one of the object selected based on
                        above criteria.
                        Must return struct with field "matching" representing whether
                        object is a match and an optional "message" field.
                      type: string
                    evaluateCEL:
                      description: |-
                        EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                        Each rule will be evaluated in order against each object selected based on
                        the criteria defined above. Each rule's expression must return a boolean value
                        indicating whether the object is a match.

                        Evaluation stops at the first rule that returns true; subsequent
                        rules will not be evaluated.
                      items:
                        description: CELRule defines a named CEL rule used in EvaluateCEL.
                        properties:
                          name:
                            description: Name is a human-readable identifier for the
                              rule.
                            type: string
                          rule:
                            description: |-
                              Rule is the CEL (Common Expression Language) expression to evaluate.
                              It must return a bool
                            type: string
                        required:
                        - name
                        - rule
                        type: object
                      type: array
                    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
                    labelFilters:
                      description: LabelFilters allows to filter resources based on
                        current labels.
                      items:
                        properties:
                          key:
                            description: Key is the label key
                            type: string
                          operation:
                            description: Operation is the comparison operation
                            enum:
                            - Equal
                            - Different
                            - Has
                            - DoesNotHave
                            type: string
                          value:
                            description: Value is the label value
                            type: string
                        required:
                        - key
                        - operation
                        type: object
                      type: array
                    name:
                      description: Name of the resource deployed in the  Cluster.
                      type: string
                    namespace:
                      description: |-
                        Namespace of the resource deployed in the  Cluster.
                        Empty for resources scoped at cluster level.
                        For namespaced resources, an empty string "" indicates all namespaces.
                      type: string
                    selector:
                      description: |-
                        Selector is a standard Kubernetes label selector. Resources are selected
                        if their labels match the selector. This field uses the standard
                        Kubernetes label matching syntax (e.g., {"environment": "production"}).
                        If both LabelFilters and Selector are specified, the requirements from
                        both are logically ANDed.
                      properties:
                        matchExpressions:
                          description: matchExpressions is a list of label selector
                            requirements. The requirements are ANDed.
                          items:
                            description: |-
                              A label selector requirement is a selector that contains values, a key, and an operator that
                              relates the key and values.
                            properties:
                              key:
                                description: key is the label key that the selector
                                  applies to.
                                type: string
                              operator:
                                description: |-
                                  operator represents a key's relationship to a set of values.
                                  Valid operators are In, NotIn, Exists and DoesNotExist.
                                type: string
                              values:
                                description: |-
                                  values is an array of string values. If the operator is In or NotIn,
                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                  the values array must be empty. This array is replaced during a strategic
                                  merge patch.
                                items:
                                  type: string
                                type: array
                                x-kubernetes-list-type: atomic
                            required:
                            - key
                            - operator
                            type: object
                          type: array
                          x-kubernetes-list-type: atomic
                        matchLabels:
                          additionalProperties:
                            type: string
                          description: |-
                            matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                            map is equivalent to an element of matchExpressions, whose key field is "key", the
                            operator is "In", and the values array contains only "value". The requirements are ANDed.
                          type: object
                      type: object
                      x-kubernetes-map-type: atomic
                    version:
                      description: Version of the resource deployed in the Cluster.
                      type: string
                  required:
                  - group
                  - kind
                  - version
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
`)
View Source
var EventSourceFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventsources.lib.projectsveltos.io.yaml"
View Source
var HealthCheckCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: healthchecks.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: HealthCheck
    listKind: HealthCheckList
    plural: healthchecks
    singular: healthcheck
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: HealthCheck is the Schema for the HealthCheck 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: HealthCheckSpec defines the desired state of HealthCheck
            properties:
              collectResources:
                default: false
                description: |-
                  CollectResources indicates whether matching resources need
                  to be collected and added to HealthReport.
                type: boolean
              evaluateHealth:
                description: |-
                  The EvaluateHealth field specifies a Lua function responsible for evaluating the
                  health of the resources selected by resourceSelectors.
                  This function can assess the health of each resource independently or consider inter-resource relationships.
                  The function must be named *evaluate* and can access all objects identified by resourceSelectors using
                  the *resources* variable. It should return an array of structured instances, each containing the following fields:
                  - resource: The resource being evaluated
                  - healthStatus: The health status of the resource, which can be one of "Healthy", "Progressing", "Degraded", or "Suspended"
                  - message: An optional message providing additional information about the health status
                  - reEvaluate: If set to true, this healthCheck instances will be re-evaluated in 10 seconds
                minLength: 1
                type: string
              resourceSelectors:
                description: ResourceSelectors identifies what resources to select
                  to evaluate health
                items:
                  description: ResourceSelector defines what resources are a match
                  properties:
                    evaluate:
                      description: |-
                        Evaluate contains a function "evaluate" in lua language.
                        The function will be passed one of the object selected based on
                        above criteria.
                        Must return struct with field "matching" representing whether
                        object is a match and an optional "message" field.
                      type: string
                    evaluateCEL:
                      description: |-
                        EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                        Each rule will be evaluated in order against each object selected based on
                        the criteria defined above. Each rule's expression must return a boolean value
                        indicating whether the object is a match.

                        Evaluation stops at the first rule that returns true; subsequent
                        rules will not be evaluated.
                      items:
                        description: CELRule defines a named CEL rule used in EvaluateCEL.
                        properties:
                          name:
                            description: Name is a human-readable identifier for the
                              rule.
                            type: string
                          rule:
                            description: |-
                              Rule is the CEL (Common Expression Language) expression to evaluate.
                              It must return a bool
                            type: string
                        required:
                        - name
                        - rule
                        type: object
                      type: array
                    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
                    labelFilters:
                      description: LabelFilters allows to filter resources based on
                        current labels.
                      items:
                        properties:
                          key:
                            description: Key is the label key
                            type: string
                          operation:
                            description: Operation is the comparison operation
                            enum:
                            - Equal
                            - Different
                            - Has
                            - DoesNotHave
                            type: string
                          value:
                            description: Value is the label value
                            type: string
                        required:
                        - key
                        - operation
                        type: object
                      type: array
                    name:
                      description: Name of the resource deployed in the  Cluster.
                      type: string
                    namespace:
                      description: |-
                        Namespace of the resource deployed in the  Cluster.
                        Empty for resources scoped at cluster level.
                        For namespaced resources, an empty string "" indicates all namespaces.
                      type: string
                    selector:
                      description: |-
                        Selector is a standard Kubernetes label selector. Resources are selected
                        if their labels match the selector. This field uses the standard
                        Kubernetes label matching syntax (e.g., {"environment": "production"}).
                        If both LabelFilters and Selector are specified, the requirements from
                        both are logically ANDed.
                      properties:
                        matchExpressions:
                          description: matchExpressions is a list of label selector
                            requirements. The requirements are ANDed.
                          items:
                            description: |-
                              A label selector requirement is a selector that contains values, a key, and an operator that
                              relates the key and values.
                            properties:
                              key:
                                description: key is the label key that the selector
                                  applies to.
                                type: string
                              operator:
                                description: |-
                                  operator represents a key's relationship to a set of values.
                                  Valid operators are In, NotIn, Exists and DoesNotExist.
                                type: string
                              values:
                                description: |-
                                  values is an array of string values. If the operator is In or NotIn,
                                  the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                  the values array must be empty. This array is replaced during a strategic
                                  merge patch.
                                items:
                                  type: string
                                type: array
                                x-kubernetes-list-type: atomic
                            required:
                            - key
                            - operator
                            type: object
                          type: array
                          x-kubernetes-list-type: atomic
                        matchLabels:
                          additionalProperties:
                            type: string
                          description: |-
                            matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                            map is equivalent to an element of matchExpressions, whose key field is "key", the
                            operator is "In", and the values array contains only "value". The requirements are ANDed.
                          type: object
                      type: object
                      x-kubernetes-map-type: atomic
                    version:
                      description: Version of the resource deployed in the Cluster.
                      type: string
                  required:
                  - group
                  - kind
                  - version
                  type: object
                type: array
            required:
            - evaluateHealth
            - resourceSelectors
            type: object
        type: object
    served: true
    storage: true
`)
View Source
var HealthCheckFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_healthchecks.lib.projectsveltos.io.yaml"
View Source
var HealthCheckReportCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: healthcheckreports.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: HealthCheckReport
    listKind: HealthCheckReportList
    plural: healthcheckreports
    singular: healthcheckreport
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: HealthCheckReport is the Schema for the HealthCheckReport 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:
            properties:
              clusterName:
                description: |-
                  ClusterName is the name of the Cluster this HealthCheckReport
                  is for.
                type: string
              clusterNamespace:
                description: |-
                  ClusterNamespace is the namespace of the Cluster this
                  HealthCheckReport is for.
                type: string
              clusterType:
                description: |-
                  ClusterType is the type of Cluster this HealthCheckReport
                  is for.
                type: string
              healthCheckName:
                description: |-
                  HealthName is the name of the HealthCheck instance this report
                  is for.
                type: string
              resourceStatuses:
                description: ResourceStatuses contains a list of resources with their
                  status
                items:
                  properties:
                    healthStatus:
                      description: HealthStatus is the health status of the object
                      enum:
                      - Healthy
                      - Progressing
                      - Degraded
                      - Suspended
                      type: string
                    message:
                      description: Message is an extra message for human consumption
                      type: string
                    objectRef:
                      description: ObjectRef for which status is reported
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    resource:
                      description: |-
                        If HealthCheck Spec.CollectResources is set to true, resource
                        will be collected and contained in the Resource field.
                      format: byte
                      type: string
                  required:
                  - healthStatus
                  - objectRef
                  type: object
                type: array
            required:
            - clusterName
            - clusterNamespace
            - clusterType
            - healthCheckName
            type: object
          status:
            description: HealthCheckReportStatus defines the observed state of HealthCheckReport
            properties:
              phase:
                description: Phase represents the current phase of report.
                enum:
                - WaitingForDelivery
                - Delivering
                - Processed
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var HealthCheckReportFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_healthcheckreports.lib.projectsveltos.io.yaml"
View Source
var ReloaderCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: reloaders.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: Reloader
    listKind: ReloaderList
    plural: reloaders
    singular: reloader
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: Reloader is the Schema for the Reloader 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: ReloaderSpec defines the desired state of Reloader
            properties:
              reloaderInfo:
                items:
                  description: |-
                    ReloaderInfo represents a resource that need to be reloaded
                    if any mounted ConfigMap/Secret changes.
                  properties:
                    kind:
                      description: 'Kind of the resource. Supported kinds are: Deployment
                        StatefulSet DaemonSet.'
                      enum:
                      - Deployment
                      - StatefulSet
                      - DaemonSet
                      type: string
                    name:
                      description: Name of the referenced resource.
                      minLength: 1
                      type: string
                    namespace:
                      description: Namespace of the referenced resource.
                      minLength: 1
                      type: string
                    value:
                      type: string
                  required:
                  - kind
                  - name
                  - namespace
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
`)
View Source
var ReloaderFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaders.lib.projectsveltos.io.yaml"
View Source
var ReloaderReportCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: reloaderreports.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ReloaderReport
    listKind: ReloaderReportList
    plural: reloaderreports
    singular: reloaderreport
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ReloaderReport is the Schema for the ReloaderReport 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:
            properties:
              clusterName:
                description: |-
                  ClusterName is the name of the Cluster this ReloaderReport
                  is for.
                type: string
              clusterNamespace:
                description: |-
                  ClusterNamespace is the namespace of the Cluster this
                  ReloaderReport is for.
                type: string
              clusterType:
                description: |-
                  ClusterType is the type of Cluster this ReloaderReport
                  is for.
                type: string
              resourcesToReload:
                description: |-
                  ResourcesToReload contains a list of resources that requires
                  rolling upgrade
                items:
                  description: |-
                    ReloaderInfo represents a resource that need to be reloaded
                    if any mounted ConfigMap/Secret changes.
                  properties:
                    kind:
                      description: 'Kind of the resource. Supported kinds are: Deployment
                        StatefulSet DaemonSet.'
                      enum:
                      - Deployment
                      - StatefulSet
                      - DaemonSet
                      type: string
                    name:
                      description: Name of the referenced resource.
                      minLength: 1
                      type: string
                    namespace:
                      description: Namespace of the referenced resource.
                      minLength: 1
                      type: string
                    value:
                      type: string
                  required:
                  - kind
                  - name
                  - namespace
                  type: object
                type: array
            required:
            - clusterName
            - clusterNamespace
            - clusterType
            type: object
          status:
            description: ReloaderReportStatus defines the observed state of ReloaderReport
            properties:
              phase:
                description: Phase represents the current phase of report.
                enum:
                - WaitingForDelivery
                - Delivering
                - Processed
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ReloaderReportFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaderreports.lib.projectsveltos.io.yaml"
View Source
var ResourceSummaryCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: resourcesummaries.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: ResourceSummary
    listKind: ResourceSummaryList
    plural: resourcesummaries
    singular: resourcesummary
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: ResourceSummary is the Schema for the ResourceSummary 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: ResourceSummarySpec defines the desired state of ResourceSummary
            properties:
              chartResources:
                description: Resources deployed by ClusterSummary because of referenced
                  Helm charts
                items:
                  properties:
                    chartName:
                      description: ChartName is the chart name
                      minLength: 1
                      type: string
                    group:
                      description: Resources deployed by ClusterSummary because of
                        helm charts
                      items:
                        properties:
                          group:
                            description: Group of the resource deployed in the Cluster.
                            type: string
                          ignoreForConfigurationDrift:
                            default: false
                            description: |-
                              IgnoreForConfigurationDrift indicates to not track resource
                              for configuration drift detection.
                            type: boolean
                          kind:
                            description: Kind of the resource deployed in the Cluster.
                            minLength: 1
                            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.
                            type: string
                        required:
                        - group
                        - ignoreForConfigurationDrift
                        - kind
                        - name
                        - version
                        type: object
                      type: array
                    releaseName:
                      description: ReleaseName is the chart release
                      minLength: 1
                      type: string
                    releaseNamespace:
                      description: ReleaseNamespace is the namespace release will
                        be installed
                      minLength: 1
                      type: string
                  required:
                  - chartName
                  - releaseName
                  - releaseNamespace
                  type: object
                type: array
              kustomizeResources:
                description: |-
                  KustomizeResources deployed by ClusterSummary because of referenced
                  KustomizationRef
                items:
                  properties:
                    group:
                      description: Group of the resource deployed in the Cluster.
                      type: string
                    ignoreForConfigurationDrift:
                      default: false
                      description: |-
                        IgnoreForConfigurationDrift indicates to not track resource
                        for configuration drift detection.
                        This field has a meaning only when mode is ContinuousWithDriftDetection
                      type: boolean
                    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
              patches:
                description: |-
                  Defines additional inline patches specifically designed to exclude certain fields from
                  configuration drift evaluation.
                items:
                  description: |-
                    Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should
                    be applied to.
                  properties:
                    patch:
                      description: |-
                        Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with
                        an array of operation objects.
                        These values can be static or leverage Go templates for dynamic customization.
                        When expressed as templates, the values are filled in using information from
                        resources within the management cluster before deployment (Cluster and TemplateResourceRefs)
                      type: string
                    target:
                      description: Target points to the resources that the patch document
                        should be applied to.
                      properties:
                        annotationSelector:
                          description: |-
                            AnnotationSelector is a string that follows the label selection expression
                            https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
                            It matches with the resource annotations.
                          type: string
                        group:
                          description: |-
                            Group is the API group to select resources from.
                            Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources.
                            https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
                          type: string
                        kind:
                          description: |-
                            Kind of the API Group to select resources from.
                            Together with Group and Version it is capable of unambiguously
                            identifying and/or selecting resources.
                            https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
                          type: string
                        labelSelector:
                          description: |-
                            LabelSelector is a string that follows the label selection expression
                            https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
                            It matches with the resource labels.
                          type: string
                        name:
                          description: Name to match resources with.
                          type: string
                        namespace:
                          description: Namespace to select resources from.
                          type: string
                        version:
                          description: |-
                            Version of the API Group to select resources from.
                            Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources.
                            https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
                          type: string
                      type: object
                  required:
                  - patch
                  type: object
                type: array
              resources:
                description: Resources deployed by ClusterSummary because of referenced
                  ConfigMaps/Secrets
                items:
                  properties:
                    group:
                      description: Group of the resource deployed in the Cluster.
                      type: string
                    ignoreForConfigurationDrift:
                      default: false
                      description: |-
                        IgnoreForConfigurationDrift indicates to not track resource
                        for configuration drift detection.
                        This field has a meaning only when mode is ContinuousWithDriftDetection
                      type: boolean
                    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
            type: object
          status:
            description: ResourceSummaryStatus defines the status of ResourceSummary
            properties:
              helmResourceHashes:
                description: HelmResourceHashes specifies list of resource plus hash.
                items:
                  properties:
                    group:
                      description: Group of the resource deployed in the Cluster.
                      type: string
                    hash:
                      description: Hash is the hash of a resource's data.
                      type: string
                    ignoreForConfigurationDrift:
                      default: false
                      description: |-
                        IgnoreForConfigurationDrift indicates to not track resource
                        for configuration drift detection.
                        This field has a meaning only when mode is ContinuousWithDriftDetection
                      type: boolean
                    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
              helmResourcesChanged:
                description: Helm Resources changed.
                type: boolean
              kustomizeResourceHashes:
                description: KustomizeResourceHashes specifies a list of resource
                  plus hash
                items:
                  properties:
                    group:
                      description: Group of the resource deployed in the Cluster.
                      type: string
                    hash:
                      description: Hash is the hash of a resource's data.
                      type: string
                    ignoreForConfigurationDrift:
                      default: false
                      description: |-
                        IgnoreForConfigurationDrift indicates to not track resource
                        for configuration drift detection.
                        This field has a meaning only when mode is ContinuousWithDriftDetection
                      type: boolean
                    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
              kustomizeResourcesChanged:
                description: KustomizeResources changed.
                type: boolean
              resourceHashes:
                description: ResourceHashes specifies a list of resource plus hash
                items:
                  properties:
                    group:
                      description: Group of the resource deployed in the Cluster.
                      type: string
                    hash:
                      description: Hash is the hash of a resource's data.
                      type: string
                    ignoreForConfigurationDrift:
                      default: false
                      description: |-
                        IgnoreForConfigurationDrift indicates to not track resource
                        for configuration drift detection.
                        This field has a meaning only when mode is ContinuousWithDriftDetection
                      type: boolean
                    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
              resourcesChanged:
                description: Resources changed.
                type: boolean
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var ResourceSummaryFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_resourcesummaries.lib.projectsveltos.io.yaml"
View Source
var RoleRequestCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: rolerequests.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: RoleRequest
    listKind: RoleRequestList
    plural: rolerequests
    singular: rolerequest
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: RoleRequest is the Schema for the rolerequest 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: RoleRequestSpec defines the desired state of RoleRequest
            properties:
              clusterSelector:
                description: Selector identifies clusters to associate to.
                properties:
                  matchExpressions:
                    description: matchExpressions is a list of label selector requirements.
                      The requirements are ANDed.
                    items:
                      description: |-
                        A label selector requirement is a selector that contains values, a key, and an operator that
                        relates the key and values.
                      properties:
                        key:
                          description: key is the label key that the selector applies
                            to.
                          type: string
                        operator:
                          description: |-
                            operator represents a key's relationship to a set of values.
                            Valid operators are In, NotIn, Exists and DoesNotExist.
                          type: string
                        values:
                          description: |-
                            values is an array of string values. If the operator is In or NotIn,
                            the values array must be non-empty. If the operator is Exists or DoesNotExist,
                            the values array must be empty. This array is replaced during a strategic
                            merge patch.
                          items:
                            type: string
                          type: array
                          x-kubernetes-list-type: atomic
                      required:
                      - key
                      - operator
                      type: object
                    type: array
                    x-kubernetes-list-type: atomic
                  matchLabels:
                    additionalProperties:
                      type: string
                    description: |-
                      matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                      map is equivalent to an element of matchExpressions, whose key field is "key", the
                      operator is "In", and the values array contains only "value". The requirements are ANDed.
                    type: object
                type: object
                x-kubernetes-map-type: atomic
              expirationSeconds:
                description: |-
                  ExpirationSeconds is the requested duration of validity of the TokenRequest
                  associated to ServiceAccount. If not specified, default value is used
                format: int64
                type: integer
              roleRefs:
                description: |-
                  RoleRefs references all the Secret/ConfigMaps containing kubernetes
                  Roles/ClusterRoles that need to be deployed in the matching clusters.
                items:
                  description: |-
                    PolicyRef specifies a resource containing one or more policy
                    to deploy in matching Clusters.
                  properties:
                    kind:
                      description: 'Kind of the resource. Supported kinds are: Secrets
                        and ConfigMaps.'
                      enum:
                      - Secret
                      - ConfigMap
                      type: string
                    name:
                      description: Name of the referenced resource.
                      minLength: 1
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referenced resource.
                        Namespace can be left empty. In such a case, namespace will
                        be implicit set to cluster's namespace.
                      type: string
                  required:
                  - kind
                  - name
                  - namespace
                  type: object
                type: array
              serviceAccountName:
                description: |-
                  ServiceAccountName is the name of the ServiceAccount representing a tenant admin for which
                  those permissions are requested
                type: string
              serviceAccountNamespace:
                description: |-
                  ServiceAccountNamespace is the name of the ServiceAccount representing a tenant admin
                  for which those permissions are requested
                type: string
            required:
            - serviceAccountName
            - serviceAccountNamespace
            type: object
          status:
            description: RoleRequestStatus defines the status of RoleRequest
            properties:
              clusterInfo:
                description: |-
                  ClusterInfo represents the hash of the ClusterRoles/Roles deployed in
                  a matching cluster for the admin.
                items:
                  properties:
                    cluster:
                      description: Cluster references the Cluster
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    failureMessage:
                      description: FailureMessage provides more information about
                        the error.
                      type: string
                    hash:
                      description: |-
                        Hash represents the hash of the Classifier currently deployed
                        in the Cluster
                      format: byte
                      type: string
                    status:
                      description: Status represents the state of the feature in the
                        workload cluster
                      enum:
                      - Provisioning
                      - Provisioned
                      - Failed
                      - Removing
                      - Removed
                      type: string
                  required:
                  - cluster
                  - hash
                  type: object
                type: array
              failureMessage:
                description: FailureMessage provides more information if an error
                  occurs.
                type: string
              matchingClusters:
                description: |-
                  MatchingClusterRefs reference all the cluster currently matching
                  RoleRequest ClusterSelector
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var RoleRequestFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_rolerequests.lib.projectsveltos.io.yaml"
View Source
var SetCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: sets.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: Set
    listKind: SetList
    plural: sets
    singular: set
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: Set is the Schema for the sets 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:
            properties:
              clusterRefs:
                description: ClusterRefs identifies clusters to associate to.
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
              clusterSelector:
                description: ClusterSelector identifies clusters to associate to
                properties:
                  matchExpressions:
                    description: matchExpressions is a list of label selector requirements.
                      The requirements are ANDed.
                    items:
                      description: |-
                        A label selector requirement is a selector that contains values, a key, and an operator that
                        relates the key and values.
                      properties:
                        key:
                          description: key is the label key that the selector applies
                            to.
                          type: string
                        operator:
                          description: |-
                            operator represents a key's relationship to a set of values.
                            Valid operators are In, NotIn, Exists and DoesNotExist.
                          type: string
                        values:
                          description: |-
                            values is an array of string values. If the operator is In or NotIn,
                            the values array must be non-empty. If the operator is Exists or DoesNotExist,
                            the values array must be empty. This array is replaced during a strategic
                            merge patch.
                          items:
                            type: string
                          type: array
                          x-kubernetes-list-type: atomic
                      required:
                      - key
                      - operator
                      type: object
                    type: array
                    x-kubernetes-list-type: atomic
                  matchLabels:
                    additionalProperties:
                      type: string
                    description: |-
                      matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                      map is equivalent to an element of matchExpressions, whose key field is "key", the
                      operator is "In", and the values array contains only "value". The requirements are ANDed.
                    type: object
                type: object
                x-kubernetes-map-type: atomic
              maxReplicas:
                description: |-
                  MaxReplicas specifies the maximum number of clusters to be selected
                  from the pool matching the clusterSelector.
                type: integer
            type: object
          status:
            description: Status defines the observed state of ClusterSet/Set
            properties:
              matchingClusterRefs:
                description: |-
                  MatchingClusterRefs reference all the clusters currently matching
                  ClusterSet/Set ClusterSelector
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
              selectedClusterRefs:
                description: |-
                  SelectedClusters reference all the cluster currently selected among
                  all the ones matching
                items:
                  description: ObjectReference contains enough information to let
                    you inspect or modify the referred object.
                  properties:
                    apiVersion:
                      description: API version of the referent.
                      type: string
                    fieldPath:
                      description: |-
                        If referring to a piece of an object instead of an entire object, this string
                        should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                        For example, if the object reference is to a container within a pod, this would take on a value like:
                        "spec.containers{name}" (where "name" refers to the name of the container that triggered
                        the event) or if no container name is specified "spec.containers[2]" (container with
                        index 2 in this pod). This syntax is chosen only to have some well-defined way of
                        referencing a part of an object.
                      type: string
                    kind:
                      description: |-
                        Kind of the referent.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                      type: string
                    name:
                      description: |-
                        Name of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                      type: string
                    namespace:
                      description: |-
                        Namespace of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                      type: string
                    resourceVersion:
                      description: |-
                        Specific resourceVersion to which this reference is made, if any.
                        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                      type: string
                    uid:
                      description: |-
                        UID of the referent.
                        More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                      type: string
                  type: object
                  x-kubernetes-map-type: atomic
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var SetFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_sets.lib.projectsveltos.io.yaml"
View Source
var SveltosClusterCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: sveltosclusters.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: SveltosCluster
    listKind: SveltosClusterList
    plural: sveltosclusters
    singular: sveltoscluster
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - description: Indicates whether cluster is ready to be managed by sveltos
      jsonPath: .status.ready
      name: Ready
      type: boolean
    - description: Kubernetes version associated with this Cluster
      jsonPath: .status.version
      name: Version
      type: string
    - description: Time duration since creation of SveltosCluster
      jsonPath: .metadata.creationTimestamp
      name: Age
      type: date
    name: v1beta1
    schema:
      openAPIV3Schema:
        description: SveltosCluster is the Schema for the SveltosCluster 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: SveltosClusterSpec defines the desired state of SveltosCluster
            properties:
              activeWindow:
                description: |-
                  ActiveWindow is an optional field for automatically pausing and unpausing
                  the cluster.
                  If not specified, the cluster will not be paused or unpaused automatically.
                properties:
                  from:
                    description: |-
                      From in Cron format, see https://en.wikipedia.org/wiki/Cron.
                      Indicates when to un-pause the cluster (cluster in paused state receives no update from sveltos).
                    minLength: 1
                    type: string
                  to:
                    description: |-
                      To in Cron format, see https://en.wikipedia.org/Cron.
                      Indicates when to pause the cluster (cluster in paused state receives no update from sveltos).
                    minLength: 1
                    type: string
                required:
                - from
                - to
                type: object
              consecutiveFailureThreshold:
                default: 3
                description: |-
                  ConsecutiveFailureThreshold is the maximum number of consecutive connection
                  failures before setting the problem status in Status.ConnectionStatus
                type: integer
              data:
                additionalProperties:
                  type: string
                description: ArbitraryData allows for arbitrary nested structures
                type: object
              kubeconfigKeyName:
                description: |-
                  KubeconfigKeyName specifies the key within the Secret that holds the kubeconfig.
                  If not specified, Sveltos will use first key in the Secret.
                type: string
              kubeconfigName:
                description: |-
                  KubeconfigName allows overriding the default Sveltos convention which expected a valid kubeconfig
                  to be hosted in a secret with the pattern ${sveltosClusterName}-sveltos-kubeconfig.

                  When a value is specified, the referenced Kubernetes Secret object must exist,
                  and will be used to connect to the Kubernetes cluster.
                type: string
              livenessChecks:
                description: |-
                  LivenessChecks is an optional list of custom checks to verify cluster
                  is healthy
                items:
                  properties:
                    condition:
                      description: |-
                        This field is  used to specify a Lua function that will be used to evaluate
                        this check.
                        The function will receive the array of resources selected by ResourceSelectors.
                        The Lua function name is evaluate and must return a struct with:
                        - "result" field: boolean indicating whether check passed or failed;
                        - "message" field: (optional) message.
                      type: string
                    name:
                      description: |-
                        Name of the cluster check.
                        Must be a DNS_LABEL and unique within the ClusterChecks.
                      type: string
                    resourceSelectors:
                      description: ResourceSelectors identifies what Kubernetes resources
                        to select
                      items:
                        description: ResourceSelector defines what resources are a
                          match
                        properties:
                          evaluate:
                            description: |-
                              Evaluate contains a function "evaluate" in lua language.
                              The function will be passed one of the object selected based on
                              above criteria.
                              Must return struct with field "matching" representing whether
                              object is a match and an optional "message" field.
                            type: string
                          evaluateCEL:
                            description: |-
                              EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                              Each rule will be evaluated in order against each object selected based on
                              the criteria defined above. Each rule's expression must return a boolean value
                              indicating whether the object is a match.

                              Evaluation stops at the first rule that returns true; subsequent
                              rules will not be evaluated.
                            items:
                              description: CELRule defines a named CEL rule used in
                                EvaluateCEL.
                              properties:
                                name:
                                  description: Name is a human-readable identifier
                                    for the rule.
                                  type: string
                                rule:
                                  description: |-
                                    Rule is the CEL (Common Expression Language) expression to evaluate.
                                    It must return a bool
                                  type: string
                              required:
                              - name
                              - rule
                              type: object
                            type: array
                          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
                          labelFilters:
                            description: LabelFilters allows to filter resources based
                              on current labels.
                            items:
                              properties:
                                key:
                                  description: Key is the label key
                                  type: string
                                operation:
                                  description: Operation is the comparison operation
                                  enum:
                                  - Equal
                                  - Different
                                  - Has
                                  - DoesNotHave
                                  type: string
                                value:
                                  description: Value is the label value
                                  type: string
                              required:
                              - key
                              - operation
                              type: object
                            type: array
                          name:
                            description: Name of the resource deployed in the  Cluster.
                            type: string
                          namespace:
                            description: |-
                              Namespace of the resource deployed in the  Cluster.
                              Empty for resources scoped at cluster level.
                              For namespaced resources, an empty string "" indicates all namespaces.
                            type: string
                          selector:
                            description: |-
                              Selector is a standard Kubernetes label selector. Resources are selected
                              if their labels match the selector. This field uses the standard
                              Kubernetes label matching syntax (e.g., {"environment": "production"}).
                              If both LabelFilters and Selector are specified, the requirements from
                              both are logically ANDed.
                            properties:
                              matchExpressions:
                                description: matchExpressions is a list of label selector
                                  requirements. The requirements are ANDed.
                                items:
                                  description: |-
                                    A label selector requirement is a selector that contains values, a key, and an operator that
                                    relates the key and values.
                                  properties:
                                    key:
                                      description: key is the label key that the selector
                                        applies to.
                                      type: string
                                    operator:
                                      description: |-
                                        operator represents a key's relationship to a set of values.
                                        Valid operators are In, NotIn, Exists and DoesNotExist.
                                      type: string
                                    values:
                                      description: |-
                                        values is an array of string values. If the operator is In or NotIn,
                                        the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                        the values array must be empty. This array is replaced during a strategic
                                        merge patch.
                                      items:
                                        type: string
                                      type: array
                                      x-kubernetes-list-type: atomic
                                  required:
                                  - key
                                  - operator
                                  type: object
                                type: array
                                x-kubernetes-list-type: atomic
                              matchLabels:
                                additionalProperties:
                                  type: string
                                description: |-
                                  matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                                  map is equivalent to an element of matchExpressions, whose key field is "key", the
                                  operator is "In", and the values array contains only "value". The requirements are ANDed.
                                type: object
                            type: object
                            x-kubernetes-map-type: atomic
                          version:
                            description: Version of the resource deployed in the Cluster.
                            type: string
                        required:
                        - group
                        - kind
                        - version
                        type: object
                      type: array
                  required:
                  - condition
                  - name
                  - resourceSelectors
                  type: object
                type: array
              paused:
                description: |-
                  Paused can be used to prevent controllers from processing the
                  SveltosCluster and all its associated objects.
                type: boolean
              pullMode:
                default: false
                description: |-
                  PullMode indicates whether the cluster is in pull mode.
                  If true, the agent in the managed cluster will fetch the configuration.
                  If false (default), the management cluster will push the configuration.
                type: boolean
                x-kubernetes-validations:
                - message: Value is immutable
                  rule: self == oldSelf
              readinessChecks:
                description: |-
                  ReadinessChecks is an optional list of custom checks to verify cluster
                  readiness
                items:
                  properties:
                    condition:
                      description: |-
                        This field is  used to specify a Lua function that will be used to evaluate
                        this check.
                        The function will receive the array of resources selected by ResourceSelectors.
                        The Lua function name is evaluate and must return a struct with:
                        - "result" field: boolean indicating whether check passed or failed;
                        - "message" field: (optional) message.
                      type: string
                    name:
                      description: |-
                        Name of the cluster check.
                        Must be a DNS_LABEL and unique within the ClusterChecks.
                      type: string
                    resourceSelectors:
                      description: ResourceSelectors identifies what Kubernetes resources
                        to select
                      items:
                        description: ResourceSelector defines what resources are a
                          match
                        properties:
                          evaluate:
                            description: |-
                              Evaluate contains a function "evaluate" in lua language.
                              The function will be passed one of the object selected based on
                              above criteria.
                              Must return struct with field "matching" representing whether
                              object is a match and an optional "message" field.
                            type: string
                          evaluateCEL:
                            description: |-
                              EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                              Each rule will be evaluated in order against each object selected based on
                              the criteria defined above. Each rule's expression must return a boolean value
                              indicating whether the object is a match.

                              Evaluation stops at the first rule that returns true; subsequent
                              rules will not be evaluated.
                            items:
                              description: CELRule defines a named CEL rule used in
                                EvaluateCEL.
                              properties:
                                name:
                                  description: Name is a human-readable identifier
                                    for the rule.
                                  type: string
                                rule:
                                  description: |-
                                    Rule is the CEL (Common Expression Language) expression to evaluate.
                                    It must return a bool
                                  type: string
                              required:
                              - name
                              - rule
                              type: object
                            type: array
                          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
                          labelFilters:
                            description: LabelFilters allows to filter resources based
                              on current labels.
                            items:
                              properties:
                                key:
                                  description: Key is the label key
                                  type: string
                                operation:
                                  description: Operation is the comparison operation
                                  enum:
                                  - Equal
                                  - Different
                                  - Has
                                  - DoesNotHave
                                  type: string
                                value:
                                  description: Value is the label value
                                  type: string
                              required:
                              - key
                              - operation
                              type: object
                            type: array
                          name:
                            description: Name of the resource deployed in the  Cluster.
                            type: string
                          namespace:
                            description: |-
                              Namespace of the resource deployed in the  Cluster.
                              Empty for resources scoped at cluster level.
                              For namespaced resources, an empty string "" indicates all namespaces.
                            type: string
                          selector:
                            description: |-
                              Selector is a standard Kubernetes label selector. Resources are selected
                              if their labels match the selector. This field uses the standard
                              Kubernetes label matching syntax (e.g., {"environment": "production"}).
                              If both LabelFilters and Selector are specified, the requirements from
                              both are logically ANDed.
                            properties:
                              matchExpressions:
                                description: matchExpressions is a list of label selector
                                  requirements. The requirements are ANDed.
                                items:
                                  description: |-
                                    A label selector requirement is a selector that contains values, a key, and an operator that
                                    relates the key and values.
                                  properties:
                                    key:
                                      description: key is the label key that the selector
                                        applies to.
                                      type: string
                                    operator:
                                      description: |-
                                        operator represents a key's relationship to a set of values.
                                        Valid operators are In, NotIn, Exists and DoesNotExist.
                                      type: string
                                    values:
                                      description: |-
                                        values is an array of string values. If the operator is In or NotIn,
                                        the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                        the values array must be empty. This array is replaced during a strategic
                                        merge patch.
                                      items:
                                        type: string
                                      type: array
                                      x-kubernetes-list-type: atomic
                                  required:
                                  - key
                                  - operator
                                  type: object
                                type: array
                                x-kubernetes-list-type: atomic
                              matchLabels:
                                additionalProperties:
                                  type: string
                                description: |-
                                  matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                                  map is equivalent to an element of matchExpressions, whose key field is "key", the
                                  operator is "In", and the values array contains only "value". The requirements are ANDed.
                                type: object
                            type: object
                            x-kubernetes-map-type: atomic
                          version:
                            description: Version of the resource deployed in the Cluster.
                            type: string
                        required:
                        - group
                        - kind
                        - version
                        type: object
                      type: array
                  required:
                  - condition
                  - name
                  - resourceSelectors
                  type: object
                type: array
              tokenRequestRenewalOption:
                description: TokenRequestRenewalOption contains options describing
                  how to renew TokenRequest
                properties:
                  renewTokenRequestInterval:
                    description: RenewTokenRequestInterval is the interval at which
                      to renew the TokenRequest
                    type: string
                  saName:
                    description: |-
                      SAName is name of the ServiceAccount to renew the token for.
                      If specified, ServiceAccount must exist in the managed cluster.
                      If not specified, sveltos will try to deduce it from current kubeconfig
                    type: string
                  saNamespace:
                    description: |-
                      SANamespace is the namespace of the ServiceAccount to renew the token for.
                      If specified, ServiceAccount must exist in the managed cluster.
                      If not specified, sveltos will try to deduce it from current kubeconfig
                    type: string
                  tokenDuration:
                    description: |-
                      TokenDuration is the duration the requested token will be valid for.
                      If not specified, the value of RenewTokenRequestInterval will be used.
                      This allows the token to remain valid beyond the renewal interval,
                      providing a buffer in case of connectivity loss.
                      Example: renew every hour, token lasts 3 hours (buffer for disconnection)
                        renewTokenRequestInterval: 1h
                        tokenDuration: 3h
                    type: string
                required:
                - renewTokenRequestInterval
                type: object
            type: object
          status:
            description: SveltosClusterStatus defines the status of SveltosCluster
            properties:
              activeWindowHash:
                description: |-
                  ActiveWindowHash is the hash of the SveltosCluster Spec.ActiveWindow.
                  This is used to detect if the ActiveWindow configuration has changed
                  and requires recalculation of NextPause and NextUnpause.
                format: byte
                type: string
              agentLastReportTime:
                description: |-
                  AgentLastReportTime indicates the last time the Sveltos agent in the managed cluster
                  successfully reported its status to the management cluster's API server.
                  This field is updated exclusively when Sveltos operates in pull mode,
                  serving as a heartbeat from the agent's perspective.
                format: date-time
                type: string
              connectionFailures:
                default: 0
                description: |-
                  connectionFailures is the number of consecutive failed attempts to connect
                  to the remote cluster.
                type: integer
              connectionStatus:
                description: |-
                  ConnectionStatus indicates whether connection from the management cluster
                  to the managed cluster is healthy
                enum:
                - Healthy
                - Down
                type: string
              failureMessage:
                description: |-
                  FailureMessage is a human consumable message explaining the
                  misconfiguration
                type: string
              lastReconciledTokenRequestAt:
                description: |-
                  LastReconciledTokenRequestAt is the last time the TokenRequest
                  was renewed.
                type: string
              nextPause:
                description: Information when next pause cluster is scheduled
                format: date-time
                type: string
              nextUnpause:
                description: Information when next unpause cluster is scheduled
                format: date-time
                type: string
              ready:
                description: Ready is the state of the cluster.
                type: boolean
              version:
                description: The Kubernetes version of the cluster.
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var SveltosClusterFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml"
View Source
var SveltosLicenseCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: sveltoslicenses.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: SveltosLicense
    listKind: SveltosLicenseList
    plural: sveltoslicenses
    singular: sveltoslicense
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: SveltosLicense is the Schema for the clustersets 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: SveltosLicenseStatus defines the observed state of SveltosLicense
            properties:
              expirationDate:
                description: |-
                  ExpirationDate is the exact expiration timestamp from the license payload,
                  if a license was found and successfully parsed. This field will be present
                  even if the license is expired or invalid, as long as the date could be extracted.
                format: date-time
                type: string
              features:
                description: Features is a list of feature strings enabled by this
                  license.
                items:
                  type: string
                type: array
              maxClusters:
                description: MaxClusters is the maximum number of clusters allowed
                  for this license.
                type: integer
              message:
                description: Message provides a human-readable explanation of the
                  current license status.
                type: string
              status:
                description: |-
                  Status indicates the overall state of the license.
                  Possible values:
                  - Valid: License secret found, valid signature, not expired.
                  - Expired: License secret found, valid signature, but expired.
                  - Invalid: License secret found, but signature invalid or data malformed.
                  - NotFound: No license secret found at the specified reference.
                enum:
                - Valid
                - Expired
                - Invalid
                - NotFound
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var SveltosLicenseFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltoslicenses.lib.projectsveltos.io.yaml"
View Source
var TechsupportCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.19.0
  name: techsupports.lib.projectsveltos.io
spec:
  group: lib.projectsveltos.io
  names:
    kind: Techsupport
    listKind: TechsupportList
    plural: techsupports
    singular: techsupport
  scope: Cluster
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        description: Techsupport is the Schema for the techsupport 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: TechsupportSpec defines the desired state of Techsupport
            properties:
              deliveryMethods:
                description: Notification is a list of delivery mechanisms.
                items:
                  properties:
                    name:
                      description: |-
                        Name of the delivery mechanism.
                        Must be a DNS_LABEL and unique within the TechsupportSpec.
                      type: string
                    secretRef:
                      description: |-
                        SecretRef is a reference to a delivery mechanism-specific Secret
                        that holds the details for the delivery.
                      properties:
                        name:
                          description: name is unique within a namespace to reference
                            a secret resource.
                          type: string
                        namespace:
                          description: namespace defines the space within which the
                            secret name must be unique.
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    type:
                      description: DeliveryType specifies the type of notification
                      enum:
                      - Slack
                      - Webex
                      - Discord
                      - Telegram
                      - SMTP
                      - SFTP
                      type: string
                  required:
                  - name
                  - type
                  type: object
                type: array
              fromManaged:
                description: |-
                  FromManaged specifies which resources and logs to collect from
                  matching managed cluster.
                properties:
                  clusterRefs:
                    description: ClusterRefs identifies clusters to collect techsupport
                      from.
                    items:
                      description: ObjectReference contains enough information to
                        let you inspect or modify the referred object.
                      properties:
                        apiVersion:
                          description: API version of the referent.
                          type: string
                        fieldPath:
                          description: |-
                            If referring to a piece of an object instead of an entire object, this string
                            should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
                            For example, if the object reference is to a container within a pod, this would take on a value like:
                            "spec.containers{name}" (where "name" refers to the name of the container that triggered
                            the event) or if no container name is specified "spec.containers[2]" (container with
                            index 2 in this pod). This syntax is chosen only to have some well-defined way of
                            referencing a part of an object.
                          type: string
                        kind:
                          description: |-
                            Kind of the referent.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
                          type: string
                        name:
                          description: |-
                            Name of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          type: string
                        namespace:
                          description: |-
                            Namespace of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
                          type: string
                        resourceVersion:
                          description: |-
                            Specific resourceVersion to which this reference is made, if any.
                            More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
                          type: string
                        uid:
                          description: |-
                            UID of the referent.
                            More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
                          type: string
                      type: object
                      x-kubernetes-map-type: atomic
                    type: array
                  clusterSelector:
                    description: ClusterSelector identifies clusters to collect techsupport
                      from.
                    properties:
                      matchExpressions:
                        description: matchExpressions is a list of label selector
                          requirements. The requirements are ANDed.
                        items:
                          description: |-
                            A label selector requirement is a selector that contains values, a key, and an operator that
                            relates the key and values.
                          properties:
                            key:
                              description: key is the label key that the selector
                                applies to.
                              type: string
                            operator:
                              description: |-
                                operator represents a key's relationship to a set of values.
                                Valid operators are In, NotIn, Exists and DoesNotExist.
                              type: string
                            values:
                              description: |-
                                values is an array of string values. If the operator is In or NotIn,
                                the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                the values array must be empty. This array is replaced during a strategic
                                merge patch.
                              items:
                                type: string
                              type: array
                              x-kubernetes-list-type: atomic
                          required:
                          - key
                          - operator
                          type: object
                        type: array
                        x-kubernetes-list-type: atomic
                      matchLabels:
                        additionalProperties:
                          type: string
                        description: |-
                          matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                          map is equivalent to an element of matchExpressions, whose key field is "key", the
                          operator is "In", and the values array contains only "value". The requirements are ANDed.
                        type: object
                    type: object
                    x-kubernetes-map-type: atomic
                  events:
                    description: Events indicates what events to collect
                    items:
                      properties:
                        namespace:
                          description: |-
                            Namespace of the events.
                            An empty string "" indicates all namespaces.
                          type: string
                        type:
                          description: Type filters events based on the type of the
                            events (Normal, Warning),
                          enum:
                          - Normal
                          - Warning
                          type: string
                      type: object
                    type: array
                  logs:
                    description: Logs indicates what pods' log to collect
                    items:
                      description: LogFilter allows to select which logs to collect
                      properties:
                        labelFilters:
                          description: LabelFilters allows to filter pods based on
                            current labels.
                          items:
                            properties:
                              key:
                                description: Key is the label key
                                type: string
                              operation:
                                description: Operation is the comparison operation
                                enum:
                                - Equal
                                - Different
                                - Has
                                - DoesNotHave
                                type: string
                              value:
                                description: Value is the label value
                                type: string
                            required:
                            - key
                            - operation
                            type: object
                          type: array
                        name:
                          description: Name of the pods deployed in the Cluster.
                          type: string
                        namespace:
                          description: |-
                            Namespace of the pods deployed in the Cluster.
                            An empty string "" indicates all namespaces.
                          type: string
                        sinceSeconds:
                          description: |-
                            A relative time in seconds before the current time from which to collect logs.
                            If this value precedes the time a pod was started, only logs since the pod
                            start will be returned.
                          format: int64
                          type: integer
                      type: object
                    type: array
                  resources:
                    description: Resources indicates what resorces to collect
                    items:
                      description: ResourceSelector defines what resources are a match
                      properties:
                        evaluate:
                          description: |-
                            Evaluate contains a function "evaluate" in lua language.
                            The function will be passed one of the object selected based on
                            above criteria.
                            Must return struct with field "matching" representing whether
                            object is a match and an optional "message" field.
                          type: string
                        evaluateCEL:
                          description: |-
                            EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                            Each rule will be evaluated in order against each object selected based on
                            the criteria defined above. Each rule's expression must return a boolean value
                            indicating whether the object is a match.

                            Evaluation stops at the first rule that returns true; subsequent
                            rules will not be evaluated.
                          items:
                            description: CELRule defines a named CEL rule used in
                              EvaluateCEL.
                            properties:
                              name:
                                description: Name is a human-readable identifier for
                                  the rule.
                                type: string
                              rule:
                                description: |-
                                  Rule is the CEL (Common Expression Language) expression to evaluate.
                                  It must return a bool
                                type: string
                            required:
                            - name
                            - rule
                            type: object
                          type: array
                        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
                        labelFilters:
                          description: LabelFilters allows to filter resources based
                            on current labels.
                          items:
                            properties:
                              key:
                                description: Key is the label key
                                type: string
                              operation:
                                description: Operation is the comparison operation
                                enum:
                                - Equal
                                - Different
                                - Has
                                - DoesNotHave
                                type: string
                              value:
                                description: Value is the label value
                                type: string
                            required:
                            - key
                            - operation
                            type: object
                          type: array
                        name:
                          description: Name of the resource deployed in the  Cluster.
                          type: string
                        namespace:
                          description: |-
                            Namespace of the resource deployed in the  Cluster.
                            Empty for resources scoped at cluster level.
                            For namespaced resources, an empty string "" indicates all namespaces.
                          type: string
                        selector:
                          description: |-
                            Selector is a standard Kubernetes label selector. Resources are selected
                            if their labels match the selector. This field uses the standard
                            Kubernetes label matching syntax (e.g., {"environment": "production"}).
                            If both LabelFilters and Selector are specified, the requirements from
                            both are logically ANDed.
                          properties:
                            matchExpressions:
                              description: matchExpressions is a list of label selector
                                requirements. The requirements are ANDed.
                              items:
                                description: |-
                                  A label selector requirement is a selector that contains values, a key, and an operator that
                                  relates the key and values.
                                properties:
                                  key:
                                    description: key is the label key that the selector
                                      applies to.
                                    type: string
                                  operator:
                                    description: |-
                                      operator represents a key's relationship to a set of values.
                                      Valid operators are In, NotIn, Exists and DoesNotExist.
                                    type: string
                                  values:
                                    description: |-
                                      values is an array of string values. If the operator is In or NotIn,
                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                      the values array must be empty. This array is replaced during a strategic
                                      merge patch.
                                    items:
                                      type: string
                                    type: array
                                    x-kubernetes-list-type: atomic
                                required:
                                - key
                                - operator
                                type: object
                              type: array
                              x-kubernetes-list-type: atomic
                            matchLabels:
                              additionalProperties:
                                type: string
                              description: |-
                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                                map is equivalent to an element of matchExpressions, whose key field is "key", the
                                operator is "In", and the values array contains only "value". The requirements are ANDed.
                              type: object
                          type: object
                          x-kubernetes-map-type: atomic
                        version:
                          description: Version of the resource deployed in the Cluster.
                          type: string
                      required:
                      - group
                      - kind
                      - version
                      type: object
                    type: array
                type: object
              fromManagement:
                description: |-
                  FromManagement identifies which resources and logs to collect
                  from the management cluster
                properties:
                  events:
                    description: Events indicates what events to collect
                    items:
                      properties:
                        namespace:
                          description: |-
                            Namespace of the events.
                            An empty string "" indicates all namespaces.
                          type: string
                        type:
                          description: Type filters events based on the type of the
                            events (Normal, Warning),
                          enum:
                          - Normal
                          - Warning
                          type: string
                      type: object
                    type: array
                  logs:
                    description: Logs indicates what pods' log to collect
                    items:
                      description: LogFilter allows to select which logs to collect
                      properties:
                        labelFilters:
                          description: LabelFilters allows to filter pods based on
                            current labels.
                          items:
                            properties:
                              key:
                                description: Key is the label key
                                type: string
                              operation:
                                description: Operation is the comparison operation
                                enum:
                                - Equal
                                - Different
                                - Has
                                - DoesNotHave
                                type: string
                              value:
                                description: Value is the label value
                                type: string
                            required:
                            - key
                            - operation
                            type: object
                          type: array
                        name:
                          description: Name of the pods deployed in the Cluster.
                          type: string
                        namespace:
                          description: |-
                            Namespace of the pods deployed in the Cluster.
                            An empty string "" indicates all namespaces.
                          type: string
                        sinceSeconds:
                          description: |-
                            A relative time in seconds before the current time from which to collect logs.
                            If this value precedes the time a pod was started, only logs since the pod
                            start will be returned.
                          format: int64
                          type: integer
                      type: object
                    type: array
                  resources:
                    description: Resources indicates what resorces to collect
                    items:
                      description: ResourceSelector defines what resources are a match
                      properties:
                        evaluate:
                          description: |-
                            Evaluate contains a function "evaluate" in lua language.
                            The function will be passed one of the object selected based on
                            above criteria.
                            Must return struct with field "matching" representing whether
                            object is a match and an optional "message" field.
                          type: string
                        evaluateCEL:
                          description: |-
                            EvaluateCEL contains a list of named CEL (Common Expression Language) rules.
                            Each rule will be evaluated in order against each object selected based on
                            the criteria defined above. Each rule's expression must return a boolean value
                            indicating whether the object is a match.

                            Evaluation stops at the first rule that returns true; subsequent
                            rules will not be evaluated.
                          items:
                            description: CELRule defines a named CEL rule used in
                              EvaluateCEL.
                            properties:
                              name:
                                description: Name is a human-readable identifier for
                                  the rule.
                                type: string
                              rule:
                                description: |-
                                  Rule is the CEL (Common Expression Language) expression to evaluate.
                                  It must return a bool
                                type: string
                            required:
                            - name
                            - rule
                            type: object
                          type: array
                        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
                        labelFilters:
                          description: LabelFilters allows to filter resources based
                            on current labels.
                          items:
                            properties:
                              key:
                                description: Key is the label key
                                type: string
                              operation:
                                description: Operation is the comparison operation
                                enum:
                                - Equal
                                - Different
                                - Has
                                - DoesNotHave
                                type: string
                              value:
                                description: Value is the label value
                                type: string
                            required:
                            - key
                            - operation
                            type: object
                          type: array
                        name:
                          description: Name of the resource deployed in the  Cluster.
                          type: string
                        namespace:
                          description: |-
                            Namespace of the resource deployed in the  Cluster.
                            Empty for resources scoped at cluster level.
                            For namespaced resources, an empty string "" indicates all namespaces.
                          type: string
                        selector:
                          description: |-
                            Selector is a standard Kubernetes label selector. Resources are selected
                            if their labels match the selector. This field uses the standard
                            Kubernetes label matching syntax (e.g., {"environment": "production"}).
                            If both LabelFilters and Selector are specified, the requirements from
                            both are logically ANDed.
                          properties:
                            matchExpressions:
                              description: matchExpressions is a list of label selector
                                requirements. The requirements are ANDed.
                              items:
                                description: |-
                                  A label selector requirement is a selector that contains values, a key, and an operator that
                                  relates the key and values.
                                properties:
                                  key:
                                    description: key is the label key that the selector
                                      applies to.
                                    type: string
                                  operator:
                                    description: |-
                                      operator represents a key's relationship to a set of values.
                                      Valid operators are In, NotIn, Exists and DoesNotExist.
                                    type: string
                                  values:
                                    description: |-
                                      values is an array of string values. If the operator is In or NotIn,
                                      the values array must be non-empty. If the operator is Exists or DoesNotExist,
                                      the values array must be empty. This array is replaced during a strategic
                                      merge patch.
                                    items:
                                      type: string
                                    type: array
                                    x-kubernetes-list-type: atomic
                                required:
                                - key
                                - operator
                                type: object
                              type: array
                              x-kubernetes-list-type: atomic
                            matchLabels:
                              additionalProperties:
                                type: string
                              description: |-
                                matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
                                map is equivalent to an element of matchExpressions, whose key field is "key", the
                                operator is "In", and the values array contains only "value". The requirements are ANDed.
                              type: object
                          type: object
                          x-kubernetes-map-type: atomic
                        version:
                          description: Version of the resource deployed in the Cluster.
                          type: string
                      required:
                      - group
                      - kind
                      - version
                      type: object
                    type: array
                type: object
              onDemand:
                description: OnDemand indicates if tech support should be collected
                  immediately.
                type: boolean
              schedulingConfig:
                description: |-
                  SchedulingConfig defines a schedule options for recurring tech support
                  collections.
                properties:
                  schedule:
                    description: Schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
                    type: string
                  startingDeadlineSeconds:
                    description: |-
                      Optional deadline in seconds for starting the job if it misses scheduled
                      time for any reason.  Missed jobs executions will be counted as failed ones.
                    format: int64
                    type: integer
                required:
                - schedule
                type: object
            required:
            - deliveryMethods
            type: object
          status:
            description: TechsupportStatus defines the observed state of Techsupport
            properties:
              failureMessage:
                description: |-
                  FailureMessage provides more information about the error, if
                  any occurred
                type: string
              hash:
                description: |-
                  Hash represents of a unique value for techsupport Spec at a fixed point in
                  time
                format: byte
                type: string
              lastRunStatus:
                description: Status indicates what happened to last techsupport collection.
                enum:
                - Collected
                - InProgress
                - Failed
                type: string
              lastRunTime:
                description: Information when was the last time a techsupport was
                  successfully scheduled.
                format: date-time
                type: string
              nextScheduleTime:
                description: Information when next techsupport is scheduled
                format: date-time
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
`)
View Source
var TechsupportFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_techsupports.lib.projectsveltos.io.yaml"

Functions

func GetAccessRequestCRDYAML added in v0.3.0

func GetAccessRequestCRDYAML() []byte

func GetClassifierCRDYAML

func GetClassifierCRDYAML() []byte

func GetClassifierReportCRDYAML

func GetClassifierReportCRDYAML() []byte

func GetClusterHealthCheckCRDYAML added in v0.5.0

func GetClusterHealthCheckCRDYAML() []byte

func GetClusterSetCRDYAML added in v0.26.0

func GetClusterSetCRDYAML() []byte

func GetConfigurationBundleCRDYAML added in v1.0.0

func GetConfigurationBundleCRDYAML() []byte

func GetConfigurationGroupCRDYAML added in v1.0.0

func GetConfigurationGroupCRDYAML() []byte

func GetDebuggingConfigurationCRDYAML

func GetDebuggingConfigurationCRDYAML() []byte

func GetEventReportCRDYAML added in v0.7.0

func GetEventReportCRDYAML() []byte

func GetEventSourceCRDYAML added in v0.7.0

func GetEventSourceCRDYAML() []byte

func GetHealthCheckCRDYAML added in v0.7.0

func GetHealthCheckCRDYAML() []byte

func GetHealthCheckReportCRDYAML added in v0.7.0

func GetHealthCheckReportCRDYAML() []byte

func GetReloaderCRDYAML added in v0.15.0

func GetReloaderCRDYAML() []byte

func GetReloaderReportCRDYAML added in v0.15.0

func GetReloaderReportCRDYAML() []byte

func GetResourceSummaryCRDYAML added in v0.3.0

func GetResourceSummaryCRDYAML() []byte

func GetRoleRequestCRDYAML added in v0.4.0

func GetRoleRequestCRDYAML() []byte

func GetSetCRDYAML added in v0.26.0

func GetSetCRDYAML() []byte

func GetSveltosClusterCRDYAML added in v0.3.0

func GetSveltosClusterCRDYAML() []byte

func GetSveltosLicenseCRDYAML added in v1.0.0

func GetSveltosLicenseCRDYAML() []byte

func GetTechsupportCRDYAML added in v0.45.0

func GetTechsupportCRDYAML() []byte

func WatchCustomResourceDefinition added in v0.3.0

func WatchCustomResourceDefinition(ctx context.Context, config *rest.Config,
	h handler, logger logr.Logger)

WatchCustomResourceDefinition starts a watcher for CustomResourceDefinition. When new CRD is added/deleted/modified, invokes the passed handler Called must have RBAC to watch CustomResourceDefinition

Types

type ChangeType added in v1.0.0

type ChangeType string
const (
	Add    ChangeType = "add"
	Delete ChangeType = "delete"
	Modify ChangeType = "modify"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL