From: chengli3 Date: Tue, 3 Mar 2020 07:18:46 +0000 (+0800) Subject: Remove deploy directory X-Git-Tag: v1.0~41 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F2271%2F1;p=icn%2Fsdwan.git Remove deploy directory Deploy directory was added by mistake. This patch is to delete the deploy directory. Signed-off-by: chengli3 Change-Id: I1e5fddde37821eadb43f46f325a79346a5c11cd9 --- diff --git a/deploy/crds/sdewan.akraino.org_mwan3rules_crd.yaml b/deploy/crds/sdewan.akraino.org_mwan3rules_crd.yaml deleted file mode 100644 index 1be69ee..0000000 --- a/deploy/crds/sdewan.akraino.org_mwan3rules_crd.yaml +++ /dev/null @@ -1,76 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: mwan3rules.sdewan.akraino.org -spec: - group: sdewan.akraino.org - names: - kind: Mwan3Rule - listKind: Mwan3RuleList - plural: mwan3rules - singular: mwan3rule - scope: Namespaced - subresources: - status: {} - validation: - openAPIV3Schema: - description: Mwan3Rule is the Schema for the mwan3rules API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: Mwan3RuleSpec defines the desired state of Mwan3Rule - properties: - policy: - description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster - Important: Run "operator-sdk generate k8s" to regenerate code after - modifying this file Add custom validation using kubebuilder tags: - https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html' - rule: - additionalProperties: - properties: - dest_ip: - type: string - dest_port: - type: string - family: - type: string - proto: - type: string - src_IP: - type: string - src_port: - type: string - sticky: - type: string - timeout: - type: string - use_policy: - type: string - required: - - use_policy - type: object - type: object - required: - - policy - - rule - type: object - status: - description: Mwan3RuleStatus defines the observed state of Mwan3Rule - type: object - type: object - version: v1alpha1 - versions: - - name: v1alpha1 - served: true - storage: true diff --git a/deploy/crds/sdewan.akraino.org_sdewans_crd.yaml b/deploy/crds/sdewan.akraino.org_sdewans_crd.yaml deleted file mode 100644 index 698269f..0000000 --- a/deploy/crds/sdewan.akraino.org_sdewans_crd.yaml +++ /dev/null @@ -1,88 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: sdewans.sdewan.akraino.org -spec: - group: sdewan.akraino.org - names: - kind: Sdewan - listKind: SdewanList - plural: sdewans - singular: sdewan - scope: Namespaced - subresources: - status: {} - validation: - openAPIV3Schema: - description: Sdewan is the Schema for the sdewans API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: SdewanSpec defines the desired state of Sdewan - properties: - mwan3Rule: - type: string - networks: - items: - description: SdewanSpec defines the desired state of Sdewan - properties: - defaultGateway: - type: boolean - interface: - type: string - isProvider: - type: boolean - name: - type: string - required: - - name - type: object - type: array - node: - description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster - Important: Run "operator-sdk generate k8s" to regenerate code after - modifying this file Add custom validation using kubebuilder tags: - https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html' - type: string - required: - - networks - - node - type: object - status: - description: SdewanStatus defines the observed state of Sdewan - properties: - mwan3Status: - description: 'INSERT ADDITIONAL STATUS FIELD - define observed state - of cluster Important: Run "operator-sdk generate k8s" to regenerate - code after modifying this file Add custom validation using kubebuilder - tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html' - properties: - appliedTime: - type: string - isApplied: - type: boolean - name: - type: string - required: - - name - type: object - required: - - mwan3Status - type: object - type: object - version: v1alpha1 - versions: - - name: v1alpha1 - served: true - storage: true diff --git a/deploy/crds/sdewan.akraino.org_v1alpha1_mwan3rule_cr.yaml b/deploy/crds/sdewan.akraino.org_v1alpha1_mwan3rule_cr.yaml deleted file mode 100644 index 2eeca7a..0000000 --- a/deploy/crds/sdewan.akraino.org_v1alpha1_mwan3rule_cr.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: sdewan.akraino.org/v1alpha1 -kind: Mwan3Rule -metadata: - name: example-mwan3rule -spec: - # Add fields here - policy: - testpolicy1: - - network: ovn-priv-net - metric: 1 - weight: 4 - rule: - https: - use_policy: testpolicy1 - dest_ip: 10.10.10.10 diff --git a/deploy/crds/sdewan.akraino.org_v1alpha1_sdewan_cr.yaml b/deploy/crds/sdewan.akraino.org_v1alpha1_sdewan_cr.yaml deleted file mode 100644 index 19092dd..0000000 --- a/deploy/crds/sdewan.akraino.org_v1alpha1_sdewan_cr.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: sdewan.akraino.org/v1alpha1 -kind: Sdewan -metadata: - name: example-sdewan -spec: - # Add fields here - node: "ubuntu18" - networks: - - name: ovn-priv-net - mwan3Rule: example-mwan3rule diff --git a/deploy/operator.yaml b/deploy/operator.yaml deleted file mode 100644 index ea2ceb3..0000000 --- a/deploy/operator.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -apiVersion: k8s.cni.cncf.io/v1 -kind: NetworkAttachmentDefinition -metadata: - name: ovn-networkobj -spec: - config: '{ - "cniVersion": "0.3.1", - "name": "ovn4nfv-k8s-plugin", - "type": "ovn4nfvk8s-cni" - }' - ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sdewan-operator -spec: - replicas: 1 - selector: - matchLabels: - name: sdewan-operator - template: - metadata: - labels: - name: sdewan-operator - spec: - serviceAccountName: sdewan-operator - containers: - - name: sdewan-operator - # Replace this with the built image name - image: chengtcli/sdewan-operator:latest - command: - - sdewan-operator - imagePullPolicy: IfNotPresent - env: - - name: WATCH_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: OPERATOR_NAME - value: "sdewan-operator" diff --git a/deploy/role.yaml b/deploy/role.yaml deleted file mode 100644 index 46f5a18..0000000 --- a/deploy/role.yaml +++ /dev/null @@ -1,81 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - creationTimestamp: null - name: sdewan-operator -rules: -- apiGroups: - - "" - resources: - - pods - - services - - services/finalizers - - endpoints - - persistentvolumeclaims - - events - - configmaps - - secrets - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - apps - resources: - - deployments - - daemonsets - - replicasets - - statefulsets - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - monitoring.coreos.com - resources: - - servicemonitors - verbs: - - get - - create -- apiGroups: - - apps - resourceNames: - - sdewan-operator - resources: - - deployments/finalizers - verbs: - - update -- apiGroups: - - "" - resources: - - pods - verbs: - - get -- apiGroups: - - apps - resources: - - replicasets - - deployments - verbs: - - get -- apiGroups: - - sdewan.akraino.org - resources: - - '*' - - mwan3rules - verbs: - - create - - delete - - get - - list - - patch - - update - - watch diff --git a/deploy/role_binding.yaml b/deploy/role_binding.yaml deleted file mode 100644 index 3631643..0000000 --- a/deploy/role_binding.yaml +++ /dev/null @@ -1,11 +0,0 @@ -kind: RoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: sdewan-operator -subjects: -- kind: ServiceAccount - name: sdewan-operator -roleRef: - kind: Role - name: sdewan-operator - apiGroup: rbac.authorization.k8s.io diff --git a/deploy/service_account.yaml b/deploy/service_account.yaml deleted file mode 100644 index 17bdb2f..0000000 --- a/deploy/service_account.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: sdewan-operator