# README
= HOW-TO
Copy content from:
- https://github.com/redhat-appstudio/application-api/blob/main/api/v1alpha1/environment_types.go
- https://github.com/redhat-appstudio/application-api/blob/main/api/v1alpha1/snapshotenvironmentbinding_types.go
- https://github.com/redhat-appstudio/application-api/blob/main/api/v1alpha1/zz_generated.deepcopy.go
and remove everything that is not related to the types: Environment
, Application
.
# Constants
DeploymentStrategy_AppStudioAutomated: Promotions to an Environment with this strategy will occur if a previous ("parent") environment in the environment graph was successfully promoted to.
DeploymentStrategy_Manual: Promotions to an Environment with this strategy will occur due to explicit user intent.
No description provided by the author
No description provided by the author
# Variables
AddToScheme adds the types in this group-version to the given scheme.
GroupVersion is group version used to register these objects.
SchemeBuilder is used to add go types to the GroupVersionKind scheme.
# Structs
Application is the Schema for the applications API +kubebuilder:resource:path=applications,shortName=hasapp;ha;app +kubebuilder:subresource:status.
ApplicationGitRepository defines a git repository for a given Application resource (either appmodel or gitops).
ApplicationList contains a list of Application.
ApplicationSpec defines the desired state of Application.
ApplicationStatus defines the observed state of Application.
Environment is the Schema for the environments API +kubebuilder:resource:path=environments,shortName=env.
EnvironmentConfiguration contains Environment-specific configurations details, to be used when generating Component/Application GitOps repository resources.
EnvironmentList contains a list of Environment.
EnvironmentSpec defines the desired state of Environment.
EnvironmentStatus defines the observed state of Environment.
EnvVarPair describes environment variables to use for the component.
KubernetesClusterCredentials allows you to specify cluster credentials for stanadard K8s cluster (e.g.
UnstableEnvironmentConfiguration contains fields that are related to configuration of the target environment: - credentials for connecting to the cluster (if connecting to a non-KCP cluster) - KCP workspace configuration credentials (TBD)
Note: as of this writing (Jul 2022), I expect the contents of this struct to undergo major changes, and the API should not be considered complete, or even a reflection of final desired state.
# Type aliases
DeploymentStrategyType defines the available promotion/deployment strategies for an Environment See Environment API doc for details.
EnvironmentType currently indicates whether an environment is POC/Non-POC, see API doc for details.