Skip to content

Commit 48f50b3

Browse files
authored
Merge pull request #130 from ArangoGutierrez/devel/make_bundle
Enable `make bundle`
2 parents 7d50803 + 2afae91 commit 48f50b3

File tree

9 files changed

+654
-61
lines changed

9 files changed

+654
-61
lines changed

PROJECT

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
domain: nodefeaturediscoveries.nfd.kubernetes.io
22
layout: go.kubebuilder.io/v3
3-
projectName: node-feature-discovery-operator
3+
projectName: nfd-operator
44
repo: github.com/kubernetes-sigs/node-feature-discovery-operator
55
resources:
6-
- crdVersion: v1
6+
- api:
7+
crdVersion: v1
8+
namespaced: true
9+
controller: true
10+
domain: nodefeaturediscoveries.nfd.kubernetes.io
711
group: nfd.kubernetes.io
812
kind: NodeFeatureDiscovery
13+
path: github.com/kubernetes-sigs/node-feature-discovery-operator/api/v1
914
version: v1
10-
version: 3-alpha
15+
version: "3"
1116
plugins:
1217
manifests.sdk.operatorframework.io/v2: {}
1318
scorecard.sdk.operatorframework.io/v2: {}

config/crd/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# It should be run by config/default
44
resources:
55
- bases/nfd.kubernetes.io_nodefeaturediscoveries.yaml
6-
- bases/nfd.openshift.io_v1alpha1_nodefeaturerules.yaml
7-
- bases/node.k8s.io_v1alpha1_noderesoursetopologies.yaml
6+
- bases/nfd.kubernetes.io_v1alpha1_nodefeaturerules.yaml
7+
- bases/node.k8s.io_v1alpha1_noderesourcetopologies.yaml
88
# +kubebuilder:scaffold:crdkustomizeresource
99

1010
commonAnnotations:

config/default/kustomization.yaml

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -13,67 +13,14 @@ namespace: node-feature-discovery-operator
1313
# field above.
1414
namePrefix: nfd-
1515

16-
# Labels to add to all resources and selectors.
17-
#commonLabels:
18-
# someName: someValue
19-
2016
bases:
2117
- ../crd
2218
- ../rbac
2319
- ../manager
24-
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
25-
# crd/kustomization.yaml
26-
#- ../webhook
27-
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
28-
#- ../certmanager
29-
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
30-
#- ../prometheus
20+
- ../prometheus
3121

3222
patchesStrategicMerge:
3323
# Protect the /metrics endpoint by putting it behind auth.
3424
# If you want your controller-manager to expose the /metrics
3525
# endpoint w/o any authn/z, please comment the following line.
3626
- manager_auth_proxy_patch.yaml
37-
38-
# Mount the controller config file for loading manager configurations
39-
# through a ComponentConfig type
40-
#- manager_config_patch.yaml
41-
42-
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
43-
# crd/kustomization.yaml
44-
#- manager_webhook_patch.yaml
45-
46-
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
47-
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
48-
# 'CERTMANAGER' needs to be enabled to use ca injection
49-
#- webhookcainjection_patch.yaml
50-
51-
# the following config is for teaching kustomize how to do var substitution
52-
vars:
53-
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
54-
#- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
55-
# objref:
56-
# kind: Certificate
57-
# group: cert-manager.io
58-
# version: v1
59-
# name: serving-cert # this name should match the one in certificate.yaml
60-
# fieldref:
61-
# fieldpath: metadata.namespace
62-
#- name: CERTIFICATE_NAME
63-
# objref:
64-
# kind: Certificate
65-
# group: cert-manager.io
66-
# version: v1
67-
# name: serving-cert # this name should match the one in certificate.yaml
68-
#- name: SERVICE_NAMESPACE # namespace of the service
69-
# objref:
70-
# kind: Service
71-
# version: v1
72-
# name: webhook-service
73-
# fieldref:
74-
# fieldpath: metadata.namespace
75-
#- name: SERVICE_NAME
76-
# objref:
77-
# kind: Service
78-
# version: v1
79-
# name: webhook-service

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: k8s.gcr.io/nfd/node-feature-discovery-operator
16-
newTag: v0.2.0
16+
newTag: 0.4.0

config/manifests/bases/nfd-operator.clusterserviceversion.yaml

Lines changed: 612 additions & 0 deletions
Large diffs are not rendered by default.

config/manifests/kustomization.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
# These resources constitute the fully configured set of manifests
5+
# used to generate the 'manifests/' directory in a bundle.
6+
resources:
7+
- bases/nfd-operator.clusterserviceversion.yaml
8+
- ../default
9+
- ../prometheus
10+
- ../samples
11+
- ../scorecard

config/rbac/role.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
---
23
apiVersion: rbac.authorization.k8s.io/v1
34
kind: ClusterRole
@@ -308,4 +309,4 @@ rules:
308309
resources:
309310
- storageclasses
310311
verbs:
311-
- watch
312+
- watch

config/samples/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Append samples you want in your CSV to this file as resources ##
22
resources:
33
- nfd.kubernetes.io_v1_nodefeaturediscovery.yaml
4+
- nfd.kubernetes.io_v1alpha1_nodefeaturerules.yaml
45
# +kubebuilder:scaffold:manifestskustomizesamples
56

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: nfd.kubernetes.io/v1alpha1
2+
kind: NodeFeatureRule
3+
metadata:
4+
name: my-sample-rule-object
5+
spec:
6+
rules:
7+
- name: "my sample rule"
8+
labels:
9+
"my-sample-feature": "true"
10+
matchFeatures:
11+
- feature: kernel.loadedmodule
12+
matchExpressions:
13+
dummy: {op: Exists}
14+
- feature: kernel.config
15+
matchExpressions:
16+
X86: {op: In, value: ["y"]}

0 commit comments

Comments
 (0)