-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed provider types and fixed crd object creation for DNSEntry (#9)
* fixed finalizer domain and apiGroups in controller.yaml * Allow to set TTL on creating dnsentry in source controller * Renamed provider types, fixed crd object creation for DNSEntry, added crds.yaml
- Loading branch information
1 parent
8ab53b2
commit fc17227
Showing
18 changed files
with
148 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: dnsentries.dns.gardener.cloud | ||
spec: | ||
additionalPrinterColumns: | ||
- JSONPath: .spec.dnsName | ||
description: DNS ObjectName | ||
name: DNS | ||
type: string | ||
- JSONPath: .status.state | ||
description: Status of DNS entry in cloud provider | ||
name: STATUS | ||
type: string | ||
- JSONPath: .metadata.creationTimestamp | ||
name: AGE | ||
type: date | ||
conversion: | ||
strategy: None | ||
group: dns.gardener.cloud | ||
names: | ||
kind: DNSEntry | ||
listKind: DNSEntryList | ||
plural: dnsentries | ||
shortNames: | ||
- dnse | ||
singular: dnsentry | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: dnsowners.dns.gardener.cloud | ||
spec: | ||
additionalPrinterColumns: | ||
- JSONPath: .spec.ownerId | ||
description: Owner Id | ||
name: OWNERID | ||
type: string | ||
- JSONPath: .metadata.creationTimestamp | ||
name: AGE | ||
type: date | ||
conversion: | ||
strategy: None | ||
group: dns.gardener.cloud | ||
names: | ||
kind: DNSOwner | ||
listKind: DNSOwnerList | ||
plural: dnsowners | ||
shortNames: | ||
- dnso | ||
singular: dnsowner | ||
scope: Cluster | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: dnsproviders.dns.gardener.cloud | ||
spec: | ||
additionalPrinterColumns: | ||
- JSONPath: .status.providerType | ||
description: Provider type | ||
name: TYPE | ||
type: string | ||
- JSONPath: .status.state | ||
description: Status of DNS provider | ||
name: STATUS | ||
type: string | ||
- JSONPath: .metadata.creationTimestamp | ||
name: AGE | ||
type: date | ||
conversion: | ||
strategy: None | ||
group: dns.gardener.cloud | ||
names: | ||
kind: DNSProvider | ||
listKind: DNSProviderList | ||
plural: dnsproviders | ||
shortNames: | ||
- dnspr | ||
singular: dnsprovider | ||
scope: Namespaced | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: dns.gardener.cloud/v1alpha1 | ||
kind: DNSProvider | ||
metadata: | ||
name: alicloud | ||
namespace: default | ||
spec: | ||
type: alicloud-dns | ||
secretRef: | ||
name: alicloud-credentials | ||
domains: | ||
include: | ||
- my.own.domain.com |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: alicloud-credentials | ||
namespace: default | ||
type: Opaque | ||
data: | ||
# Replace '...' with values encoded as base64. | ||
ACCESS_KEY_ID: ... | ||
SECRET_ACCESS_KEY: ... |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* | ||
*/ | ||
|
||
package route53 | ||
package aws | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/aws" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* | ||
*/ | ||
|
||
package route53 | ||
package aws | ||
|
||
import ( | ||
"fmt" | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* | ||
*/ | ||
|
||
package googledns | ||
package google | ||
|
||
import ( | ||
"context" | ||
|
This file contains 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
This file contains 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