Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

add libc property #341

Merged
merged 9 commits into from
Nov 23, 2020
Merged

add libc property #341

merged 9 commits into from
Nov 23, 2020

Conversation

meik99
Copy link
Contributor

@meik99 meik99 commented Nov 10, 2020

No description provided.

Copy link
Contributor

@baichinger baichinger left a comment

Choose a reason for hiding this comment

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

Will this cause confusion when the user needs to know that annotation flavor is actually the same as custom resource field libc. It will get even more strange when values of them do not match: musl vs. default vs. glibc.

Therefore, shouldn't we simply stick with the term flavor?

# Optional: define which core library for C should be used.
# Can be set to "musl" to use musl instead of glibc
#
# libc: "musl"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it be set to glibc as well?

@@ -49,3 +50,8 @@ spec:
# limits:
# cpu: 500m
# memory: 100M

# Optional: define which core library for C should be used.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be rephrased to "defines the C standard library used."

// Optional: define which core library for C should be used.
// Can be set to "musl" to use musl instead of glibc
// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true
// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="C Core Library"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use C standard library as well.

Comment on lines 12 to 15
if flavor != "musl" {
return "default"
}
return flavor
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if flavor != "musl" {
return "default"
}
return flavor
if flavor = "musl" {
return flavor
}
return "default

extended property description
@meik99 meik99 marked this pull request as ready for review November 10, 2020 15:52
@meik99 meik99 merged commit 68d5156 into master Nov 23, 2020
@meik99 meik99 deleted the feature/libc-property branch December 21, 2020 09:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants