-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings #146
Settings #146
Conversation
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
pkg/property/validation.go
Outdated
var ok = false | ||
for _, e := range enum { | ||
if value == e { | ||
ok = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
early break possible
This reverts commit 3057c93.
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
This reverts commit d7e62dd.
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
This can be tried live via |
pkg/crd/crd.go
Outdated
@@ -148,6 +156,43 @@ func GenerateCRDs(caBundle string, reference apiextv1.ServiceReference) []crder. | |||
IsNamespaced(true). | |||
AddVersion("v1", &v1.DynamicBindConfiguration{}, nil) | |||
}), | |||
hobbyfarmCRD(&v1.Scope{}, func(c *crder.CRD) { | |||
c.IsNamespaced(true).AddVersion("v1", &v1.Scope{}, func(cv *crder.Version) { | |||
cv.WithColumn("Name", ".displayName").IsServed(true).IsStored(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would rename this column to "Display Name", otherwise it can be confused with the default column "Name" that prints the metadata.name
Same for the Setting CRD
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
This PR adds support for Settings in HobbyFarm. Settings can be used for things like user preferences (e.g. dark mode), global settings (e.g. registration disabled)
This also lays the groundwork for upcoming 3rd party integrations that can leverage settings to integrate w/ HobbyFarm
What this PR does / why we need it:
Which issue(s) this PR fixes: