Skip to content

pkg/bpf: add new sock ops prog type - #1107

Merged
aalemayhu merged 1 commit into
cilium:masterfrom
tklauser:prog-type-sock-ops
Jul 12, 2017
Merged

aalemayhu merged 1 commit into
cilium:masterfrom
tklauser:prog-type-sock-ops

Conversation

@tklauser

Copy link
Copy Markdown
Member

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]

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
aalemayhu merged commit ad53848 into cilium:master Jul 12, 2017
@tklauser
tklauser deleted the prog-type-sock-ops branch July 12, 2017 09:11
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]>
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.

2 participants