Skip to content

Commit

Permalink
[SAAS-1304] Expose list of features in the license status (projectcal…
Browse files Browse the repository at this point in the history
…ico#462)

Co-authored-by: Alina Militaru <[email protected]>
  • Loading branch information
asincu and asincu authored Feb 9, 2021
1 parent b334ce1 commit ab2cd80
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/crd/crd.projectcalico.org_licensekeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ spec:
format: date-time
nullable: true
type: string
features:
description: List of features that are available via the applied license
items:
type: string
type: array
maxnodes:
description: Maximum Number of Allowed Nodes
type: integer
Expand Down
2 changes: 2 additions & 0 deletions lib/apis/v3/licensekey.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ type LicenseKeyStatus struct {
MaxNodes int `json:"maxnodes,omitempty" yaml:"maxnodes" validate:"omitempty"`
// License package defines type of Calico license that is being enforced
Package LicensePackageType `json:"package,omitempty" yaml:"package" validate:"omitempty"`
// List of features that are available via the applied license
Features []string `json:"features,omitempty" yaml:"features" validate:"omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
14 changes: 14 additions & 0 deletions lib/apis/v3/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lib/apis/v3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab2cd80

Please sign in to comment.