A breaking change was introduced by this grafana-app-sdk PR: https://github.com/grafana/grafana-app-sdk/pull/795 This PR refactors the definition of our CUE files (manifest and kinds) to match the new model in the latest version of grafana-app-sdk.
36 lines
584 B
CUE
36 lines
584 B
CUE
package kinds
|
|
|
|
import (
|
|
"github.com/grafana/grafana/apps/iam/kinds/v0alpha1"
|
|
)
|
|
|
|
rolebindingKind: {
|
|
kind: "RoleBinding"
|
|
pluralName: "RoleBindings"
|
|
codegen: {
|
|
ts: { enabled: false }
|
|
go: { enabled: true }
|
|
}
|
|
}
|
|
|
|
globalrolebindingKind: {
|
|
kind: "GlobalRoleBinding"
|
|
pluralName: "GlobalRoleBindings"
|
|
codegen: {
|
|
ts: { enabled: false }
|
|
go: { enabled: true }
|
|
}
|
|
}
|
|
|
|
rolebindingv0alpha1: rolebindingKind & {
|
|
schema: {
|
|
spec: v0alpha1.RoleBindingSpec
|
|
}
|
|
}
|
|
|
|
globalrolebindingv0alpha1: globalrolebindingKind & {
|
|
schema: {
|
|
spec: v0alpha1.GlobalRoleBindingSpec
|
|
}
|
|
}
|