Skip to content

Commit

Permalink
Add cluster-federation CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie committed Mar 4, 2019
1 parent ee12949 commit f87e945
Show file tree
Hide file tree
Showing 24 changed files with 966 additions and 16 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,29 @@ use this to inject your quay account name.
#### Install federation using OLM

Run the `scripts/install-using-catalog-source.sh` script to install federation
into the `federation-test` namespace using OLM. This script also takes your
quay.io account name as an argument:
into the `federation-test` namespace using OLM. This script takes your quay
account name as an argument, and optionally the type of deployment to subscribe
to:

```
$ scripts/install-using-catalog-source.sh pmorie
catalogsource.operators.coreos.com/federation unchanged
operatorgroup.operators.coreos.com/federation unchanged
subscription.operators.coreos.com/federation unchanged
$ scripts/install-using-catalog-source.sh pmorie <namespaced|cluster-scoped>
catalogsource.operators.coreos.com/federation created
operatorgroup.operators.coreos.com/namespaced-federation created
subscription.operators.coreos.com/namespaced-federation-sub created
```

This script:

- Configures a `CatalogSource` for OLM that references the operator registry you built
- Creates an `OperatorGroup`
- Creates a `Subscription` to the operator that drives OLM to install it in your namespace

Note, if you run this script without an argument, you will get federation
deployed in a namespaced scope. To deploy the cluster-scoped version, you should run:

```
$ ./scripts/install-using-catalog-source.sh pmorie cluster-scoped
catalogsource.operators.coreos.com/federation created
operatorgroup.operators.coreos.com/cluster-scoped-federation created
subscription.operators.coreos.com/cluster-scoped-federation-sub created
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/hook": crd-install
creationTimestamp: null
labels:
api: federation
kubebuilder.k8s.io: 1.0.4
name: clusterpropagatedversions.core.federation.k8s.io
spec:
group: core.federation.k8s.io
names:
kind: ClusterPropagatedVersion
plural: clusterpropagatedversions
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
type: object
status:
properties:
clusterVersions:
items:
properties:
clusterName:
type: string
version:
type: string
type: object
type: array
overridesVersion:
type: string
templateVersion:
type: string
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/hook": crd-install
creationTimestamp: null
labels:
api: federation
kubebuilder.k8s.io: 1.0.4
name: dnsendpoints.multiclusterdns.federation.k8s.io
spec:
group: multiclusterdns.federation.k8s.io
names:
kind: DNSEndpoint
plural: dnsendpoints
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
endpoints:
items:
properties:
dnsName:
type: string
labels:
type: object
recordTTL:
format: int64
type: integer
recordType:
type: string
targets:
items:
type: string
type: array
type: object
type: array
type: object
status:
properties:
observedGeneration:
format: int64
type: integer
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/hook": crd-install
creationTimestamp: null
labels:
api: federation
kubebuilder.k8s.io: 1.0.4
name: domains.multiclusterdns.federation.k8s.io
spec:
group: multiclusterdns.federation.k8s.io
names:
kind: Domain
plural: domains
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
domain:
type: string
kind:
type: string
metadata:
type: object
nameServer:
type: string
required:
- domain
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/hook": crd-install
creationTimestamp: null
labels:
api: federation
kubebuilder.k8s.io: 1.0.4
name: federatedclusters.core.federation.k8s.io
spec:
group: core.federation.k8s.io
names:
kind: FederatedCluster
plural: federatedclusters
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
clusterRef:
type: object
secretRef:
type: object
type: object
status:
properties:
conditions:
items:
properties:
lastProbeTime:
format: date-time
type: string
lastTransitionTime:
format: date-time
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
type: string
required:
- type
- status
type: object
type: array
region:
type: string
zone:
type: string
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
"helm.sh/hook": crd-install
creationTimestamp: null
labels:
api: federation
kubebuilder.k8s.io: 1.0.4
name: federatedservicestatuses.core.federation.k8s.io
spec:
group: core.federation.k8s.io
names:
kind: FederatedServiceStatus
plural: federatedservicestatuses
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
clusterStatus:
items:
properties:
clusterName:
type: string
status:
type: object
type: object
type: array
kind:
type: string
metadata:
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
Loading

0 comments on commit f87e945

Please sign in to comment.