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

Mark CheCluster API v1 as unserved version #21584

Open
Tracked by #21615 ...
tolusha opened this issue Jul 26, 2022 · 5 comments
Open
Tracked by #21615 ...

Mark CheCluster API v1 as unserved version #21584

tolusha opened this issue Jul 26, 2022 · 5 comments
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/task Internal things, technical debt, and to-do tasks to be performed. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. severity/P1 Has a major impact to usage or development of the system.

Comments

@tolusha
Copy link
Contributor

tolusha commented Jul 26, 2022

Is your task related to a problem? Please describe

We still support CheCluster API v1 after introducing v2.
It imposes additional difficulties with extending v2 since we have to add the similar fields to v1 and implement conversion.

Describe the solution you'd like

Mark CheCluster API v1 as unserved version

Describe alternatives you've considered

No response

Additional context

#21579

@tolusha tolusha added kind/task Internal things, technical debt, and to-do tasks to be performed. sprint/next area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator labels Jul 26, 2022
@tolusha tolusha added this to the 7.53 milestone Jul 26, 2022
@Divine1
Copy link

Divine1 commented Jul 26, 2022

@tolusha

a quick question,

i'm using chectl/0.0.20220725-next.71d60f1 darwin-x64 node-v16.13.2

below is my checluster. is this checluster v2 or v1? does the generation attribute indicates the version of checluster?

kubectl get checluster -n eclipse-che -o yaml

apiVersion: v1
items:
- apiVersion: org.eclipse.che/v2
  kind: CheCluster
  metadata:
    creationTimestamp: "2022-07-26T07:51:46Z"
    finalizers:
    - checluster.che.eclipse.org
    - cheGateway.clusterpermissions.finalizers.che.eclipse.org
    - cheWorkspaces.clusterpermissions.finalizers.che.eclipse.org
    - namespaces-editor.permissions.finalizers.che.eclipse.org
    - devWorkspace.permissions.finalizers.che.eclipse.org
    - dashboard.clusterpermissions.finalizers.che.eclipse.org
    generation: 2
    name: eclipse-che
    namespace: eclipse-che
    resourceVersion: "18171927"
    uid: 7b18d837-0c45-45c9-953c-0d1bb4806f85
  spec:
    components:
      cheServer:
        debug: true
        extraProperties:
          CHE_INFRA_KUBERNETES_PVC_QUANTITY: 5Gi
          CHE_INFRA_KUBERNETES_WORKSPACE__START__TIMEOUT__MIN: "15"
        logLevel: INFO
      dashboard: {}
      database:
        credentialsSecretName: postgres-credentials
        externalDb: true
        postgresDb: dbche
        postgresHostName: sc2-10-186-67-195.eng.vmware.com
        postgresPort: "5432"
        pvc:
          claimSize: 1Gi
      devWorkspace: {}
      devfileRegistry: {}
      imagePuller:
        enable: false
        spec: {}
      metrics:
        enable: true
      pluginRegistry: {}
    containerRegistry: {}
    devEnvironments:
      defaultNamespace:
        template: <username>-che
      secondsOfInactivityBeforeIdling: 1800
      secondsOfRunBeforeIdling: -1
      storage:
        pvcStrategy: common
    networking:
      auth:
        gateway:
          configLabels:
            app: che
            component: che-gateway-config
        identityProviderURL: https://dex-dchelladurai-chejune15.calatrava.vmware.com
        oAuthClientName: eclipse-che
        oAuthSecret: ZXhhbXBsZS1hcHAtc2VjcmV0
      domain: eclipseche-dchelladurai-chejune15.calatrava.vmware.com
      tlsSecretName: che-tls
  status:
    chePhase: Active
    cheURL: https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com
    cheVersion: next
    devfileRegistryURL: https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/devfile-registry
    gatewayPhase: Established
    pluginRegistryURL: https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/plugin-registry/v3
    workspaceBaseDomain: eclipseche-dchelladurai-chejune15.calatrava.vmware.com
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

@tolusha
Copy link
Contributor Author

tolusha commented Jul 26, 2022

Hello @Divine1
It is v2 because of apiVersion: org.eclipse.che/v2

@ibuziuk ibuziuk added severity/P1 Has a major impact to usage or development of the system. area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator and removed area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator labels Jul 27, 2022
@tolusha tolusha mentioned this issue Aug 6, 2022
67 tasks
@ibuziuk
Copy link
Member

ibuziuk commented Aug 9, 2022

@tolusha please do not fully remove v1 untill the dashboard is updated accordingly #21594 cc: @olexii4 @akurinnoy

@tolusha tolusha mentioned this issue Aug 25, 2022
82 tasks
@tolusha tolusha removed this from the 7.53 milestone Aug 25, 2022
@tolusha tolusha mentioned this issue Sep 16, 2022
59 tasks
@tolusha tolusha changed the title Remove CheCluster API v1 Marked CheCluster API v1 as unserved Sep 22, 2022
@tolusha tolusha changed the title Marked CheCluster API v1 as unserved Mark CheCluster API v1 as unserved Sep 22, 2022
@tolusha tolusha changed the title Mark CheCluster API v1 as unserved Mark CheCluster API v1 as unserved version Sep 22, 2022
@tolusha
Copy link
Contributor Author

tolusha commented Sep 23, 2022

I tried to mark CheCluster API V1 as unserved but got the following error on the OpenShift:

  requirementStatus:
    - group: apiextensions.k8s.io
      kind: CustomResourceDefinition
      message: CRD is not present
      name: checlusters.org.eclipse.che
      status: NotPresent
      version: v1

operator-framework/operator-lifecycle-manager#2866

@ibuziuk ibuziuk mentioned this issue Oct 11, 2022
67 tasks
@che-bot
Copy link
Contributor

che-bot commented Apr 29, 2023

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 29, 2023
@tolusha tolusha added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/task Internal things, technical debt, and to-do tasks to be performed. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants