This commit is contained in:
a 2022-03-30 00:44:51 -05:00
parent cb629f34a9
commit ce6da9fc4b
6 changed files with 12 additions and 10 deletions

View File

@ -6,8 +6,9 @@ resources:
# +kubebuilder:scaffold:crdkustomizeresource # +kubebuilder:scaffold:crdkustomizeresource
patchesStrategicMerge: patchesStrategicMerge:
- patches/webhook_in_seaweeds.yaml
- patches/cainjection_in_seaweeds.yaml - patches/cainjection_in_seaweeds.yaml
## no conversion
#- patches/webhook_in_seaweeds.yaml
# the following config is for teaching kustomize how to do kustomization for CRDs. # the following config is for teaching kustomize how to do kustomization for CRDs.
configurations: configurations:

View File

@ -5,12 +5,12 @@ nameReference:
fieldSpecs: fieldSpecs:
- kind: CustomResourceDefinition - kind: CustomResourceDefinition
group: apiextensions.k8s.io group: apiextensions.k8s.io
path: spec/conversion/webhookClientConfig/service/name path: spec/conversion/webhook/clientConfig/service/name
namespace: namespace:
- kind: CustomResourceDefinition - kind: CustomResourceDefinition
group: apiextensions.k8s.io group: apiextensions.k8s.io
path: spec/conversion/webhookClientConfig/service/namespace path: spec/conversion/webhook/clientConfig/service/namespace
create: false create: false
varReference: varReference:

View File

@ -33,7 +33,7 @@ vars:
objref: objref:
kind: Certificate kind: Certificate
group: cert-manager.io group: cert-manager.io
version: v1alpha2 version: v1
name: serving-cert # this name should match the one in certificate.yaml name: serving-cert # this name should match the one in certificate.yaml
fieldref: fieldref:
fieldpath: metadata.namespace fieldpath: metadata.namespace
@ -41,7 +41,7 @@ vars:
objref: objref:
kind: Certificate kind: Certificate
group: cert-manager.io group: cert-manager.io
version: v1alpha2 version: v1
name: serving-cert # this name should match the one in certificate.yaml name: serving-cert # this name should match the one in certificate.yaml
- name: SERVICE_NAMESPACE # namespace of the service - name: SERVICE_NAMESPACE # namespace of the service
objref: objref:

View File

@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
images: images:
- name: controller - name: controller
newName: chrislusf/seaweedfs-operator newName: gfxlabs/seaweedfs-operator
newTag: v0.0.1 newTag: v0.0.2

View File

@ -1,2 +1,3 @@
resources: resources:
- monitor.yaml ## uncomment below to enable monitor
#- monitor.yaml

View File

@ -1,8 +1,8 @@
apiVersion: seaweed.seaweedfs.com/v1 apiVersion: seaweed.seaweedfs.com/v1
kind: Seaweed kind: Seaweed
metadata: metadata:
name: seaweed1 name: seaweed-test
namespace: default namespace: seaweed
spec: spec:
# Add fields here # Add fields here
image: chrislusf/seaweedfs:2.96 image: chrislusf/seaweedfs:2.96