Skip to content

Commit

Permalink
Merge pull request confidential-containers#210 from stevenhorsman/upd…
Browse files Browse the repository at this point in the history
…ate-kustomize

config: Update kustomize
  • Loading branch information
wainersm committed May 19, 2023
2 parents fe952c8 + 0c2ec67 commit ee64c3a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 4 additions & 1 deletion config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# This kustomization.yaml is not intended to be run by itself,
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/confidentialcontainers.org_ccruntimes.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
patches:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
#- patches/webhook_in_ccruntimes.yaml
Expand Down
8 changes: 5 additions & 3 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Adds namespace to all resources.
namespace: confidential-containers-system

Expand All @@ -12,7 +14,7 @@ namePrefix: cc-operator-
#commonLabels:
# someName: someValue

bases:
resources:
- ../crd
- ../rbac
- ../manager
Expand All @@ -24,11 +26,11 @@ bases:
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus

patchesStrategicMerge:
patches:
# 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
- path: manager_auth_proxy_patch.yaml

# Mount the controller config file for loading manager configurations
# through a ComponentConfig type
Expand Down
5 changes: 4 additions & 1 deletion config/samples/enclave-cc/hw/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
bases:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base

nameSuffix: -sgx-mode-hw

0 comments on commit ee64c3a

Please sign in to comment.