Skip to content

Commit

Permalink
Merge pull request #137 from gianlucam76/release-0.7
Browse files Browse the repository at this point in the history
Release 0.7
  • Loading branch information
gianlucam76 authored Mar 17, 2023
2 parents e8dc27c + 336b77a commit 60bec57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/v1alpha1/classifier_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ type DeployedResourceConstraint struct {
// MaxCount is the maximun number of resources to match
// +optional
MaxCount *int `json:"maxCount,omitempty"`

// Script is a text containing a lua script.
// Must return struct with field "matching"
// representing whether object is a match.
// +optional
Script string `json:"script,omitempty"`
}

type KubernetesComparison string
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/lib.projectsveltos.io_classifiers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ spec:
description: Namespace of the resource deployed in the 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 "matching" representing whether object
is a match.
type: string
version:
description: Version of the resource deployed in the Cluster.
type: string
Expand Down
5 changes: 5 additions & 0 deletions lib/crd/classifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ spec:
description: Namespace of the resource deployed in the 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 "matching" representing whether object
is a match.
type: string
version:
description: Version of the resource deployed in the Cluster.
type: string
Expand Down

0 comments on commit 60bec57

Please sign in to comment.