Skip to content

Conversation

@jmrodri
Copy link
Member

@jmrodri jmrodri commented Feb 3, 2021

  • TrimDNS1123Label would trim strings but end up creating invalid DNS1123
    strings.
  • FormatOperatorNameDNS1123 would return strings that were invalid if
    they begin or end with non-alphanumeric or hyphens.

Fixes #4470

Signed-off-by: jesus m. rodriguez [email protected]

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@jmrodri jmrodri force-pushed the issue4470 branch 2 times, most recently from eef1a41 to 16149a3 Compare February 3, 2021 16:53
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 3, 2021
@jberkhahn
Copy link
Contributor

ok
/lgtm

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 3, 2021
* TrimDNS1123Label would trim strings but end up creating invalid DNS1123
strings.
* FormatOperatorNameDNS1123 would return strings that were invalid if
  they begin or end with non-alphanumeric or hyphens.

Fixes operator-framework#4470

Signed-off-by: jesus m. rodriguez <[email protected]>
Signed-off-by: jesus m. rodriguez <[email protected]>
@jmrodri
Copy link
Member Author

jmrodri commented Feb 4, 2021

@estroz updated it and rebased things around.

@jmrodri jmrodri changed the title Fix Trim and Format DNS1123 functions to return valid values Fixed invalid object names generated for long package names Feb 4, 2021
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 4, 2021
@jmrodri jmrodri merged commit 67358fb into operator-framework:master Feb 4, 2021
@jmrodri
Copy link
Member Author

jmrodri commented Feb 4, 2021

/cherry-pick v1.3.x

@openshift-cherrypick-robot

@jmrodri: new pull request created: #4476

Details

In response to this:

/cherry-pick v1.3.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

reinvantveer pushed a commit to reinvantveer/operator-sdk that referenced this pull request Feb 4, 2021
…-framework#4471)

* Fixed invalid object names generated for long package names

* TrimDNS1123Label would trim strings but end up creating invalid DNS1123
strings.
* FormatOperatorNameDNS1123 would return strings that were invalid if
  they begin or end with non-alphanumeric or hyphens.

* Handle capitals and use more efficient trim mechanism

* React to new expectation.

Fixes operator-framework#4470

Signed-off-by: jesus m. rodriguez <[email protected]>
Signed-off-by: Rein van 't Veer <[email protected]>
reinvantveer pushed a commit to reinvantveer/operator-sdk that referenced this pull request Feb 4, 2021
…-framework#4471)

* Fixed invalid object names generated for long package names

* TrimDNS1123Label would trim strings but end up creating invalid DNS1123
strings.
* FormatOperatorNameDNS1123 would return strings that were invalid if
  they begin or end with non-alphanumeric or hyphens.

* Handle capitals and use more efficient trim mechanism

* React to new expectation.

Fixes operator-framework#4470

Signed-off-by: jesus m. rodriguez <[email protected]>
Signed-off-by: Rein van 't Veer <[email protected]>
reinvantveer pushed a commit to reinvantveer/operator-sdk that referenced this pull request Feb 5, 2021
…-framework#4471)

* Fixed invalid object names generated for long package names

* TrimDNS1123Label would trim strings but end up creating invalid DNS1123
strings.
* FormatOperatorNameDNS1123 would return strings that were invalid if
  they begin or end with non-alphanumeric or hyphens.

* Handle capitals and use more efficient trim mechanism

* React to new expectation.

Fixes operator-framework#4470

Signed-off-by: jesus m. rodriguez <[email protected]>
Signed-off-by: Rein van 't Veer <[email protected]>
reinvantveer pushed a commit to reinvantveer/operator-sdk that referenced this pull request Feb 5, 2021
…-framework#4471)

* Fixed invalid object names generated for long package names

* TrimDNS1123Label would trim strings but end up creating invalid DNS1123
strings.
* FormatOperatorNameDNS1123 would return strings that were invalid if
  they begin or end with non-alphanumeric or hyphens.

* Handle capitals and use more efficient trim mechanism

* React to new expectation.

Fixes operator-framework#4470

Signed-off-by: jesus m. rodriguez <[email protected]>
Signed-off-by: reinvantveer <[email protected]>
reinvantveer pushed a commit to reinvantveer/operator-sdk that referenced this pull request Feb 5, 2021
…-framework#4471)

* Fixed invalid object names generated for long package names

* TrimDNS1123Label would trim strings but end up creating invalid DNS1123
strings.
* FormatOperatorNameDNS1123 would return strings that were invalid if
  they begin or end with non-alphanumeric or hyphens.

* Handle capitals and use more efficient trim mechanism

* React to new expectation.

Fixes operator-framework#4470

Signed-off-by: jesus m. rodriguez <[email protected]>
Signed-off-by: Rein van 't Veer <[email protected]>
Signed-off-by: reinvantveer <[email protected]>
@jmrodri jmrodri deleted the issue4470 branch January 30, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

k8sutil.TrimDNS1123Label creates invalid values

5 participants