2025-03-14 06:10:46 +08:00
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// SPDX-License-Identifier: AGPL-3.0-only
// Code generated by openapi-gen. DO NOT EDIT.
package v0alpha1
import (
common "k8s.io/kube-openapi/pkg/common"
spec "k8s.io/kube-openapi/pkg/validation/spec"
2025-05-13 23:40:17 +08:00
ptr "k8s.io/utils/ptr"
2025-03-14 06:10:46 +08:00
)
func GetOpenAPIDefinitions ( ref common . ReferenceCallback ) map [ string ] common . OpenAPIDefinition {
return map [ string ] common . OpenAPIDefinition {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSCredentials" : schema_pkg_apis_secret_v0alpha1_AWSCredentials ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSKeeperConfig" : schema_pkg_apis_secret_v0alpha1_AWSKeeperConfig ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureCredentials" : schema_pkg_apis_secret_v0alpha1_AzureCredentials ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureKeeperConfig" : schema_pkg_apis_secret_v0alpha1_AzureKeeperConfig ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" : schema_pkg_apis_secret_v0alpha1_CredentialValue ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPCredentials" : schema_pkg_apis_secret_v0alpha1_GCPCredentials ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPKeeperConfig" : schema_pkg_apis_secret_v0alpha1_GCPKeeperConfig ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpCredentials" : schema_pkg_apis_secret_v0alpha1_HashiCorpCredentials ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpKeeperConfig" : schema_pkg_apis_secret_v0alpha1_HashiCorpKeeperConfig ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Keeper" : schema_pkg_apis_secret_v0alpha1_Keeper ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperList" : schema_pkg_apis_secret_v0alpha1_KeeperList ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperSpec" : schema_pkg_apis_secret_v0alpha1_KeeperSpec ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValue" : schema_pkg_apis_secret_v0alpha1_SecureValue ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueList" : schema_pkg_apis_secret_v0alpha1_SecureValueList ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueSpec" : schema_pkg_apis_secret_v0alpha1_SecureValueSpec ( ref ) ,
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueStatus" : schema_pkg_apis_secret_v0alpha1_SecureValueStatus ( ref ) ,
2025-07-02 20:33:23 +08:00
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SystemKeeperConfig" : schema_pkg_apis_secret_v0alpha1_SystemKeeperConfig ( ref ) ,
2025-03-14 06:10:46 +08:00
}
}
func schema_pkg_apis_secret_v0alpha1_AWSCredentials ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "Credentials of remote keepers." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"accessKeyId" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
"secretAccessKey" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
"kmsKeyId" : {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "accessKeyId" , "secretAccessKey" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_AWSKeeperConfig ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "Remote Keepers." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"accessKeyId" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
"secretAccessKey" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
"kmsKeyId" : {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "accessKeyId" , "secretAccessKey" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_AzureCredentials ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"keyVaultName" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"tenantId" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"clientId" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"clientSecret" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
} ,
Required : [ ] string { "keyVaultName" , "tenantId" , "clientId" , "clientSecret" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_AzureKeeperConfig ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"keyVaultName" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"tenantId" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"clientId" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"clientSecret" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
} ,
Required : [ ] string { "keyVaultName" , "tenantId" , "clientId" , "clientSecret" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_CredentialValue ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "Holds the way credentials are obtained." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"secureValueName" : {
SchemaProps : spec . SchemaProps {
Description : "The name of the secure value that holds the actual value." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"valueFromEnv" : {
SchemaProps : spec . SchemaProps {
Description : "The value is taken from the environment variable." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"valueFromConfig" : {
SchemaProps : spec . SchemaProps {
Description : "The value is taken from the Grafana config file." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
} ,
2025-05-13 23:40:17 +08:00
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-unions" : [ ] interface { } {
map [ string ] interface { } {
"fields-to-discriminateBy" : map [ string ] interface { } {
"secureValueName" : "SecureValueName" ,
"valueFromConfig" : "ValueFromConfig" ,
"valueFromEnv" : "ValueFromEnv" ,
} ,
2025-03-14 06:10:46 +08:00
} ,
} ,
} ,
} ,
} ,
}
}
func schema_pkg_apis_secret_v0alpha1_GCPCredentials ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"projectId" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"credentialsFile" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "projectId" , "credentialsFile" } ,
} ,
} ,
}
}
func schema_pkg_apis_secret_v0alpha1_GCPKeeperConfig ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"projectId" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"credentialsFile" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "projectId" , "credentialsFile" } ,
} ,
} ,
}
}
func schema_pkg_apis_secret_v0alpha1_HashiCorpCredentials ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"address" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"token" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
} ,
Required : [ ] string { "address" , "token" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_HashiCorpKeeperConfig ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"address" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"token" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" ) ,
} ,
} ,
} ,
Required : [ ] string { "address" , "token" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_Keeper ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"kind" : {
SchemaProps : spec . SchemaProps {
Description : "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"apiVersion" : {
SchemaProps : spec . SchemaProps {
Description : "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"metadata" : {
SchemaProps : spec . SchemaProps {
Description : "Standard object's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta" ) ,
} ,
} ,
"spec" : {
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-patch-merge-key" : "name" ,
"x-kubernetes-patch-strategy" : "replace" ,
} ,
} ,
SchemaProps : spec . SchemaProps {
Description : "This is the actual keeper schema." ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperSpec" ) ,
} ,
} ,
} ,
2025-05-13 23:40:17 +08:00
Required : [ ] string { "spec" } ,
2025-03-14 06:10:46 +08:00
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperSpec" , "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_KeeperList ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"kind" : {
SchemaProps : spec . SchemaProps {
Description : "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"apiVersion" : {
SchemaProps : spec . SchemaProps {
Description : "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"metadata" : {
SchemaProps : spec . SchemaProps {
Description : "Standard list's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta" ) ,
} ,
} ,
"items" : {
SchemaProps : spec . SchemaProps {
Description : "Slice containing all keepers." ,
Type : [ ] string { "array" } ,
Items : & spec . SchemaOrArray {
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Keeper" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
2025-05-14 19:31:45 +08:00
Required : [ ] string { "items" } ,
2025-03-14 06:10:46 +08:00
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Keeper" , "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_KeeperSpec ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
2025-05-13 23:40:17 +08:00
"description" : {
2025-03-14 06:10:46 +08:00
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "Short description for the Keeper." ,
2025-03-14 06:10:46 +08:00
Default : "" ,
2025-05-13 23:40:17 +08:00
MinLength : ptr . To [ int64 ] ( 1 ) ,
MaxLength : ptr . To [ int64 ] ( 253 ) ,
2025-03-14 06:10:46 +08:00
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"aws" : {
2025-05-13 23:40:17 +08:00
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-map-type" : "atomic" ,
} ,
} ,
2025-03-14 06:10:46 +08:00
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "AWS Keeper Configuration." ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSKeeperConfig" ) ,
2025-03-14 06:10:46 +08:00
} ,
} ,
"azurekeyvault" : {
2025-05-13 23:40:17 +08:00
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-map-type" : "atomic" ,
} ,
} ,
2025-03-14 06:10:46 +08:00
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "Azure Keeper Configuration." ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureKeeperConfig" ) ,
2025-03-14 06:10:46 +08:00
} ,
} ,
"gcp" : {
2025-05-13 23:40:17 +08:00
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-map-type" : "atomic" ,
} ,
} ,
2025-03-14 06:10:46 +08:00
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "GCP Keeper Configuration." ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPKeeperConfig" ) ,
2025-03-14 06:10:46 +08:00
} ,
} ,
"hashivault" : {
2025-05-13 23:40:17 +08:00
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-map-type" : "atomic" ,
} ,
2025-03-14 06:10:46 +08:00
} ,
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "HashiCorp Vault Keeper Configuration." ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpKeeperConfig" ) ,
2025-03-14 06:10:46 +08:00
} ,
} ,
} ,
2025-05-13 23:40:17 +08:00
Required : [ ] string { "description" } ,
2025-03-14 06:10:46 +08:00
} ,
} ,
Dependencies : [ ] string {
2025-05-13 23:40:17 +08:00
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSKeeperConfig" , "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureKeeperConfig" , "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPKeeperConfig" , "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpKeeperConfig" } ,
2025-03-14 06:10:46 +08:00
}
}
func schema_pkg_apis_secret_v0alpha1_SecureValue ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"kind" : {
SchemaProps : spec . SchemaProps {
Description : "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"apiVersion" : {
SchemaProps : spec . SchemaProps {
Description : "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"metadata" : {
SchemaProps : spec . SchemaProps {
Description : "Standard object's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta" ) ,
} ,
} ,
"spec" : {
SchemaProps : spec . SchemaProps {
Description : "This is the actual secure value schema." ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueSpec" ) ,
} ,
} ,
"status" : {
SchemaProps : spec . SchemaProps {
Description : "Read-only observed status of the `SecureValue`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueStatus" ) ,
} ,
} ,
} ,
2025-05-13 23:40:17 +08:00
Required : [ ] string { "spec" } ,
2025-03-14 06:10:46 +08:00
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueSpec" , "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueStatus" , "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_SecureValueList ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"kind" : {
SchemaProps : spec . SchemaProps {
Description : "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"apiVersion" : {
SchemaProps : spec . SchemaProps {
Description : "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"metadata" : {
SchemaProps : spec . SchemaProps {
Description : "Standard list's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" ,
Default : map [ string ] interface { } { } ,
Ref : ref ( "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta" ) ,
} ,
} ,
"items" : {
SchemaProps : spec . SchemaProps {
Description : "Slice containing all secure values. This will NOT output decrypted values." ,
Type : [ ] string { "array" } ,
Items : & spec . SchemaOrArray {
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValue" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
2025-05-14 19:31:45 +08:00
Required : [ ] string { "items" } ,
2025-03-14 06:10:46 +08:00
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValue" , "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta" } ,
}
}
func schema_pkg_apis_secret_v0alpha1_SecureValueSpec ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
2025-05-13 23:40:17 +08:00
"description" : {
2025-03-14 06:10:46 +08:00
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "Short description that explains the purpose of this SecureValue." ,
2025-03-14 06:10:46 +08:00
Default : "" ,
2025-05-13 23:40:17 +08:00
MinLength : ptr . To [ int64 ] ( 1 ) ,
MaxLength : ptr . To [ int64 ] ( 253 ) ,
2025-03-14 06:10:46 +08:00
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"value" : {
SchemaProps : spec . SchemaProps {
2025-07-01 05:28:41 +08:00
Description : "The raw value is only valid for write. Read/List will always be empty. There is no support for mixing `value` and `ref`, you can't create a secret in a third-party keeper with a specified `ref`. Minimum and maximum lengths in bytes." ,
2025-05-13 23:40:17 +08:00
MinLength : ptr . To [ int64 ] ( 1 ) ,
2025-07-01 05:28:41 +08:00
MaxLength : ptr . To [ int64 ] ( 24576 ) ,
2025-03-14 06:10:46 +08:00
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"ref" : {
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "When using a third-party keeper, the `ref` is used to reference a value inside the remote storage. This should not contain sensitive information." ,
MinLength : ptr . To [ int64 ] ( 1 ) ,
MaxLength : ptr . To [ int64 ] ( 1024 ) ,
2025-03-14 06:10:46 +08:00
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"keeper" : {
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "Name of the keeper, being the actual storage of the secure value. If not specified, the default keeper for the namespace will be used." ,
MinLength : ptr . To [ int64 ] ( 1 ) ,
MaxLength : ptr . To [ int64 ] ( 253 ) ,
2025-03-14 06:10:46 +08:00
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"decrypters" : {
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-list-type" : "atomic" ,
} ,
} ,
SchemaProps : spec . SchemaProps {
2025-05-13 23:40:17 +08:00
Description : "The Decrypters that are allowed to decrypt this secret. An empty list means no service can decrypt it." ,
MaxItems : ptr . To [ int64 ] ( 64 ) ,
UniqueItems : true ,
2025-03-14 06:10:46 +08:00
Type : [ ] string { "array" } ,
Items : & spec . SchemaOrArray {
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
} ,
} ,
} ,
2025-05-13 23:40:17 +08:00
Required : [ ] string { "description" } ,
2025-03-14 06:10:46 +08:00
} ,
} ,
}
}
func schema_pkg_apis_secret_v0alpha1_SecureValueStatus ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"phase" : {
SchemaProps : spec . SchemaProps {
Description : "High-level summary of where the `SecureValue` is in its lifecycle. One of: `Pending`, `Succeeded` or `Failed`.\n\nPossible enum values:\n - `\"Failed\"` If the creation of the secret fails, it will move to the `Failed` phase. Check the additional `status` fields for more information on what caused the failure. This state is unrecoverable.\n - `\"Pending\"` When the `SecureValue` is created, it will start in `Pending` phase to create the underlying secret asynchronously.\n - `\"Succeeded\"` If the creation of the secret is successful, it will move to the `Succeeded` phase." ,
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
Enum : [ ] interface { } { "Failed" , "Pending" , "Succeeded" } ,
} ,
} ,
"message" : {
SchemaProps : spec . SchemaProps {
Description : "A human readable message indicating details about why the `SecureValue` is in this phase. Only applicable if the `phase=Failed`." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
2025-05-13 23:40:17 +08:00
"externalId" : {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
2025-03-14 06:10:46 +08:00
} ,
Required : [ ] string { "phase" } ,
} ,
} ,
}
}
2025-07-02 20:33:23 +08:00
func schema_pkg_apis_secret_v0alpha1_SystemKeeperConfig ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "System Keeper." ,
Type : [ ] string { "object" } ,
} ,
} ,
}
}