forked from projectsveltos/libsveltos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigurationbundles.go
More file actions
156 lines (152 loc) · 6.76 KB
/
configurationbundles.go
File metadata and controls
156 lines (152 loc) · 6.76 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Generated by *go generate* - DO NOT EDIT
/*
Copyright 2022-23. projectsveltos.io. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package crd
var ConfigurationBundleFile = "../../manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationbundles.lib.projectsveltos.io.yaml"
var ConfigurationBundleCRD = []byte(`apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.1
name: configurationbundles.lib.projectsveltos.io
spec:
group: lib.projectsveltos.io
names:
kind: ConfigurationBundle
listKind: ConfigurationBundleList
plural: configurationbundles
singular: configurationbundle
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
description: ConfigurationBundle is the Schema for the configurationbundle
API
properties:
apiVersion:
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
kind:
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
metadata:
type: object
spec:
properties:
helmChartVersion:
description: |-
HelmChartVersion indicates the chart version of the Helm release
these resources belong to, if any
type: string
helmIcon:
description: |-
HelmIcon indicates the URL of the icon of the Helm release
these resources belong to, if any
type: string
helmReleaseName:
description: |-
HelmReleaseName indicates the name of the Helm release
these resources belong to, if any
type: string
helmReleaseNamespace:
description: |-
HelmReleaseNamespace indicates the namespace of the Helm release
these resources belong to, if any
type: string
helmReleaseUninstall:
default: false
description: |-
HelmReleaseUninstall, when true, indicates that these resources are
part of a Helm release uninstallation process.
This can be used to trigger specific cleanup or post-uninstall hooks.
type: boolean
helmRepoURL:
description: |-
HelmRepoURL indicates the repo URL of the Helm release
these resources belong to, if any
type: string
isLastHelmReleaseBundle:
default: false
description: |-
IsLastHelmReleaseBundle, when true, indicates that this ConfigurationBundle
is the final bundle in the sequence for the associated Helm release.
This can be used to trigger finalization steps, such as marking the
release as fully deployed or completely uninstalled in external tracking systems.
type: boolean
notTracked:
description: |-
NotTracked, when true, signifies that the resources managed by the
ConfigurationBundles should not be tracked for conflicts
with other configurations and will not be automatically removed when the
ConfigurationGroup is deleted. This is intended for resources like
Sveltos CRDs or the agents Sveltos deploys in the managed clusters.
type: boolean
referenceTier:
description: |-
ReferenceTier indicates the tier of the object (ConfigMap, Secret, etc)
referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
format: int32
type: integer
referencedObjectKind:
description: |-
ReferencedObjectKind is the Kind of the object (ConfigMap, Secret, etc)
referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
type: string
referencedObjectName:
description: |-
ReferencedObjectName is the Name of the object (ConfigMap, Secret, etc)
referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
type: string
referencedObjectNamespace:
description: |-
ReferencedObjectNamespace is the Namespace of the object (ConfigMap, Secret, etc)
referenced by PolicyRefs/KustomizationRef which contributed to this ConfigurationBundle.
type: string
resources:
description: |-
Resources contains all resources that need to be deployed.
Content is either YAML or JSON
items:
type: string
type: array
x-kubernetes-list-type: atomic
timeout:
description: time to wait for Kubernetes operation (like Jobs for
hooks)
type: string
type: object
status:
properties:
hash:
description: |-
Hash represents of a unique value for the content stored in
the ConfigurationBundle
format: byte
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
`)