Skip to content

✨ Add command to update olmv1 catalog #231

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

Conversation

rashmigottipati
Copy link
Member

@rashmigottipati rashmigottipati commented Apr 24, 2025

Adds command to update an existing olmv1 operator (ClusterCatalog).

Command has the following signature and flags:

Update a catalog

Usage:
  operator olmv1 update catalog <catalog> [flags]

Flags:
      --availability-mode string           available means that the catalog should be active and serving data
      -h, --help                               help for catalog
      --labels stringToString              labels that will be added to the catalog (default [])
      --priority int32                     priority determines the likelihood of a catalog being selected in conflict scenarios
      --source-poll-interval-minutes int   catalog source polling interval [in minutes] (default 5)

Global Flags:
  -n, --namespace string   If present, namespace scope for this CLI request
      --timeout duration   The amount of time to wait before giving up on an operation. (default 1m0s)

Example walkthrough:

▶ kubectl get clustercatalog -n olmv1
NAME            LASTUNPACKED   SERVING   AGE
operatorhubio                  False     7d18h
▶ kubectl operator olmv1 update catalog testcatalog --availability-mode=Available
operator "testcatalog" updated
▶ kubectl get clustercatalog -n olmv1
NAME            LASTUNPACKED   SERVING   AGE
testcatalog                  True     7d18h

➜ kubectl operator olmv1 update catalog testcatalog --availability-mode=Available --priority=1 --source-poll-interval-minutes=6
operator "testcatalog" updated

@rashmigottipati rashmigottipati force-pushed the modify-clustercatalogs branch from 58d293e to 86be581 Compare April 29, 2025 02:58
@rashmigottipati
Copy link
Member Author

closing in favor of #232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant