You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Version is an optional semver constraint on the package version. If not specified, the latest version available of the package will be installed.
58
-
// If specified, the specific version of the package will be installed so long as it is available in any of the content sources available.
59
-
// Examples: 1.2.3, 1.0.0-alpha, 1.0.0-rc.1
77
+
// version is an optional semver constraint (a specific version or range of versions). When unspecified, the latest version available will be installed.
78
+
//
79
+
// Acceptable version ranges are no longer than 64 characters.
80
+
// Version ranges are composed of comma- or space-delimited values and one or
81
+
// more comparison operators, known as comparison strings. Additional
82
+
// comparison strings can be added using the OR operator (||).
83
+
//
84
+
// # Range Comparisons
85
+
//
86
+
// To specify a version range, you can use a comparison string like ">=3.0,
87
+
// <3.6". When specifying a range, automatic updates will occur within that
88
+
// range. The example comparison string means "install any version greater than
89
+
// or equal to 3.0.0 but less than 3.6.0.". It also states intent that if any
90
+
// upgrades are available within the version range after initial installation,
91
+
// those upgrades should be automatically performed.
92
+
//
93
+
// # Pinned Versions
94
+
//
95
+
// To specify an exact version to install you can use a version range that
96
+
// "pins" to a specific version. When pinning to a specific version, no
97
+
// automatic updates will occur. An example of a pinned version range is
98
+
// "0.6.0", which means "only install version 0.6.0 and never
99
+
// upgrade from this version".
100
+
//
101
+
// # Basic Comparison Operators
102
+
//
103
+
// The basic comparison operators and their meanings are:
104
+
// - "=", equal (not aliased to an operator)
105
+
// - "!=", not equal
106
+
// - "<", less than
107
+
// - ">", greater than
108
+
// - ">=", greater than OR equal to
109
+
// - "<=", less than OR equal to
110
+
//
111
+
// # Wildcard Comparisons
112
+
//
113
+
// You can use the "x", "X", and "*" characters as wildcard characters in all
114
+
// comparison operations. Some examples of using the wildcard characters:
115
+
// - "1.2.x", "1.2.X", and "1.2.*" is equivalent to ">=1.2.0, < 1.3.0"
116
+
// - ">= 1.2.x", ">= 1.2.X", and ">= 1.2.*" is equivalent to ">= 1.2.0"
117
+
// - "<= 2.x", "<= 2.X", and "<= 2.*" is equivalent to "< 3"
118
+
// - "x", "X", and "*" is equivalent to ">= 0.0.0"
119
+
//
120
+
// # Patch Release Comparisons
121
+
//
122
+
// When you want to specify a minor version up to the next major version you
123
+
// can use the "~" character to perform patch comparisons. Some examples:
124
+
// - "~1.2.3" is equivalent to ">=1.2.3, <1.3.0"
125
+
// - "~1" and "~1.x" is equivalent to ">=1, <2"
126
+
// - "~2.3" is equivalent to ">=2.3, <2.4"
127
+
// - "~1.2.x" is equivalent to ">=1.2.0, <1.3.0"
128
+
//
129
+
// # Major Release Comparisons
130
+
//
131
+
// You can use the "^" character to make major release comparisons after a
132
+
// stable 1.0.0 version is published. If there is no stable version published, // minor versions define the stability level. Some examples:
133
+
// - "^1.2.3" is equivalent to ">=1.2.3, <2.0.0"
134
+
// - "^1.2.x" is equivalent to ">=1.2.0, <2.0.0"
135
+
// - "^2.3" is equivalent to ">=2.3, <3"
136
+
// - "^2.x" is equivalent to ">=2.0.0, <3"
137
+
// - "^0.2.3" is equivalent to ">=0.2.3, <0.3.0"
138
+
// - "^0.2" is equivalent to ">=0.2.0, <0.3.0"
139
+
// - "^0.0.3" is equvalent to ">=0.0.3, <0.0.4"
140
+
// - "^0.0" is equivalent to ">=0.0.0, <0.1.0"
141
+
// - "^0" is equivalent to ">=0.0.0, <1.0.0"
142
+
//
143
+
// # OR Comparisons
144
+
// You can use the "||" character to represent an OR operation in the version
145
+
// range. Some examples:
146
+
// - ">=1.2.3, <2.0.0 || >3.0.0"
147
+
// - "^0 || ^3 || ^5"
60
148
//
61
149
// For more information on semver, please see https://semver.org/
//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="installNamespace is immutable"
84
-
//
85
-
// installNamespace is the namespace where the bundle should be installed. However, note that
86
-
// the bundle may contain resources that are cluster-scoped or that are
87
-
// installed in a different namespace. This namespace is expected to exist.
88
259
InstallNamespacestring`json:"installNamespace"`
89
260
90
-
//+kubebuilder:Optional
91
-
// Preflight defines the configuration of preflight checks.
261
+
// preflight is an optional field that can be used to configure the preflight checks run before installation or upgrade of the content for the package specified in the packageName field.
262
+
//
263
+
// When specified, it overrides the default configuration of the preflight checks that are required to execute successfully during an install/upgrade operation.
264
+
//
265
+
// When not specified, the default configuration for each preflight check will be used.
// conditions is a representation of the current state for this ClusterExtension.
435
+
// The status is represented by a set of "conditions".
436
+
//
437
+
// Each condition is generally structured in the following format:
438
+
// - Type: a string representation of the condition type. More or less the condition "name".
439
+
// - Status: a string representation of the state of the condition. Can be one of ["True", "False", "Unknown"].
440
+
// - Reason: a string representation of the reason for the current state of the condition. Typically useful for building automation around particular Type+Reason combinations.
441
+
// - Message: a human readable message that further elaborates on the state of the condition
442
+
//
443
+
// The current set of condition types are:
444
+
// - "Installed", represents whether or not the package referenced in the spec.packageName field has been installed
445
+
// - "Resolved", represents whether or not a bundle was found that satisfies the selection criteria outlined in the spec
446
+
// - "Deprecated", represents an aggregation of the PackageDeprecated, ChannelDeprecated, and BundleDeprecated condition types.
447
+
// - "PackageDeprecated", represents whether or not the package specified in the spec.packageName field has been deprecated
448
+
// - "ChannelDeprecated", represents whether or not the channel specified in spec.channel has been deprecated
449
+
// - "BundleDeprecated", represents whether or not the bundle installed is deprecated
450
+
// - "Unpacked", represents whether or not the bundle contents have been successfully unpacked
451
+
//
452
+
// The current set of reasons are:
453
+
// - "ResolutionFailed", this reason is set on the "Resolved" condition when an error has occurred during resolution.
454
+
// - "InstallationFailed", this reason is set on the "Installed" condition when an error has occurred during installation
455
+
// - "Success", this reason is set on the "Resolved" and "Installed" conditions when resolution and installation/upgrading is successful
456
+
// - "UnpackSuccess", this reason is set on the "Unpacked" condition when unpacking a bundle's content is successful
457
+
// - "UnpackFailed", this reason is set on the "Unpacked" condition when an error has been encountered while unpacking the contents of a bundle
0 commit comments