mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove CRD generation (#67286)
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
# This CRD is generated with an empty schema body because Grafana's
|
||||
# code generators currently produce OpenAPI that Kubernetes will not
|
||||
# accept, despite being valid.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: dashboards.dashboard.core.grafana.com
|
||||
spec:
|
||||
group: dashboard.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: Dashboard
|
||||
plural: dashboards
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/dashboard"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the Dashboard kind.
|
||||
//
|
||||
//go:embed dashboard.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// Dashboard is the Go CRD representation of a single Dashboard object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type Dashboard struct {
|
||||
k8ssys.Base[dashboard.Dashboard]
|
||||
}
|
||||
|
||||
// DashboardList is the Go CRD representation of a list Dashboard objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type DashboardList struct {
|
||||
k8ssys.ListBase[dashboard.Dashboard]
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: librarypanels.librarypanel.core.grafana.com
|
||||
spec:
|
||||
group: librarypanel.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
description:
|
||||
description: Panel description
|
||||
type: string
|
||||
folderUid:
|
||||
description: Folder UID
|
||||
type: string
|
||||
meta:
|
||||
description: Object storage metadata
|
||||
properties:
|
||||
connectedDashboards:
|
||||
format: int64
|
||||
type: integer
|
||||
created:
|
||||
format: date-time
|
||||
type: string
|
||||
createdBy:
|
||||
properties:
|
||||
avatarUrl:
|
||||
type: string
|
||||
id:
|
||||
format: int64
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- avatarUrl
|
||||
type: object
|
||||
folderName:
|
||||
type: string
|
||||
folderUid:
|
||||
type: string
|
||||
updated:
|
||||
format: date-time
|
||||
type: string
|
||||
updatedBy:
|
||||
properties:
|
||||
avatarUrl:
|
||||
type: string
|
||||
id:
|
||||
format: int64
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- avatarUrl
|
||||
type: object
|
||||
required:
|
||||
- folderName
|
||||
- folderUid
|
||||
- connectedDashboards
|
||||
- created
|
||||
- updated
|
||||
- createdBy
|
||||
- updatedBy
|
||||
type: object
|
||||
model:
|
||||
description: |-
|
||||
TODO: should be the same panel schema defined in dashboard
|
||||
Typescript: Omit<Panel, 'gridPos' | 'id' | 'libraryPanel'>;
|
||||
type: object
|
||||
name:
|
||||
description: Panel name (also saved in the model)
|
||||
minLength: 1
|
||||
type: string
|
||||
schemaVersion:
|
||||
description: Dashboard version when this was saved (zero if unknown)
|
||||
maximum: 65535
|
||||
minimum: 0
|
||||
type: integer
|
||||
type:
|
||||
description: The panel type (from inside the model)
|
||||
minLength: 1
|
||||
type: string
|
||||
uid:
|
||||
description: Library element UID
|
||||
type: string
|
||||
version:
|
||||
description: panel version, incremented each time the dashboard is updated.
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- uid
|
||||
- name
|
||||
- type
|
||||
- version
|
||||
- model
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: LibraryPanel
|
||||
plural: librarypanels
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/librarypanel"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the LibraryPanel kind.
|
||||
//
|
||||
//go:embed librarypanel.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// LibraryPanel is the Go CRD representation of a single LibraryPanel object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type LibraryPanel struct {
|
||||
k8ssys.Base[librarypanel.LibraryPanel]
|
||||
}
|
||||
|
||||
// LibraryPanelList is the Go CRD representation of a list LibraryPanel objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type LibraryPanelList struct {
|
||||
k8ssys.ListBase[librarypanel.LibraryPanel]
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: playlists.playlist.core.grafana.com
|
||||
spec:
|
||||
group: playlist.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
interval:
|
||||
default: 5m
|
||||
description: |-
|
||||
Interval sets the time between switching views in a playlist.
|
||||
FIXME: Is this based on a standardized format or what options are available? Can datemath be used?
|
||||
type: string
|
||||
items:
|
||||
description: |-
|
||||
The ordered list of items that the playlist will iterate over.
|
||||
FIXME! This should not be optional, but changing it makes the godegen awkward
|
||||
items:
|
||||
properties:
|
||||
title:
|
||||
description: Title is an unused property -- it will be removed in the future
|
||||
type: string
|
||||
type:
|
||||
description: Type of the item.
|
||||
enum:
|
||||
- dashboard_by_uid
|
||||
- dashboard_by_id
|
||||
- dashboard_by_tag
|
||||
type: string
|
||||
value:
|
||||
description: |-
|
||||
Value depends on type and describes the playlist item.
|
||||
|
||||
- dashboard_by_id: The value is an internal numerical identifier set by Grafana. This
|
||||
is not portable as the numerical identifier is non-deterministic between different instances.
|
||||
Will be replaced by dashboard_by_uid in the future. (deprecated)
|
||||
- dashboard_by_tag: The value is a tag which is set on any number of dashboards. All
|
||||
dashboards behind the tag will be added to the playlist.
|
||||
- dashboard_by_uid: The value is the dashboard UID
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- value
|
||||
type: object
|
||||
type: array
|
||||
name:
|
||||
description: Name of the playlist.
|
||||
type: string
|
||||
uid:
|
||||
description: |-
|
||||
Unique playlist identifier. Generated on creation, either by the
|
||||
creator of the playlist of by the application.
|
||||
type: string
|
||||
required:
|
||||
- uid
|
||||
- name
|
||||
- interval
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: Playlist
|
||||
plural: playlists
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/playlist"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the Playlist kind.
|
||||
//
|
||||
//go:embed playlist.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// Playlist is the Go CRD representation of a single Playlist object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type Playlist struct {
|
||||
k8ssys.Base[playlist.Playlist]
|
||||
}
|
||||
|
||||
// PlaylistList is the Go CRD representation of a list Playlist objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type PlaylistList struct {
|
||||
k8ssys.ListBase[playlist.Playlist]
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: preferencess.preferences.core.grafana.com
|
||||
spec:
|
||||
group: preferences.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
homeDashboardUID:
|
||||
description: UID for the home dashboard
|
||||
type: string
|
||||
language:
|
||||
description: Selected language (beta)
|
||||
type: string
|
||||
queryHistory:
|
||||
description: Explore query history preferences
|
||||
properties:
|
||||
homeTab:
|
||||
description: 'one of: '''' | ''query'' | ''starred'';'
|
||||
type: string
|
||||
type: object
|
||||
theme:
|
||||
description: light, dark, empty is default
|
||||
type: string
|
||||
timezone:
|
||||
description: |-
|
||||
The timezone selection
|
||||
TODO: this should use the timezone defined in common
|
||||
type: string
|
||||
weekStart:
|
||||
description: day of the week (sunday, monday, etc)
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: Preferences
|
||||
plural: preferencess
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/preferences"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the Preferences kind.
|
||||
//
|
||||
//go:embed preferences.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// Preferences is the Go CRD representation of a single Preferences object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type Preferences struct {
|
||||
k8ssys.Base[preferences.Preferences]
|
||||
}
|
||||
|
||||
// PreferencesList is the Go CRD representation of a list Preferences objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type PreferencesList struct {
|
||||
k8ssys.ListBase[preferences.Preferences]
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: publicdashboards.publicdashboard.core.grafana.com
|
||||
spec:
|
||||
group: publicdashboard.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
accessToken:
|
||||
description: Unique public access token
|
||||
type: string
|
||||
annotationsEnabled:
|
||||
description: Flag that indicates if annotations are enabled
|
||||
type: boolean
|
||||
dashboardUid:
|
||||
description: Dashboard unique identifier referenced by this public dashboard
|
||||
type: string
|
||||
isEnabled:
|
||||
description: Flag that indicates if the public dashboard is enabled
|
||||
type: boolean
|
||||
timeSelectionEnabled:
|
||||
description: Flag that indicates if the time range picker is enabled
|
||||
type: boolean
|
||||
uid:
|
||||
description: Unique public dashboard identifier
|
||||
type: string
|
||||
required:
|
||||
- uid
|
||||
- dashboardUid
|
||||
- isEnabled
|
||||
- annotationsEnabled
|
||||
- timeSelectionEnabled
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: PublicDashboard
|
||||
plural: publicdashboards
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/publicdashboard"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the PublicDashboard kind.
|
||||
//
|
||||
//go:embed publicdashboard.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// PublicDashboard is the Go CRD representation of a single PublicDashboard object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type PublicDashboard struct {
|
||||
k8ssys.Base[publicdashboard.PublicDashboard]
|
||||
}
|
||||
|
||||
// PublicDashboardList is the Go CRD representation of a list PublicDashboard objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type PublicDashboardList struct {
|
||||
k8ssys.ListBase[publicdashboard.PublicDashboard]
|
||||
}
|
||||
@@ -1,94 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: serviceaccounts.serviceaccount.core.grafana.com
|
||||
spec:
|
||||
group: serviceaccount.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
accessControl:
|
||||
additionalProperties:
|
||||
type: boolean
|
||||
description: AccessControl metadata associated with a given resource.
|
||||
type: object
|
||||
avatarUrl:
|
||||
description: |-
|
||||
AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front
|
||||
of the service account.
|
||||
type: string
|
||||
created:
|
||||
description: Created indicates when the service account was created.
|
||||
format: date-time
|
||||
type: string
|
||||
id:
|
||||
description: ID is the unique identifier of the service account in the database.
|
||||
format: int64
|
||||
type: integer
|
||||
isDisabled:
|
||||
description: IsDisabled indicates if the service account is disabled.
|
||||
type: boolean
|
||||
login:
|
||||
description: Login of the service account.
|
||||
type: string
|
||||
name:
|
||||
description: Name of the service account.
|
||||
type: string
|
||||
orgId:
|
||||
description: OrgId is the ID of an organisation the service account belongs to.
|
||||
format: int64
|
||||
type: integer
|
||||
role:
|
||||
description: Role is the Grafana organization role of the service account which can be 'Viewer', 'Editor', 'Admin'.
|
||||
enum:
|
||||
- Admin
|
||||
- Editor
|
||||
- Viewer
|
||||
type: string
|
||||
teams:
|
||||
description: Teams is a list of teams the service account belongs to.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
tokens:
|
||||
description: |-
|
||||
Tokens is the number of active tokens for the service account.
|
||||
Tokens are used to authenticate the service account against Grafana.
|
||||
format: int64
|
||||
type: integer
|
||||
updated:
|
||||
description: Updated indicates when the service account was updated.
|
||||
format: date-time
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- orgId
|
||||
- name
|
||||
- login
|
||||
- isDisabled
|
||||
- role
|
||||
- tokens
|
||||
- avatarUrl
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: ServiceAccount
|
||||
plural: serviceaccounts
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/serviceaccount"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the ServiceAccount kind.
|
||||
//
|
||||
//go:embed serviceaccount.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// ServiceAccount is the Go CRD representation of a single ServiceAccount object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type ServiceAccount struct {
|
||||
k8ssys.Base[serviceaccount.ServiceAccount]
|
||||
}
|
||||
|
||||
// ServiceAccountList is the Go CRD representation of a list ServiceAccount objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type ServiceAccountList struct {
|
||||
k8ssys.ListBase[serviceaccount.ServiceAccount]
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
# Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
#
|
||||
# Generated by:
|
||||
# kinds/gen.go
|
||||
# Using jennies:
|
||||
# YamlCRDJenny
|
||||
#
|
||||
# Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
kind: CustomResourceDefinition
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
metadata:
|
||||
name: teams.team.core.grafana.com
|
||||
spec:
|
||||
group: team.core.grafana.com
|
||||
versions:
|
||||
- name: v0-0alpha1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
properties:
|
||||
spec:
|
||||
properties:
|
||||
accessControl:
|
||||
additionalProperties:
|
||||
type: boolean
|
||||
description: AccessControl metadata associated with a given resource.
|
||||
type: object
|
||||
avatarUrl:
|
||||
description: AvatarUrl is the team's avatar URL.
|
||||
type: string
|
||||
created:
|
||||
description: Created indicates when the team was created.
|
||||
format: date-time
|
||||
type: string
|
||||
email:
|
||||
description: Email of the team.
|
||||
type: string
|
||||
memberCount:
|
||||
description: MemberCount is the number of the team members.
|
||||
format: int64
|
||||
type: integer
|
||||
name:
|
||||
description: Name of the team.
|
||||
type: string
|
||||
orgId:
|
||||
description: OrgId is the ID of an organisation the team belongs to.
|
||||
format: int64
|
||||
type: integer
|
||||
permission:
|
||||
description: TODO - it seems it's a team_member.permission, unlikely it should belong to the team kind
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 4
|
||||
type: integer
|
||||
updated:
|
||||
description: Updated indicates when the team was updated.
|
||||
format: date-time
|
||||
type: string
|
||||
required:
|
||||
- orgId
|
||||
- name
|
||||
- memberCount
|
||||
- permission
|
||||
- created
|
||||
- updated
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
names:
|
||||
kind: Team
|
||||
plural: teams
|
||||
scope: Namespaced
|
||||
@@ -1,34 +0,0 @@
|
||||
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
||||
//
|
||||
// Generated by:
|
||||
// kinds/gen.go
|
||||
// Using jennies:
|
||||
// CRDTypesJenny
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
package crd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/grafana/grafana/pkg/kinds/team"
|
||||
"github.com/grafana/kindsys/k8ssys"
|
||||
)
|
||||
|
||||
// The CRD YAML representation of the Team kind.
|
||||
//
|
||||
//go:embed team.crd.yml
|
||||
var CRDYaml []byte
|
||||
|
||||
// Team is the Go CRD representation of a single Team object.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type Team struct {
|
||||
k8ssys.Base[team.Team]
|
||||
}
|
||||
|
||||
// TeamList is the Go CRD representation of a list Team objects.
|
||||
// It implements [runtime.Object], and is used in k8s scheme construction.
|
||||
type TeamList struct {
|
||||
k8ssys.ListBase[team.Team]
|
||||
}
|
||||
Reference in New Issue
Block a user