v1alpha1

package
v0.0.0-...-16baae6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the appconfigmgr v1alpha1 API group +kubebuilder:object:generate=true +groupName=appconfigmgr.cft.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "appconfigmgr.cft.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AppEnvConfigTemplateAllowedEgress

type AppEnvConfigTemplateAllowedEgress struct {
	// Type of egress traffic (i.e. "http").
	Type string `json:"type,omitempty"`
	// Hosts to allow egress to (i.e. "www.google.com").
	Hosts []string `json:"hosts,omitempty"`
}

func (*AppEnvConfigTemplateAllowedEgress) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateAllowedEgress.

func (*AppEnvConfigTemplateAllowedEgress) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateAuth

type AppEnvConfigTemplateAuth struct {
	// Configuration for validating JWTs.
	JWT       *AppEnvConfigTemplateJWT       `json:"jwt,omitempty"`
	GCPAccess *AppEnvConfigTemplateGCPAccess `json:"gcpAccess,omitempty"`
}

func (*AppEnvConfigTemplateAuth) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateAuth.

func (*AppEnvConfigTemplateAuth) DeepCopyInto

func (in *AppEnvConfigTemplateAuth) DeepCopyInto(out *AppEnvConfigTemplateAuth)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateGCPAccess

type AppEnvConfigTemplateGCPAccess struct {
	// Defines the type of GCP access auth granted to the application (must be "secret" or "vault").
	AccessType string `json:"accessType,omitempty"`
	// Used with accessType="secret". Declares the properties of the secret resource.
	SecretInfo *AppEnvConfigTemplateGCPAccessSecretInfo `json:"secretInfo,omitempty"`
	// Used with accessType="vault". Declares the configured Google Cloud roleSet name
	// to be enabled via the given Kubernetes service accounts for use by the application.
	// See https://www.vaultproject.io/docs/secrets/gcp/index.html for details on creating roleSets.
	VaultInfo *AppEnvConfigTemplateGCPAccessVaultInfo `json:"vaultInfo,omitempty"`
}

func (*AppEnvConfigTemplateGCPAccess) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateGCPAccess.

func (*AppEnvConfigTemplateGCPAccess) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateGCPAccessSecretInfo

type AppEnvConfigTemplateGCPAccessSecretInfo struct {
	// The name of the Secret.
	Name string `json:"name,omitempty"`
	// The namespace of the Secret.
	Namespace string `json:"namespace,omitempty"`
}

func (*AppEnvConfigTemplateGCPAccessSecretInfo) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateGCPAccessSecretInfo.

func (*AppEnvConfigTemplateGCPAccessSecretInfo) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateGCPAccessVaultInfo

type AppEnvConfigTemplateGCPAccessVaultInfo struct {
	// Kubernetes service account name used in Vault authentication.
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// Vault Google Cloud Secrets Engine mounted path.
	Path string `json:"path,omitempty"`
	// Vault Google Cloud Secrets Engine roleset name to retrieve credentials from.
	Roleset string `json:"roleset,omitempty"`
}

func (*AppEnvConfigTemplateGCPAccessVaultInfo) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateGCPAccessVaultInfo.

func (*AppEnvConfigTemplateGCPAccessVaultInfo) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateIngress

type AppEnvConfigTemplateIngress struct {
	TLS AppEnvConfigTemplateIngressTLS `json:"tls,omitempty"`
}

AppEnvConfigTemplateIngress configures app-wide ingress policies.

func (*AppEnvConfigTemplateIngress) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateIngress.

func (*AppEnvConfigTemplateIngress) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateIngressTLS

type AppEnvConfigTemplateIngressTLS struct {
	CertSecrets []string `json:"certSecrets,omitempty"`
}

AppEnvConfigTemplateIngressTLS configures app-wide ingress TLS policy.

func (*AppEnvConfigTemplateIngressTLS) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateIngressTLS.

func (*AppEnvConfigTemplateIngressTLS) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateJWT

type AppEnvConfigTemplateJWT struct {
	// Type of system to accept JWTs from (i.e. "firebase").
	Type string `json:"type,omitempty"`
	// Parameters used to identify project/etc. for a given type of system.
	Params map[string]string `json:"params,omitempty"`
}

func (*AppEnvConfigTemplateJWT) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateJWT.

func (*AppEnvConfigTemplateJWT) DeepCopyInto

func (in *AppEnvConfigTemplateJWT) DeepCopyInto(out *AppEnvConfigTemplateJWT)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateRelatedClientInfo

