XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Release Notes
    • Hide
      = DevWorkspace Operator resource pruner

      Starting from DevWorkspace Operator version `0.34.0`, you can configure a pruner that automatically cleans up DevWorkspace objects that were not in use for a certain period of time. To set the pruner up, configure the `DevWorkspaceOperatorConfig` object as follows:

      [source,code]
      ----
      apiVersion: controller.devfile.io/v1alpha1
      kind: DevWorkspaceOperatorConfig
      metadata:
        name: devworkspace-operator-config
        namespace: openshift-operators <1>
      config:
        workspace:
          cleanupCronJob:
            enabled: true
            dryRun: false
            retainTime: 2592000 <2>
            schedule: “0 0 1 * *” <3>
      ----
      <1> The DevWorkspace Operator install namespace. By default, this is openshift-operators.
      <2> By default, if a workspace was not started for more than 30 days, it will be marked for deletion.
      <3> By default, the pruner will run once per month.

      You can find more details about DevWorkspace Operator Configuration in the link:https://github.com/devfile/devworkspace-operator/blob/main/docs/dwo-configuration.md#configuring-cleanup-cronjob[official documentation].
      Show
      = DevWorkspace Operator resource pruner Starting from DevWorkspace Operator version `0.34.0`, you can configure a pruner that automatically cleans up DevWorkspace objects that were not in use for a certain period of time. To set the pruner up, configure the `DevWorkspaceOperatorConfig` object as follows: [source,code] ---- apiVersion: controller.devfile.io/v1alpha1 kind: DevWorkspaceOperatorConfig metadata:   name: devworkspace-operator-config   namespace: openshift-operators <1> config:   workspace:     cleanupCronJob:       enabled: true       dryRun: false       retainTime: 2592000 <2>       schedule: “0 0 1 * *” <3> ---- <1> The DevWorkspace Operator install namespace. By default, this is openshift-operators. <2> By default, if a workspace was not started for more than 30 days, it will be marked for deletion. <3> By default, the pruner will run once per month. You can find more details about DevWorkspace Operator Configuration in the link: https://github.com/devfile/devworkspace-operator/blob/main/docs/dwo-configuration.md#configuring-cleanup-cronjob [official documentation].
    • Enhancement
    • Done

            jvrbkova@redhat.com Jana Vrbkova
            jvrbkova@redhat.com Jana Vrbkova
            Roland Grunberg Roland Grunberg
            Jana Vrbkova Jana Vrbkova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: