This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: "apiextensions.k8s.io/v1beta1" | |
| kind: "CustomResourceDefinition" | |
| metadata: | |
| name: "sslconfigs.blog.velotio.com" | |
| spec: | |
| group: "blog.velotio.com" | |
| version: "v1alpha1" | |
| scope: "Namespaced" | |
| names: | |
| plural: "sslconfigs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: "blog.velotio.com/v1alpha1" | |
| kind: "SslConfig" | |
| metadata: | |
| name: "sslconfig-velotio.com" | |
| spec: | |
| cert: "my cert file" | |
| key : "my private key" | |
| domain: "*.velotio.com" | |
| provider: "digicert" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package v1alpha1 | |
| import ( | |
| "reflect" | |
| apiextensionv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" | |
| apiextension "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" | |
| apierrors "k8s.io/apimachinery/pkg/api/errors" | |
| meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package v1alpha1 | |
| import ( | |
| meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/apimachinery/pkg/runtime" | |
| "k8s.io/apimachinery/pkg/runtime/schema" | |
| "k8s.io/apimachinery/pkg/runtime/serializer" | |
| "k8s.io/client-go/rest" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package v1alpha1 | |
| import ( | |
| meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/client-go/rest" | |
| ) | |
| func (c *SslConfigV1Alpha1Client) SslConfigs(namespace string) SslConfigInterface { | |
| return &sslConfigclient{ | |
| client: c.restClient, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package v1alpha1 | |
| import meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| type SslConfig struct { | |
| meta_v1.TypeMeta `json:",inline"` | |
| meta_v1.ObjectMeta `json:"metadata"` | |
| Spec SslConfigSpec `json:"spec"` | |
| Status SslConfigStatus `json:"status,omitempty"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "time" | |
| "blog.velotio.com/crd-blog/v1alpha1" | |
| "github.com/golang/glog" | |
| apiextension "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: mongodb-service | |
| spec: | |
| ports: | |
| - port: 27017 | |
| targetPort: 27017 | |
| protocol: TCP | |
| name: mongodbport |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: mongodb | |
| spec: | |
| template: | |
| metadata: | |
| labels: | |
| app: mongodb | |
| spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: test-app | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| labels: | |
| app: test-app |
OlderNewer