Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrustyAI CRs not deleting after ODH deletion #218

Open
RobGeada opened this issue Feb 26, 2024 · 2 comments
Open

TrustyAI CRs not deleting after ODH deletion #218

RobGeada opened this issue Feb 26, 2024 · 2 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@RobGeada
Copy link
Contributor

TrustyAIService CRs are stuck in deletion after the ODH install (and therefore the TrustyAI Operator) is deleted. To delete the TrustyAIService CR, their finalizers have to be manually patched

@RobGeada RobGeada added the kind/bug Something isn't working label Feb 26, 2024
@ruivieira ruivieira self-assigned this Feb 26, 2024
@ruivieira ruivieira added this to the Release 1.17.0 (Operator) milestone Feb 26, 2024
@RobGeada
Copy link
Contributor Author

RobGeada commented Feb 26, 2024

Example orphaned CR:

apiVersion: trustyai.opendatahub.io/v1alpha1
kind: TrustyAIService
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"trustyai.opendatahub.io/v1alpha1","kind":"TrustyAIService","metadata":{"annotations":{},"name":"trustyai-service","namespace":"opendatahub-model"},"spec":{"data":{"filename":"data.csv","format":"CSV"},"metrics":{"schedule":"5s"},"storage":{"folder":"/inputs","format":"PVC","size":"1Gi"}}}
  deletionTimestamp: '2024-02-26T14:04:03Z'
  resourceVersion: '63540142'
  name: trustyai-service
  uid: 05c24a4c-3347-4988-91a4-087706b242f4
  deletionGracePeriodSeconds: 0
  creationTimestamp: '2024-02-26T14:03:04Z'
  generation: 2
  managedFields:
    - apiVersion: trustyai.opendatahub.io/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            .: {}
            'f:kubectl.kubernetes.io/last-applied-configuration': {}
        'f:spec':
          .: {}
          'f:data':
            .: {}
            'f:filename': {}
            'f:format': {}
          'f:metrics':
            .: {}
            'f:schedule': {}
          'f:storage':
            .: {}
            'f:folder': {}
            'f:format': {}
            'f:size': {}
      manager: kubectl-client-side-apply
      operation: Update
      time: '2024-02-26T14:03:04Z'
    - apiVersion: trustyai.opendatahub.io/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:finalizers':
            .: {}
            'v:"trustyai.opendatahub.io/finalizer"': {}
      manager: manager
      operation: Update
      time: '2024-02-26T14:03:04Z'
  namespace: opendatahub-model
  finalizers:
    - trustyai.opendatahub.io/finalizer
spec:
  data:
    filename: data.csv
    format: CSV
  metrics:
    schedule: 5s
  storage:
    folder: /inputs
    format: PVC
    size: 1Gi

@ruivieira ruivieira moved this from Todo to In Review in TrustyAI planning Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: In Review
Development

No branches or pull requests

2 participants