Repository navigation
pkg/bpf: add new sock ops prog type - #1107
Merged
Merged
Conversation
Add prog type ProgTypeSockOps to match BPF_PROG_TYPE_SOCK_OPS,
introduced in the net-next tree in commit 40304b2a1567 ("bpf: BPF
support for sock_ops").
Signed-off-by: Tobias Klauser <[email protected]>
aalemayhu
approved these changes
Jul 12, 2017
michi-covalent
pushed a commit
to michi-covalent/cilium
that referenced
this pull request
May 30, 2023
The commit introduces the `--api-versions` parameter for the `install` sub-command, which allows for users to set helm's Capabilities.APIVersions as needed for Cilium chart validation. If a user does not provide a value or set of values for `--api-versions`, then a discovery client will be used to auto-fill this value based on the available api versions in a cluster (see install/helm.go#L271). This change is needed because helm will not contact the k8s api server to determine what CRDs are installed into a cluster, leading to chart validation to fail anytime a CRD is required. For this reason, the `--api-versions` CLI argument was introduced to `helm template` (see pr [helm/helm#5392]). The cilium-cli does not allow for users to specify this argument to helm, therefore users can face a similar issue when installing cilium with certain features. For instance, enabling the use of prometheus ServiceMonitors will trigger a check for `monitoring.coreos.com/v1` while performing chart validation (by [cilium/install/kubernetes/cilium/templates/validate.yaml#L21]), but since helm does not adjust Capabilties.APIVersions based on the CRDs installed in a cluster, helm will _always_ believe that `monitoring.coreos.com/v1` is not available. [helm/helm#5392]: helm/helm#5392 [cilium/install/kubernetes/cilium/templates/validate.yaml#L21]: https://github.com/cilium/cilium/blob/v1.12.2/install/kubernetes/cilium/templates/validate.yaml#L21 Fixes: cilium#1107 Signed-off-by: Ryan Drew <[email protected]>
jeefy
pushed a commit
to jeefy/cilium
that referenced
this pull request
Sep 23, 2026
[ cherry-picked from cilium/cilium-cli repository ] The commit introduces the `--api-versions` parameter for the `install` sub-command, which allows for users to set helm's Capabilities.APIVersions as needed for Cilium chart validation. If a user does not provide a value or set of values for `--api-versions`, then a discovery client will be used to auto-fill this value based on the available api versions in a cluster (see install/helm.go#L271). This change is needed because helm will not contact the k8s api server to determine what CRDs are installed into a cluster, leading to chart validation to fail anytime a CRD is required. For this reason, the `--api-versions` CLI argument was introduced to `helm template` (see pr [helm/helm#5392]). The cilium-cli does not allow for users to specify this argument to helm, therefore users can face a similar issue when installing cilium with certain features. For instance, enabling the use of prometheus ServiceMonitors will trigger a check for `monitoring.coreos.com/v1` while performing chart validation (by [cilium/install/kubernetes/cilium/templates/validate.yaml#L21]), but since helm does not adjust Capabilties.APIVersions based on the CRDs installed in a cluster, helm will _always_ believe that `monitoring.coreos.com/v1` is not available. [helm/helm#5392]: helm/helm#5392 [cilium/install/kubernetes/cilium/templates/validate.yaml#L21]: https://github.com/cilium/cilium/blob/v1.12.2/install/kubernetes/cilium/templates/validate.yaml#L21 Fixes: cilium#1107 Signed-off-by: Ryan Drew <[email protected]>
sypakine
pushed a commit
to sypakine/cilium
that referenced
this pull request
Sep 25, 2026
[ cherry-picked from cilium/cilium-cli repository ] The commit introduces the `--api-versions` parameter for the `install` sub-command, which allows for users to set helm's Capabilities.APIVersions as needed for Cilium chart validation. If a user does not provide a value or set of values for `--api-versions`, then a discovery client will be used to auto-fill this value based on the available api versions in a cluster (see install/helm.go#L271). This change is needed because helm will not contact the k8s api server to determine what CRDs are installed into a cluster, leading to chart validation to fail anytime a CRD is required. For this reason, the `--api-versions` CLI argument was introduced to `helm template` (see pr [helm/helm#5392]). The cilium-cli does not allow for users to specify this argument to helm, therefore users can face a similar issue when installing cilium with certain features. For instance, enabling the use of prometheus ServiceMonitors will trigger a check for `monitoring.coreos.com/v1` while performing chart validation (by [cilium/install/kubernetes/cilium/templates/validate.yaml#L21]), but since helm does not adjust Capabilties.APIVersions based on the CRDs installed in a cluster, helm will _always_ believe that `monitoring.coreos.com/v1` is not available. [helm/helm#5392]: helm/helm#5392 [cilium/install/kubernetes/cilium/templates/validate.yaml#L21]: https://github.com/cilium/cilium/blob/v1.12.2/install/kubernetes/cilium/templates/validate.yaml#L21 Fixes: cilium#1107 Signed-off-by: Ryan Drew <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add prog type ProgTypeSockOps to match BPF_PROG_TYPE_SOCK_OPS,
introduced in the net-next tree in commit 40304b2a1567 ("bpf: BPF
support for sock_ops").
Signed-off-by: Tobias Klauser [email protected]