type AppEnvConfigTemplateRelatedClientInfo struct {
	// Name of the allowed client (corresponds to the "app" label on client Pod). It can be namespaced (i.e. "namespace/app") or it will default to the same namespace as the app config.
	Name string `json:"name,omitempty"`
}

func (*AppEnvConfigTemplateRelatedClientInfo) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateRelatedClientInfo.

func (*AppEnvConfigTemplateRelatedClientInfo) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateServiceInfo

type AppEnvConfigTemplateServiceInfo struct {
	// Name of the service.
	Name string `json:"name,omitempty"`
	// Must match the "app" label on the corresponding deployed Pods.
	DeploymentApp string `json:"deploymentApp,omitempty"`
	// Must match the "version" label on the corresponding deployed Pods.
	DeploymentVersion string `json:"deploymentVersion,omitempty"`
	// Must match the port exposed on the corresponding deployed Pods.
	DeploymentPort int32 `json:"deploymentPort,omitempty"`
	// The port for the Kubernetes Service that will be created.
	ServicePort int32 `json:"servicePort,omitempty"`
	// Protocol to use for the service (i.e. "TCP").
	DeploymentPortProtocol corev1.Protocol `json:"deploymentPortProtocol,omitempty"`
	// The set of clients that are allowed to call the service.
	AllowedClients []AppEnvConfigTemplateRelatedClientInfo `json:"allowedClients,omitempty"`
	// Disables the application-wide auth policy (i.e. JWT) for this service.
	DisableAuth bool `json:"disableAuth,omitempty"`
	// Attaches a kubernetes service account to created pods.
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// Specifies the ingress policy for this service (external access).
	Ingress *ServiceIngress `json:"ingress,omitempty"`
}

AppEnvConfigTemplateServiceInfo defines the service info of AppEnvConfigTemplate

func (*AppEnvConfigTemplateServiceInfo) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateServiceInfo.

func (*AppEnvConfigTemplateServiceInfo) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateStatusConditionType

type AppEnvConfigTemplateStatusConditionType string

type AppEnvConfigTemplateV2

type AppEnvConfigTemplateV2 struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AppEnvConfigTemplateV2Spec   `json:"spec,omitempty"`
	Status AppEnvConfigTemplateV2Status `json:"status,omitempty"`
}

func (*AppEnvConfigTemplateV2) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateV2.

func (*AppEnvConfigTemplateV2) DeepCopyInto

func (in *AppEnvConfigTemplateV2) DeepCopyInto(out *AppEnvConfigTemplateV2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppEnvConfigTemplateV2) DeepCopyObject

func (in *AppEnvConfigTemplateV2) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppEnvConfigTemplateV2List

type AppEnvConfigTemplateV2List struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AppEnvConfigTemplateV2 `json:"items"`
}

AppEnvConfigTemplateV2List contains a list of AppEnvConfigTemplateV2 +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*AppEnvConfigTemplateV2List) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateV2List.

func (*AppEnvConfigTemplateV2List) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppEnvConfigTemplateV2List) DeepCopyObject

func (in *AppEnvConfigTemplateV2List) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppEnvConfigTemplateV2Spec

type AppEnvConfigTemplateV2Spec struct {
	// Services that make up this application (set of services).
	Services []AppEnvConfigTemplateServiceInfo `json:"services,omitempty"`
	// Whitelisted destinations that services may initiate outgoing connections with.
	AllowedEgress []AppEnvConfigTemplateAllowedEgress `json:"allowedEgress,omitempty"`
	// Application-wide authentication configuration.
	Auth *AppEnvConfigTemplateAuth `json:"auth,omitempty"`
	// Ingress configuration.
	Ingress AppEnvConfigTemplateIngress `json:"ingress,omitempty"`
}

AppEnvConfigTemplateV2Spec defines the desired state of AppEnvConfigTemplateV2

func (*AppEnvConfigTemplateV2Spec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateV2Spec.

func (*AppEnvConfigTemplateV2Spec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppEnvConfigTemplateV2Status

type AppEnvConfigTemplateV2Status struct{}

AppEnvConfigTemplateV2Status defines the observed state of AppEnvConfigTemplateV2

func (*AppEnvConfigTemplateV2Status) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppEnvConfigTemplateV2Status.

func (*AppEnvConfigTemplateV2Status) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceIngress

type ServiceIngress struct {
	Host string `json:"host,omitempty"`
	Path string `json:"path,omitempty"`
}

func (*ServiceIngress) DeepCopy

func (in *ServiceIngress) DeepCopy() *ServiceIngress

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceIngress.

func (*ServiceIngress) DeepCopyInto

func (in *ServiceIngress) DeepCopyInto(out *ServiceIngress)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL