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

Valid service from catsrc with periods in name #3024

Conversation

awgreene
Copy link
Member

Problem: Creating a catalogSource with a period in the name is valid as the Kuberenetes API catalogSources to adhere to the following naing conventions:

  • Start and end with a lower case alphanumeric character
  • Consist only of alphanumeric characters, ., or -

Unfortunately, the service created by OLM for the catalogSource must adhere to the following naming conventions:

  • Start and end with a lower case alphanumeric character
  • Consist only of alphanumeric characters or -

This causes OLM to constantly recreate the catalogSource as the service it attempts to create is rejected from the Kubernetes API service due to the . in the name.

Solution: When naming the service, replace all instances of . in the name with -.

@openshift-ci openshift-ci bot requested review from dtfranz and perdasilva August 31, 2023 17:24
@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: awgreene

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 31, 2023
@awgreene awgreene force-pushed the catsrc-service-name-generation branch from 74561c7 to ebe97df Compare August 31, 2023 17:27
Problem: Creating a catalogSource with a period in the name is valid as
the Kuberenetes API catalogSources to adhere to the following naing
conventions:
- Start and end with a lower case alphanumeric character
- Consist only of alphanumeric characters, `.`, or `-`

Unfortunately, the service created by OLM for the catalogSource must
adhere to the following naming conventions:
- Start and end with a lower case alphanumeric character
- Consist only of alphanumeric characters or `-`

This causes OLM to constantly recreate the catalogSource as the service
it attempts to create is rejected from the Kubernetes API service due to
the `.` in the name.

Solution: When naming the service, replace all instances of `.` in the
name with `-`.

Signed-off-by: Alexander Greene <[email protected]>
@awgreene awgreene force-pushed the catsrc-service-name-generation branch from ebe97df to 604762d Compare August 31, 2023 17:28
@oceanc80
Copy link
Contributor

nit: We may want to add/update docs to make users aware of this so that they aren't confused when they go to look for their service.
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2023
@openshift-merge-robot openshift-merge-robot merged commit 6e0d407 into operator-framework:master Aug 31, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants