2019-02-13 15:51:08 -05:00
// Module included in the following assemblies:
//
// * openshift_images/configuring_samples_operator.adoc
2019-05-13 08:55:00 +10:00
[id="samples-operator-configuration_{context}"]
2020-09-15 11:33:37 -04:00
= Cluster Samples Operator configuration parameters
2019-02-13 15:51:08 -05:00
The samples resource offers the following configuration fields:
2019-05-16 13:16:45 -04:00
[cols="3a,8a",options="header"]
|===
|Parameter |Description
2019-10-24 15:38:51 -04:00
|`managementState`
2020-09-15 11:33:37 -04:00
|`Managed`: The Cluster Samples Operator updates the samples as the configuration
2019-02-26 14:58:52 -05:00
dictates.
2019-05-16 13:16:45 -04:00
2020-09-15 11:33:37 -04:00
`Unmanaged`: The Cluster Samples Operator ignores updates to its configuration
2020-11-05 21:32:48 -05:00
resource object and any imagestreams or templates in the `openshift` namespace.
2019-05-16 13:16:45 -04:00
2020-09-15 11:33:37 -04:00
`Removed`: The Cluster Samples Operator removes the set of `Managed` imagestreams
2020-11-05 21:32:48 -05:00
and templates in the `openshift` namespace. It ignores new samples created by the
2019-02-26 14:58:52 -05:00
cluster administrator or any samples in the skipped lists. After the removals are
2020-09-15 11:33:37 -04:00
complete, the Cluster Samples Operator works like it is in the `Unmanaged` state and ignores
2019-02-26 14:58:52 -05:00
any watch events on the sample resources, imagestreams, or templates.
2019-05-16 13:16:45 -04:00
2019-10-24 15:38:51 -04:00
|`samplesRegistry`
2020-09-15 11:33:37 -04:00
|Allows you to specify which registry is accessed by imagestreams for their image content. `samplesRegistry` defaults to `registry.redhat.io` for {product-title}.
2019-05-16 13:16:45 -04:00
2019-02-13 15:51:08 -05:00
[NOTE]
====
Creation or update of RHEL content does not commence if the secret for pull
2019-02-26 14:58:52 -05:00
access is not in place when either `Samples Registry` is not explicitly set (i.e.,
the empty string), or when it is set to registry.redhat.io. In both cases, image
imports will work off of registry.redhat.io, which requires credentials.
2019-02-13 15:51:08 -05:00
2019-02-26 14:58:52 -05:00
Creation or update of RHEL content is not gated by the existence of the pull
secret if the `Samples Registry` is overridden to a value other than the empty
string or registry.redhat.io.
2019-02-13 15:51:08 -05:00
====
2019-05-16 13:16:45 -04:00
2019-10-24 15:38:51 -04:00
|`architectures`
2020-09-15 11:33:37 -04:00
|Placeholder to choose an architecture type.
2019-05-16 13:16:45 -04:00
2019-10-24 15:38:51 -04:00
|`skippedImagestreams`
2020-09-15 11:33:37 -04:00
|Imagestreams that are in the Cluster Samples Operator’ s inventory but that the cluster
administrator wants the Operator to ignore or not manage. You can add a list of imagestream names to this parameter. For example, `["httpd","perl"]`.
2019-05-16 13:16:45 -04:00
2019-10-24 15:38:51 -04:00
|`skippedTemplates`
2020-09-15 11:33:37 -04:00
|Templates that are in the Cluster Samples Operator's inventory, but that
2019-05-16 13:16:45 -04:00
the cluster administrator wants the Operator to ignore or not manage.
|===
2019-02-13 15:51:08 -05:00
2019-02-26 14:58:52 -05:00
Secret, imagestream, and template watch events can come in before the initial
2020-09-15 11:33:37 -04:00
samples resource object is created, the Cluster Samples Operator detects and re-queues the
2019-02-13 15:51:08 -05:00
event.
== Configuration restrictions
2020-09-15 11:33:37 -04:00
When the Cluster Samples Operator starts supporting multiple architectures, the
2019-02-26 14:58:52 -05:00
architecture list is not allowed to be changed while in the `Managed` state.
2019-02-13 15:51:08 -05:00
In order to change the architectures values, a cluster administrator must:
2019-02-26 14:58:52 -05:00
* Mark the `Management State` as `Removed`, saving the change.
* In a subsequent change, edit the architecture and change the `Management State`
2019-02-13 15:51:08 -05:00
back to `Managed`.
2020-09-15 11:33:37 -04:00
The Cluster Samples Operator still processes secrets while in `Removed` state. You can
2019-02-26 14:58:52 -05:00
create the secret before switching to `Removed`, while in `Removed` before
switching to `Managed`, or after switching to `Managed` state (though there are
delays in creating the samples until the secret event is processed if you create
2019-05-16 13:16:45 -04:00
the secret after switching to `Managed`). This helps facilitate the
2019-02-26 14:58:52 -05:00
changing of the registry, where you choose to remove all the samples before
switching to insure a clean slate (removing before switching is not required).
2019-02-13 15:51:08 -05:00
== Conditions
The samples resource maintains the following conditions in its status:
2019-05-16 13:16:45 -04:00
[cols="3a,8a",options="header"]
|===
|Condition |Description
|`SamplesExists`
2020-11-05 21:32:48 -05:00
|Indicates the samples are created in the `openshift` namespace.
2019-05-16 13:16:45 -04:00
|`ImageChangesInProgress`
|`True` when imagestreams are created or updated, but
2019-02-13 15:51:08 -05:00
not all of the tag spec generations and tag status generations match.
2019-05-16 13:16:45 -04:00
`False` when all of the generations match, or unrecoverable errors occurred during
2019-02-13 15:51:08 -05:00
import, the last seen error is in the message field. The list of pending
2019-02-26 14:58:52 -05:00
imagestreams is in the reason field.
2019-05-16 13:16:45 -04:00
|`ConfigurationValid`
|`True` or `False` based on whether any of the restricted changes noted
previously are submitted.
|`RemovePending`
2019-06-11 16:32:59 -04:00
|Indicator that there is a `Management State: Removed` setting pending, but the
2020-09-15 11:33:37 -04:00
Cluster Samples Operator is waiting for the deletions to complete.
2019-05-16 13:16:45 -04:00
|`ImportImageErrorsExist`
|Indicator of which imagestreams had errors during the image import phase for
one of their tags.
`True` when an error has occurred. The list of imagestreams with an error is
2019-02-13 15:51:08 -05:00
in the reason field. The details of each error reported are in the
message field.
2019-05-16 13:16:45 -04:00
|`MigrationInProgress`
2020-09-15 11:33:37 -04:00
|`True` when the Cluster Samples Operator detects that the version is different than the
Cluster Samples Operator version with which the current samples set are installed.
2019-05-16 13:16:45 -04:00
|===