-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Update to latest version of CUE #424
base: main
Are you sure you want to change the base?
Update to latest version of CUE #424
Conversation
24a8801
to
42fb187
Compare
#AlertProviderSpec: matchN(1, [{ | ||
type!: _ | ||
address!: _ | ||
}, { | ||
type!: _ | ||
secretRef!: _ | ||
}]) & { | ||
// Hook URL address of this provider | ||
address?: string | ||
|
||
// Alert channel for this provider | ||
channel?: string | ||
|
||
// Http/s proxy of this provider | ||
proxy?: string | ||
secretRef?: { | ||
// Name of the Kubernetes secret | ||
name!: string | ||
} | ||
|
||
// Type of this provider | ||
type?: "slack" | "msteams" | "discord" | "rocket" | "gchat" | ||
|
||
// Bot username for this provider | ||
username?: string | ||
} |
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.
@stefanprodan I suppose this one might be small enough to eyeball? 😅
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.
Yeap, looks great!
42fb187
to
0532660
Compare
curl --location --silent \ https://raw.githubusercontent.com/fluxcd/flagger/v1.38.0/artifacts/flagger/crd.yaml \ --output flagger.crds.yaml
0532660
to
dd63ac3
Compare
Adding a bump for gomega, as it gets only a shy +1 as part of CUE bump, might as well get the very latest. |
10b8da8
to
64bc1d2
Compare
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.
Thanks @errordeveloper! Really happy to see the CRD import working for oneOf
/anyOf
🎉
@@ -3,7 +3,7 @@ module github.com/stefanprodan/timoni | |||
go 1.22.0 | |||
|
|||
require ( | |||
cuelang.org/go v0.9.2 | |||
cuelang.org/go v0.11.0-alpha.1.0.20240910060539-63413629e06b |
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.
We'll need to wait for v0.11.0 to go GA before merging.
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.
Yes... only if one could use build tags in 'go.mod'!
Should we add test cases for all verbs? I think Flagger CRD has only one of them. |
CUE now has resolved the CRD import issue with
oneOf
,not
, andanyOf
(#336) as well required fields. This PR integrates latest revision and updates tests.