Skip to content

Commit

Permalink
add cross-compilation flags to go build
Browse files Browse the repository at this point in the history
  • Loading branch information
Knappek committed Jun 22, 2019
1 parent 6bbe4e0 commit 1d62fbb
Show file tree
Hide file tree
Showing 6 changed files with 414 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ steps:
dockerfile: build/Dockerfile
repo: knappek/mongodbatlas-operator
tag:
- 0.0.3
- 0.0.4
when:
event:
- tag
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
GO := GOARCH=amd64 CGO_ENABLED=0 GOOS=linux go

VERSION?=latest
OLM_VERSION?=0.0.3
OLM_VERSION?=0.0.4
API_VERSION?=v1alpha1
KIND=

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mongodbatlasclusters.knappek.com
spec:
group: knappek.com
names:
kind: MongoDBAtlasCluster
listKind: MongoDBAtlasClusterList
plural: mongodbatlasclusters
singular: mongodbatlascluster
scope: Namespaced
validation:
openAPIV3Schema:
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/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/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
autoScaling:
properties:
diskGBEnabled:
type: boolean
required:
- diskGBEnabled
type: object
backupEnabled:
type: boolean
diskSizeGB:
format: double
type: number
mongoDBMajorVersion:
type: string
mongoDBVersion:
type: string
numShards:
format: int64
type: integer
privateKey:
properties:
valueFrom:
properties:
secretKeyRef:
description: Selects a key of a secret in the CR's namespace
type: object
required:
- secretKeyRef
type: object
required:
- valueFrom
type: object
projectName:
type: string
providerBackupEnabled:
type: boolean
providerSettings:
properties:
backingProviderName:
type: string
diskIOPS:
format: int64
type: integer
encryptEBSVolume:
type: boolean
instanceSizeName:
type: string
providerName:
type: string
regionName:
type: string
type: object
publicKey:
type: string
replicationFactor:
format: int64
type: integer
replicationSpec:
additionalProperties:
properties:
analyticsNodes:
format: int64
type: integer
electableNodes:
format: int64
type: integer
priority:
format: int64
type: integer
readOnlyNodes:
format: int64
type: integer
required:
- priority
- electableNodes
- readOnlyNodes
- analyticsNodes
type: object
type: object
required:
- publicKey
- privateKey
- projectName
- backupEnabled
- providerBackupEnabled
type: object
status:
properties:
autoScaling:
properties:
diskGBEnabled:
type: boolean
required:
- diskGBEnabled
type: object
backupEnabled:
type: boolean
diskSizeGB:
format: double
type: number
groupID:
type: string
id:
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.kubebuilder.io/beyond_basics/generating_crd.html'
type: string
mongoDBMajorVersion:
type: string
mongoDBVersion:
type: string
mongoURI:
type: string
mongoURIUpdated:
type: string
mongoURIWithOptions:
type: string
name:
type: string
numShards:
format: int64
type: integer
paused:
type: boolean
providerBackupEnabled:
type: boolean
providerSettings:
properties:
backingProviderName:
type: string
diskIOPS:
format: int64
type: integer
encryptEBSVolume:
type: boolean
instanceSizeName:
type: string
providerName:
type: string
regionName:
type: string
type: object
replicationFactor:
format: int64
type: integer
replicationSpec:
additionalProperties:
properties:
analyticsNodes:
format: int64
type: integer
electableNodes:
format: int64
type: integer
priority:
format: int64
type: integer
readOnlyNodes:
format: int64
type: integer
required:
- priority
- electableNodes
- readOnlyNodes
- analyticsNodes
type: object
type: object
srvAddress:
type: string
stateName:
type: string
required:
- backupEnabled
- providerBackupEnabled
- paused
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mongodbatlasprojects.knappek.com
spec:
group: knappek.com
names:
kind: MongoDBAtlasProject
listKind: MongoDBAtlasProjectList
plural: mongodbatlasprojects
singular: mongodbatlasproject
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
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/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/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
orgID:
type: string
privateKey:
properties:
valueFrom:
properties:
secretKeyRef:
description: Selects a key of a secret in the CR's namespace
type: object
required:
- secretKeyRef
type: object
required:
- valueFrom
type: object
publicKey:
type: string
required:
- publicKey
- privateKey
type: object
status:
properties:
clusterCount:
format: int64
type: integer
created:
type: string
id:
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.kubebuilder.io/beyond_basics/generating_crd.html'
type: string
name:
type: string
orgID:
type: string
required:
- id
- name
- orgID
- created
- clusterCount
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
Loading

0 comments on commit 1d62fbb

Please sign in to comment.