Uploaded image for project: 'Open Data Hub'
  1. Open Data Hub
  2. ODH-375

Allow some resources to be ignored by an operator during reconcilation

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • operator
    • None
    • Open Data Hub Sprint 6, Open Data Hub Sprint 7, Open Data Hub Sprint 8, Open Data Hub Sprint 9, Open Data Hub Sprint 10, Open Data Hub Sprint 11, Open Data Hub Sprint 12, Open Data Hub Sprint 13, Open Data Hub Sprint 14, Open Data Hub Sprint 15
    • 3

      There are resources that need to be updated by some of the components which are also managed by operator, which would result in the resources being overwritten on reconcilation.

      We would like to have a way to specify that these specific resources should not be reconciled once edited manually or by another operator/job

       

      Implement a set of labels to control the operator behaviour to cover basic and corner use cases

      1. Mark the resources which are allowed to be modified by a configurable label (ODH devs)
        opendatahub.io/configurable: true
      2. If a user or a component need to modify a resource add a modified label (user or component)
        opendatahub.io/modified: true
      3. If the resource has been updated and the update needs to be performed add a needs-update label (ODH devs)
        opendatahub.io/needs-update: true

      Other thoughts:

      • Operator could add opendatahub.io/modified: false by default if a resource has configurable label and modified is not set

      Describe alternatives you've considered
      Manage configurable resources outside of the operator and deploy them by init container or a job. The problem with that is that if the resource gets deleted, there is no automatic way to get it back other than manually triggerring the job.

              vhire Vaishnavi Hire
              vhire Vaishnavi Hire
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: