Skip to content

Commit

Permalink
add SparebankenVest/azure-key-vault-to-kubernetes
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Feb 11, 2024
1 parent 4e8d98a commit 4a053bc
Show file tree
Hide file tree
Showing 25 changed files with 1,249 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,10 @@ Files: crd-catalog/solo-io/gloo/*
Copyright: The solo-io/gloo Authors
License: MIT

Files: crd-catalog/SparebankenVest/azure-key-vault-to-kubernetes/*
Copyright: The SparebankenVest/azure-key-vault-to-kubernetes Authors
License: Apache-2.0

Files: crd-catalog/strimzi/strimzi-kafka-operator/*
Copyright: The strimzi/strimzi-kafka-operator Authors
License: Apache-2.0
Expand Down
9 changes: 9 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,15 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/solo-io/gloo/blob/master/install/helm/gloo/crds/graphql.gloo.solo.io_v1beta1_GraphQLApi.yaml",
],
},
UpstreamSource {
project_name: "SparebankenVest/azure-key-vault-to-kubernetes",
license: APACHE_V2,
urls: &[
"https://github.com/SparebankenVest/azure-key-vault-to-kubernetes/blob/master/crds/AzureKeyVaultIdentity.yaml",
"https://github.com/SparebankenVest/azure-key-vault-to-kubernetes/blob/master/crds/AzureKeyVaultSecret.yaml",
"https://github.com/SparebankenVest/azure-key-vault-to-kubernetes/blob/master/crds/AzureManagedIdentity.yaml",
],
},
UpstreamSource {
project_name: "strimzi/strimzi-kafka-operator",
license: APACHE_V2,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
controller-gen.kubebuilder.io/version: "v0.13.0"
name: "azurekeyvaultsecrets.spv.no"
spec:
group: "spv.no"
names:
categories:
- "all"
kind: "AzureKeyVaultSecret"
listKind: "AzureKeyVaultSecretList"
plural: "azurekeyvaultsecrets"
shortNames:
- "akvs"
singular: "azurekeyvaultsecret"
scope: "Namespaced"
versions:
- additionalPrinterColumns:
- description: "Which Azure Key Vault this resource is associated with"
jsonPath: ".spec.vault.name"
name: "Vault"
type: "string"
- description: "Which Azure Key Vault object this resource is associated with"
jsonPath: ".spec.vault.object.name"
name: "Vault Object"
type: "string"
- description: "Which Kubernetes Secret this resource is synched with, if any"
jsonPath: ".status.secretName"
name: "Secret Name"
type: "string"
- description: "When this resource was last synched with Azure Key Vault"
jsonPath: ".status.lastAzureUpdate"
name: "Synched"
type: "date"
- description: "Time since this resource was created"
jsonPath: ".metadata.creationTimestamp"
name: "Age"
type: "date"
name: "v1"
schema:
openAPIV3Schema:
description: "AzureKeyVaultSecret is a specification for a AzureKeyVaultSecret resource"
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: "AzureKeyVaultSecretSpec is the spec for a AzureKeyVaultSecret resource"
properties:
output:
description: "AzureKeyVaultOutput defines output sources, currently only support Secret"
properties:
secret:
description: "AzureKeyVaultOutputSecret has information needed to output a secret from Azure Key Vault to Kubernetes as a Secret resource"
properties:
chainOrder:
description: "By setting chainOrder to ensureserverfirst the server certificate will be moved first in the chain"
enum:
- "ensureserverfirst"
type: "string"
dataKey:
description: "The key to use in Kubernetes secret when setting the value from Azure Key Vault object data"
type: "string"
name:
description: "Name for Kubernetes secret"
type: "string"
type:
description: "Type of Secret in Kubernetes"
type: "string"
required:
- "name"
type: "object"
transform:
items:
type: "string"
type: "array"
type: "object"
vault:
description: "AzureKeyVault contains information needed to get the Azure Key Vault secret from Azure Key Vault"
properties:
name:
description: "Name of the Azure Key Vault"
type: "string"
object:
description: "AzureKeyVaultObject has information about the Azure Key Vault object to get from Azure Key Vault"
properties:
contentType:
description: "AzureKeyVaultObjectContentType defines what content type a secret contains, only used when type is multi-key-value-secret"
enum:
- "application/x-json"
- "application/x-yaml"
type: "string"
name:
description: "The object name in Azure Key Vault"
type: "string"
type:
description: "AzureKeyVaultObjectType defines which Object type to get from Azure Key Vault"
enum:
- "secret"
- "certificate"
- "key"
- "multi-key-value-secret"
type: "string"
version:
description: "The object version in Azure Key Vault"
type: "string"
required:
- "name"
- "type"
type: "object"
required:
- "name"
- "object"
type: "object"
required:
- "vault"
type: "object"
status:
description: "AzureKeyVaultSecretStatus is the status for a AzureKeyVaultSecret resource"
properties:
lastAzureUpdate:
format: "date-time"
type: "string"
secretHash:
type: "string"
secretName:
type: "string"
required:
- "secretHash"
- "secretName"
type: "object"
required:
- "spec"
type: "object"
served: true
storage: false
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
helm.sh/resource-policy: "keep"
labels:
app.kubernetes.io/name: "akv2k8s"
name: "azurekeyvaultidentities.spv.no"
spec:
group: "spv.no"
names:
categories:
- "all"
kind: "AzureKeyVaultIdentity"
listKind: "AzureKeyVaultIdentityList"
plural: "azurekeyvaultidentities"
shortNames:
- "akvi"
singular: "azurekeyvaultidentity"
scope: "Namespaced"
versions:
- name: "v1alpha1"
schema:
openAPIV3Schema:
properties:
spec:
properties:
name:
description: "Name of the Azure Managed Identity to"
type: "string"
required:
- "identity"
served: true
storage: true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
controller-gen.kubebuilder.io/version: "v0.13.0"
name: "azurekeyvaultsecrets.spv.no"
spec:
group: "spv.no"
names:
categories:
- "all"
kind: "AzureKeyVaultSecret"
listKind: "AzureKeyVaultSecretList"
plural: "azurekeyvaultsecrets"
shortNames:
- "akvs"
singular: "azurekeyvaultsecret"
scope: "Namespaced"
versions:
- additionalPrinterColumns:
- description: "Which Azure Key Vault this resource is associated with"
jsonPath: ".spec.vault.name"
name: "Vault"
type: "string"
- description: "Which Azure Key Vault object this resource is associated with"
jsonPath: ".spec.vault.object.name"
name: "Vault Object"
type: "string"
- description: "Which Kubernetes Secret this resource is synched with, if any"
jsonPath: ".status.secretName"
name: "Output Object"
type: "string"
- description: "When this resource was last synched with Azure Key Vault"
jsonPath: ".status.lastAzureUpdate"
name: "Synched"
type: "date"
- description: "Time since this resource was created"
jsonPath: ".metadata.creationTimestamp"
name: "Age"
type: "date"
name: "v1alpha1"
schema:
openAPIV3Schema:
description: "AzureKeyVaultSecret is a specification for a AzureKeyVaultSecret resource"
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: "AzureKeyVaultSecretSpec is the spec for a AzureKeyVaultSecret resource"
properties:
output:
description: "AzureKeyVaultOutput defines output sources, currently only support Secret"
properties:
secret:
description: "AzureKeyVaultOutputSecret has information needed to output a secret from Azure Key Vault to Kubernetes as a Secret resource"
properties:
dataKey:
description: "The key to use in Kubernetes secret when setting the value from Azure Key Vault object data"
type: "string"
name:
description: "Name for Kubernetes secret"
type: "string"
type:
description: "Type of Secret in Kubernetes"
type: "string"
required:
- "name"
type: "object"
transforms:
items:
type: "string"
type: "array"
type: "object"
vault:
description: "AzureKeyVault contains information needed to get the Azure Key Vault secret from Azure Key Vault"
properties:
name:
description: "Name of the Azure Key Vault"
type: "string"
object:
description: "AzureKeyVaultObject has information about the Azure Key Vault object to get from Azure Key Vault"
properties:
contentType:
description: "AzureKeyVaultObjectContentType defines what content type a secret contains, only used when type is multi-key-value-secret"
enum:
- "application/x-json"
- "application/x-yaml"
type: "string"
name:
description: "The object name in Azure Key Vault"
type: "string"
type:
description: "AzureKeyVaultObjectType defines which Object type to get from Azure Key Vault"
enum:
- "secret"
- "certificate"
- "key"
- "multi-key-value-secret"
type: "string"
version:
description: "The object version in Azure Key Vault"
type: "string"
required:
- "name"
- "type"
type: "object"
required:
- "name"
- "object"
type: "object"
required:
- "vault"
type: "object"
status:
description: "AzureKeyVaultSecretStatus is the status for a AzureKeyVaultSecret resource"
properties:
lastAzureUpdate:
format: "date-time"
type: "string"
secretHash:
type: "string"
secretName:
type: "string"
required:
- "secretHash"
- "secretName"
type: "object"
required:
- "spec"
type: "object"
served: true
storage: false
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
helm.sh/resource-policy: "keep"
labels:
app.kubernetes.io/name: "akv2k8s"
name: "azuremanagedidentities.spv.no"
spec:
group: "spv.no"
names:
categories:
- "all"
kind: "AzureManagedIdentity"
listKind: "AzureManagedIdentityList"
plural: "azuremanagedidentities"
shortNames:
- "ami"
singular: "azuremanagedidentity"
scope: "Namespaced"
versions:
- name: "v1alpha1"
schema:
openAPIV3Schema:
properties:
spec:
properties:
name:
description: "Name of the Azure Managed Identity to"
type: "string"
required:
- "name"
served: true
storage: true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
Loading

0 comments on commit 4a053bc

Please sign in to comment.