-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathcurrent-types.go
More file actions
60 lines (51 loc) · 1.95 KB
/
current-types.go
File metadata and controls
60 lines (51 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package api
import (
bsv1 "github.com/redhat-developer/rhdh-operator/api/v1alpha6"
)
// Type aliases to decouple application code from specific API versions.
// When upgrading API versions, only the import in this file needs to be updated.
//
// All application code should import from this package instead of importing
// versioned API packages directly. For example:
//
// import "github.com/redhat-developer/rhdh-operator/api"
//
// Then use api.Backstage, api.BackstageSpec, etc.
type (
// Core types
Backstage = bsv1.Backstage
BackstageSpec = bsv1.BackstageSpec
BackstageStatus = bsv1.BackstageStatus
BackstageList = bsv1.BackstageList
// Condition types
BackstageConditionType = bsv1.BackstageConditionType
BackstageConditionReason = bsv1.BackstageConditionReason
// Spec components
Flavour = bsv1.Flavour
Application = bsv1.Application
Database = bsv1.Database
AppConfig = bsv1.AppConfig
ExtraEnvs = bsv1.ExtraEnvs
ExtraFiles = bsv1.ExtraFiles
Route = bsv1.Route
RuntimeConfig = bsv1.RuntimeConfig
BackstageDeployment = bsv1.BackstageDeployment
Monitoring = bsv1.Monitoring
// Reference types
EnvObjectRef = bsv1.EnvObjectRef
FileObjectRef = bsv1.FileObjectRef
PvcRef = bsv1.PvcRef
Env = bsv1.Env
// Other types
TLS = bsv1.TLS
)
// Condition constants
const (
BackstageConditionTypeDeployed BackstageConditionType = bsv1.BackstageConditionTypeDeployed
BackstageConditionReasonDeployed BackstageConditionReason = bsv1.BackstageConditionReasonDeployed
BackstageConditionReasonFailed BackstageConditionReason = bsv1.BackstageConditionReasonFailed
BackstageConditionReasonInProgress BackstageConditionReason = bsv1.BackstageConditionReasonInProgress
)
// AddToScheme adds the current API version's types to the scheme.
// This delegates to the underlying versioned API's AddToScheme.
var AddToScheme = bsv1.AddToScheme