Skip to content

Commit

Permalink
Enable make bundle
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
  • Loading branch information
ArangoGutierrez committed Feb 17, 2022
1 parent be3c4c0 commit 918548c
Show file tree
Hide file tree
Showing 11 changed files with 750 additions and 69 deletions.
11 changes: 8 additions & 3 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
domain: nodefeaturediscoveries.nfd.kubernetes.io
layout: go.kubebuilder.io/v3
projectName: node-feature-discovery-operator
projectName: nfd-operator
repo: github.com/kubernetes-sigs/node-feature-discovery-operator
resources:
- crdVersion: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: nodefeaturediscoveries.nfd.kubernetes.io
group: nfd.kubernetes.io
kind: NodeFeatureDiscovery
path: github.com/kubernetes-sigs/node-feature-discovery-operator/api/v1
version: v1
version: 3-alpha
version: "3"
plugins:
manifests.sdk.operatorframework.io/v2: {}
scorecard.sdk.operatorframework.io/v2: {}
82 changes: 82 additions & 0 deletions bundle/manifests/nfd-operator.clusterserviceversion.yaml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
annotations:
# Core bundle annotations.
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: nfd-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.16.0+git
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
operators.operatorframework.io.test.config.v1: tests/scorecard/
4 changes: 2 additions & 2 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# It should be run by config/default
resources:
- bases/nfd.kubernetes.io_nodefeaturediscoveries.yaml
- bases/nfd.openshift.io_v1alpha1_nodefeaturerules.yaml
- bases/node.k8s.io_v1alpha1_noderesoursetopologies.yaml
- bases/nfd.kubernetes.io_v1alpha1_nodefeaturerules.yaml
- bases/node.k8s.io_v1alpha1_noderesourcetopologies.yaml
# +kubebuilder:scaffold:crdkustomizeresource

commonAnnotations:
Expand Down
55 changes: 1 addition & 54 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,67 +13,14 @@ namespace: node-feature-discovery-operator
# field above.
namePrefix: nfd-

# Labels to add to all resources and selectors.
#commonLabels:
# someName: someValue

bases:
- ../crd
- ../rbac
- ../manager
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
#- ../webhook
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
#- ../certmanager
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus
- ../prometheus

patchesStrategicMerge:
# Protect the /metrics endpoint by putting it behind auth.
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, please comment the following line.
- manager_auth_proxy_patch.yaml

# Mount the controller config file for loading manager configurations
# through a ComponentConfig type
#- manager_config_patch.yaml

# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
#- manager_webhook_patch.yaml

# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
# 'CERTMANAGER' needs to be enabled to use ca injection
#- webhookcainjection_patch.yaml

# the following config is for teaching kustomize how to do var substitution
vars:
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
#- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
# objref:
# kind: Certificate
# group: cert-manager.io
# version: v1
# name: serving-cert # this name should match the one in certificate.yaml
# fieldref:
# fieldpath: metadata.namespace
#- name: CERTIFICATE_NAME
# objref:
# kind: Certificate
# group: cert-manager.io
# version: v1
# name: serving-cert # this name should match the one in certificate.yaml
#- name: SERVICE_NAMESPACE # namespace of the service
# objref:
# kind: Service
# version: v1
# name: webhook-service
# fieldref:
# fieldpath: metadata.namespace
#- name: SERVICE_NAME
# objref:
# kind: Service
# version: v1
# name: webhook-service
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: k8s.gcr.io/nfd/node-feature-discovery-operator
newTag: v0.2.0
newTag: 0.4.0
612 changes: 612 additions & 0 deletions config/manifests/bases/nfd-operator.clusterserviceversion.yaml

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions config/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# These resources constitute the fully configured set of manifests
# used to generate the 'manifests/' directory in a bundle.
resources:
- bases/nfd-operator.clusterserviceversion.yaml
- ../default
- ../prometheus
- ../samples
- ../scorecard
11 changes: 2 additions & 9 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -104,14 +105,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -308,4 +301,4 @@ rules:
resources:
- storageclasses
verbs:
- watch
- watch
1 change: 1 addition & 0 deletions config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Append samples you want in your CSV to this file as resources ##
resources:
- nfd.kubernetes.io_v1_nodefeaturediscovery.yaml
- nfd.kubernetes.io_v1alpha1_nodefeaturerules.yaml
# +kubebuilder:scaffold:manifestskustomizesamples

16 changes: 16 additions & 0 deletions config/samples/nfd.kubernetes.io_v1alpha1_nodefeaturerules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: nfd.kubernetes.io/v1alpha1
kind: NodeFeatureRule
metadata:
name: my-sample-rule-object
spec:
rules:
- name: "my sample rule"
labels:
"my-sample-feature": "true"
matchFeatures:
- feature: kernel.loadedmodule
matchExpressions:
dummy: {op: Exists}
- feature: kernel.config
matchExpressions:
X86: {op: In, value: ["y"]}

0 comments on commit 918548c

Please sign in to comment.