Skip to content

Commit

Permalink
dist YAML files for edgenet deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cscognamiglio committed Jul 2, 2024
1 parent 6a1c5bc commit 6ea1255
Show file tree
Hide file tree
Showing 4 changed files with 1,136 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ YAML_PATH=build/installer.yaml
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.29.0
# This should be same as the antrea version in go.mod file since it is using that version in the library.
ANTREA_VERSION=v1.15.0
ANTREA_VERSION=v1.15.2
ignore-not-found=true

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
Expand Down Expand Up @@ -129,6 +129,15 @@ build-installer: manifests generate kustomize ## Generate a consolidated YAML wi
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default >> dist/install.yaml

##
# Build YAML file that can be used for deployment
dist: manifests kustomize
mkdir -p dist/yaml
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/crd > dist/yaml/crd.yaml
$(KUSTOMIZE) build config/rbac > dist/yaml/rbac.yaml
$(KUSTOMIZE) build config/default > dist/yaml/default.yaml

##@ Deployment

ifndef ignore-not-found
Expand Down
184 changes: 184 additions & 0 deletions dist/yaml/crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: subnamespaces.multitenancy.edge-net.io
spec:
group: multitenancy.edge-net.io
names:
kind: SubNamespace
listKind: SubNamespaceList
plural: subnamespaces
shortNames:
- sns
singular: subnamespace
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: SubNamespace is the Schema for the subnamespaces 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: SubNamespaceSpec defines the desired state of SubNamespace
properties:
foo:
description: Foo is an example field of SubNamespace. Edit subnamespace_types.go
to remove/update
type: string
type: object
status:
description: SubNamespaceStatus defines the observed state of SubNamespace
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: tenants.multitenancy.edge-net.io
spec:
group: multitenancy.edge-net.io
names:
kind: Tenant
listKind: TenantList
plural: tenants
shortNames:
- tenant
singular: tenant
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.fullName
name: Full Name
type: string
- jsonPath: .spec.url
name: URL
type: string
- jsonPath: .spec.admin
name: Admin
type: string
name: v1
schema:
openAPIV3Schema:
description: Tenant is the Schema for the tenants 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: TenantSpec defines the desired state of Tenant
properties:
admin:
description: |-
This is the admin username for the tenant. A role binding will be created for user with this username.
The username for some cases can also be emails. This was the old method. But with different identity
providers this can be any name.
maxLength: 200
pattern: ^[a-z0-9]([-.@_a-z0-9]*[a-z0-9])?$
type: string
clusterNetworkPolicy:
default: false
description: Whether cluster-level network policies will be applied
to tenant namespaces for security purposes.
type: boolean
description:
description: Description provides additional information about the
tenant.
maxLength: 200
type: string
fullName:
description: Full name of the tenant.
maxLength: 80
type: string
initialRequest:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: |-
This represents the initial resource allocation for the tenant. If not specified, the tenant resource
quota will not be created.
type: object
url:
description: Website of the tenant.
maxLength: 2000
pattern: ^(https?://)?([\da-z\.-]+)\.([a-z\.]{2,6})([/\w \.-]*)*/?$
type: string
required:
- admin
- fullName
- initialRequest
- url
type: object
status:
description: TenantStatus defines the observed state of Tenant
properties:
failed:
description: Failed sets the backoff limit.
type: integer
message:
description: Additional description can be located here.
type: string
state:
description: The state can be Established or Failed.
type: string
required:
- failed
- message
- state
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: v1
data:
maxmind_accountid: ""
maxmind_token: ""
kind: Secret
metadata:
name: maxmind-secret
namespace: edgenet-system
type: Opaque
Loading

0 comments on commit 6ea1255

Please sign in to comment.