Skip to content

Commit

Permalink
fix: fixing tests and crd validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Apr 12, 2024
1 parent 5b48d42 commit e56f2d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/account_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
// AccountSpec defines the desired state of Account
type AccountSpec struct {
// Type specifies the intended type for this Account object.
// +kubebuilder:validation:Enum=Folder;Account
// +kubebuilder:validation:Enum=folder;account
Type AccountType `json:"type"`

// Namespace is the account should take ownership of
Expand Down
4 changes: 2 additions & 2 deletions chart/crds/core.openmfp.io_accounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ spec:
type:
description: Type specifies the intended type for this Account object.
enum:
- Folder
- Account
- folder
- account
type: string
required:
- creator
Expand Down
2 changes: 1 addition & 1 deletion config/samples/core_v1alpha1_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ metadata:
name: new-account-debug1
namespace: default
spec:
accountRole: Folder
accountRole: folder
displayName: New Demo Account
creator: bastian.echterhoelter@sap.com

0 comments on commit e56f2d3

Please sign in to comment.