Skip to content

Instantly share code, notes, and snippets.

@erictune
Last active June 25, 2020 22:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erictune/47d5bfb0fd0c1a7273ecaa5a9fcf5d52 to your computer and use it in GitHub Desktop.
Save erictune/47d5bfb0fd0c1a7273ecaa5a9fcf5d52 to your computer and use it in GitHub Desktop.
How Condition Types are defined across various types.go files that follow the Kubernetes Resource Model (KRM)
Advice on how to use conditions in Kubernetes types has varied over time and is interpreted differently by different people.
I'm interested in how people who chose to use conditions, and how they define condition type names.
I've previously crawled github to find definitions of conditions in types.go files. Here I present 364 code
snippets from various types.go files which are go `const` blocks, which match the substring `ConditionType`.
The data is in YAML format (I think). `example_url` is a github url for a file that contains this code snippet. It is
_not_ necessarily the canonical location for this file. The link is to the first line of the constant definition block.
The `approx_popularity` is a measure of how many times I saw this block across non-identical types.go files, so a rough
measure of how often people are copy-paste-ing a code block.
the code block is just a string with go code in it.
Scroll to the bottom or try this link to see a summary of the data:
https://gist.github.com/erictune/47d5bfb0fd0c1a7273ecaa5a9fcf5d52#file-topconditions-txt
example_url: https://github.com/sttts/sessions.kubecon.io/blob/65172ee54349f23492201c5853f92ef4d5a5350e/pkg/apis/kubecon.io/v1/types.go#L48
approx_popularity: 1
code_block: >
const (
SessionConditionTypeStarted SessionConditionType = "Started"
)
----
example_url: https://github.com/odra/openshift-template-operator/blob/cd5d53ba138372ad3d55e9eba7f58883d6861ad9/pkg/apis/odra/v1alpha1/okdtemplate_types.go#L11
approx_popularity: 1
code_block: >
const (
OKDTemplateNone OKDTemplateConditionType = ""
OKDTemplateNew OKDTemplateConditionType = "New"
OKDTemplateReconcile OKDTemplateConditionType = "Reconcile"
OKDTemplateReady OKDTemplateConditionType = "Ready"
OKDTemplateError OKDTemplateConditionType = "Error"
OKDTemplateDelete OKDTemplateConditionType = "Delete"
)
----
example_url: https://github.com/wso2-cellery/mesh-controller/blob/7cdf20ff324b5cc562624cda675a12b44a19e17b/pkg/apis/mesh/v1alpha1/composite_types.go#L56
approx_popularity: 2
code_block: >
const (
CompositeReady CompositeConditionType = "Ready"
)
----
example_url: https://github.com/openshift/cluster-ingress-operator/blob/3a3e0ba04fdcc1ec252eba08a485056ec4d9120c/pkg/api/v1/types.go#L76
approx_popularity: 1
code_block: >
const (
IngressControllerAdmittedConditionType = "Admitted"
)
----
example_url: https://github.com/wso2-cellery/mesh-controller/blob/976fd3126954dc562a79bb5b89652d0c29dcc15d/pkg/apis/mesh/v1alpha1/cell_types.go#L60
approx_popularity: 2
code_block: >
const (
CellReady CellConditionType = "Ready"
)
----
example_url: https://github.com/coderwangke/broadcastjob/blob/ec6ed8f4e4a9b60a544648bf58378e94c3ddd08c/pkg/apis/broadcastjob/apps/v1beta1/types.go#L38
approx_popularity: 1
code_block: >
const (
JobComplete JobConditionType = "Complete"
JobFailed JobConditionType = "Failed"
)
----
example_url: https://github.com/openshift-knative/knative-eventing-operator/blob/6fd04ed574c83544abc601ee577e94b0263c215b/pkg/apis/eventing/v1alpha1/knativeeventing_types.go#L10
approx_popularity: 4
code_block: >
const (
InstallSucceeded apis.ConditionType = "InstallSucceeded"
DeploymentsAvailable apis.ConditionType = "DeploymentsAvailable"
)
----
example_url: https://github.com/nmstate/kubernetes-nmstate/blob/c8a97472597179f3622e55fa23bc07350274c2a8/pkg/apis/nmstate/v1alpha1/nodenetworkstate_types.go#L33
approx_popularity: 1
code_block: >
const (
NodeNetworkStateConditionAvailable ConditionType = "Available"
NodeNetworkStateConditionFailing ConditionType = "Failing"
)
----
example_url: https://github.com/openshift/cluster-api-provider-gcp/blob/7fd17e9c702ee2f9fe952bab3d0ebc78263a0a0c/pkg/apis/gcpprovider/v1beta1/gcpmachineproviderstatus_types.go#L34
approx_popularity: 1
code_block: >
const (
// MachineCreated indicates whether the machine has been created or not. If not,
// it should include a reason and message for the failure.
MachineCreated GCPMachineProviderConditionType = "MachineCreated"
)
----
example_url: https://github.com/kyma-project/kyma/blob/435ab4cf24eea508f1e24994f6eb793a409d82e9/components/event-bus/api/push/eventing.kyma-project.io/v1alpha1/types.go#L62
approx_popularity: 1
code_block: >
const (
// ConditionTrue value for the Kyma subscription condition status.
ConditionTrue ConditionStatus = "True"
// ConditionFalse value for the Kyma subscription condition status.
ConditionFalse ConditionStatus = "False"
// Ready label for the Kyma subscription condition type.
Ready SubscriptionConditionType = "is-ready"
// EventsActivated label for the Kyma subscription condition type.
EventsActivated SubscriptionConditionType = "events-activated"
// SubscriptionReady label for Knative Subscription readiness in Kyma Subscription
SubscriptionReady SubscriptionConditionType = "kn-subscription-ready"
)
----
example_url: https://github.com/moiot/gravity-operator/blob/c191d2031d65fc47351412c72553026a9bd89707/pkg/apis/pipeline/v1alpha1/types.go#L62
approx_popularity: 1
code_block: >
const (
PipelineConditionRunning PipelineConditionType = "Running"
PipelineConditionStream PipelineConditionType = "Stream"
)
----
example_url: https://github.com/kubevirt/hyperconverged-cluster-operator/blob/132a8985ed6f1c54657b4cfab306012dad82c9f5/pkg/apis/hco/v1alpha1/hyperconverged_types.go#L45
approx_popularity: 1
code_block: >
const ConditionReconcileComplete conditionsv1.ConditionType = "ReconcileComplete"
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// HyperConverged is the Schema for the hyperconvergeds API
// +k8s:openapi-gen=true
type HyperConverged struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec HyperConvergedSpec `json:"spec,omitempty"`
Status HyperConvergedStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// HyperConvergedList contains a list of HyperConverged
type HyperConvergedList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []HyperConverged `json:"items"`
}
func init() {
----
example_url: https://github.com/n3wscott/task/blob/85eb518838006838ada8e277befc9704aae2564b/pkg/apis/n3wscott/v1alpha1/task_types.go#L58
approx_popularity: 1
code_block: >
const (
// TaskConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
TaskConditionSucceeded = apis.ConditionSucceeded
// TaskConditionAddressable has status true when this Task meets the
// Addressable contract.
TaskConditionAddressable apis.ConditionType = "Addressable"
// TaskConditionResult tracks the job result.
TaskConditionResult apis.ConditionType = "Result"
)
----
example_url: https://github.com/metaparticle-io/container-lib/blob/7a199b6f8132c982b1cf1e81663d0d262a60a22a/sharder/vendor/src/github.com/kubernetes/client-go/1.4/pkg/apis/certificates/types.go#L63
approx_popularity: 35
code_block: >
const (
CertificateApproved RequestConditionType = "Approved"
CertificateDenied RequestConditionType = "Denied"
)
----
example_url: https://github.com/kudzu-sh/api/blob/f8678edd0507a2639020e398a0830fed38ed6683/kudzu/v1alpha1/api.go#L45
approx_popularity: 1
code_block: >
const (
APIReady = duck.ConditionReady
APIApplied duck.ConditionType = "Applied"
APIUpdated duck.ConditionType = "Updated"
)
----
example_url: https://github.com/matzew/kafka-source-operator/blob/c78f42a85217bbdee351a55e1a1a441bb64200e6/pkg/apis/eventing/v1alpha1/knativeeventing_types.go#L77
approx_popularity: 1
code_block: >
const (
// EventingConditionReady is set when the Eventing Operator is installed, configured and ready.
EventingConditionReady = apis.ConditionReady
// InstallSucceeded is set when the Knative Eventing is installed.
InstallSucceeded apis.ConditionType = "InstallSucceeded"
)
----
example_url: https://github.com/dbenque/mw-injector/blob/f966e960a5b45ab1d2e629756e918b92ba3ebca0/pkg/api/mwinjector/v1/types.go#L54
approx_popularity: 1
code_block: >
const (
// MWInjectorRunning means the mwinjector is running.
MWInjectorRunning MWInjectorConditionType = "Running"
// MWInjectorStopped means the mwinjector is Stopped.
MWInjectorStopped MWInjectorConditionType = "Stopped"
// MWInjectorFailed means the workflow has failed its execution.
MWInjectorFailed MWInjectorConditionType = "Failed"
)
----
example_url: https://github.com/mrIncompetent/cluster-controller/blob/662783cfaf113e95947db726f9d805116706c831/pkg/api/v1/cluster_types.go#L69
approx_popularity: 1
code_block: >
const (
// ClusterProgressing defines if the cluster is currently being created/updated.
ClusterProgressing ClusterConditionType = "Progressing"
)
----
example_url: https://github.com/aneeshkp/barometer-operator/blob/59930bc3ccccf3289857647fa8604f4673d4b4c6/pkg/apis/collectd/v1alpha1/collectd_types.go#L21
approx_popularity: 2
code_block: >
const (
CollectdConditionProvisioning ConditionType = "Provisioning"
CollectdConditionDeployed ConditionType = "Deployed"
CollectdConditionScalingUp ConditionType = "ScalingUp"
CollectdConditionScalingDown ConditionType = "ScalingDown"
CollectdConditionUpgrading ConditionType = "Upgrading"
)
----
example_url: https://github.com/gardener/gardener/blob/161695ada2068617f962cde5f2aa6d4ddce097ab/pkg/apis/core/v1alpha1/types_controllerinstallation.go#L66
approx_popularity: 1
code_block: >
const (
// ControllerInstallationValid is a condition type for indicating whether the installation request is valid.
ControllerInstallationValid ConditionType = "Valid"
// ControllerInstallationInstalled is a condition type for indicating whether the controller has been installed.
ControllerInstallationInstalled ConditionType = "Installed"
)
----
example_url: https://github.com/vitessio/vitess-operator/blob/fbad8683b217c7d773a8252d38538d6a9f4b52c5/pkg/apis/vitess/v1alpha2/vitesscluster_types.go#L68
approx_popularity: 1
code_block: >
const (
VitessClusterConditionAvailable ClusterConditionType = "Available"
VitessClusterConditionRecovering ClusterConditionType = "Recovering"
VitessClusterConditionScaling ClusterConditionType = "Scaling"
VitessClusterConditionUpgrading ClusterConditionType = "Upgrading"
)
----
example_url: https://github.com/spencer-p/jobsource/blob/43043cddaf8499f9ca2a9ae07d9429b70d5ca9fa/pkg/apis/jobsource/v1alpha1/jobsource_types.go#L64
approx_popularity: 1
code_block: >
const (
// JobSourceConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
JobSourceConditionReady = apis.ConditionReady
// JobSourceConditionSinkProvided is true when the JobSource has been
// configured with a sink.
JobSourceConditionSinkProvided apis.ConditionType = "SinkProvided"
// JobSourceConditionStarted is true when the JobSource has had a Job
// created. This is analogous to ContainerSource's
// ContainerConditionDeployed.
JobSourceConditionStarted apis.ConditionType = "Started"
)
----
example_url: https://github.com/openshift/open-service-broker-sdk/blob/23f0366c2023bf7641e450767733e1792c673ef9/pkg/apis/broker/v1alpha1/types.go#L77
approx_popularity: 2
code_block: >
const (
// ServiceInstanceReady indicates the readiness of the template
// instantiation.
ServiceInstanceReady ServiceInstanceConditionType = "Ready"
// ServiceInstanceInstantiateFailed indicates the failure of the provision request
ServiceInstanceFailed ServiceInstanceConditionType = "Failed"
APIGroupVersion = "v1alpha1"
)
----
example_url: https://github.com/alauda-hackathon/kind-controller/blob/befc2d0e96727fe7d7ea24d4cbf59a3df7c08d5b/api/v1/kindconfig_types.go#L63
approx_popularity: 1
code_block: >
const (
PodCondition KindClusterConditionType = "Pod"
ClusterCondition KindClusterConditionType = "Cluster"
)
----
example_url: https://github.com/Coderhypo/KubeService/blob/7cfe69a7fced7d8f375279ec2caf1dfbd800d0dd/pkg/apis/app/v1/app_types.go#L45
approx_popularity: 1
code_block: >
const (
AppAvailable AppConditionType = "Available"
AppProgressing AppConditionType = "Progressing"
)
----
example_url: https://github.com/kubevault/cli/blob/927f01ea95deb9eb6a1fb98f4d12d3e0ea7e2df2/vendor/kubevault.dev/operator/apis/policy/v1alpha1/vaultpolicy_types.go#L87
approx_popularity: 2
code_block: >
const (
PolicyConditionFailure PolicyConditionType = "Failure"
)
----
example_url: https://github.com/EnMasseProject/enmasse/blob/c4982e5f4c1f78079a90a7b4476a3346b577e020/pkg/apis/iot/v1alpha1/types_project.go#L45
approx_popularity: 1
code_block: >
const (
ProjectConditionTypeReady ProjectConditionType = "Ready"
ProjectConditionTypeResourcesCreated ProjectConditionType = "ResourcesCreated"
ProjectConditionTypeResourcesReady ProjectConditionType = "ResourcesReady"
)
----
example_url: https://github.com/qiniu-ava/snapshot-operator/blob/5d43749153254c8bc1c8fe78681966139e60a6ad/pkg/apis/ava/v1alpha1/types.go#L82
approx_popularity: 1
code_block: >
const (
SnapshotComplete SnapshotConditionType = "Complete"
SnapshotFailed SnapshotConditionType = "Failed"
)
----
example_url: https://github.com/larryck/StatefulGuardian/blob/93c4d4f9e5f1d22a0da0475d0c7216083d9399df/pkg/apis/statefulguardian/v1alpha1/types.go#L65
approx_popularity: 1
code_block: >
const (
// StatefulguardianReady means the Statefulguardian is able to service requests.
StatefulguardianReady StatefulguardianConditionType = "Ready"
)
----
example_url: https://github.com/google/knative-gcp/blob/3073fd09fb45be046d81c22ff9cb941e83082fb7/pkg/apis/events/v1alpha1/scheduler_types.go#L66
approx_popularity: 1
code_block: >
const (
// SchedulerConditionReady has status True when Scheduler is ready to send events.
SchedulerConditionReady = apis.ConditionReady
// JobReady has status True when Scheduler Job has been successfully created.
JobReady apis.ConditionType = "JobReady"
)
----
example_url: https://github.com/danisla/appdb-operator/blob/65ad0639e11cba6b394e094aca59c99759d22b89/pkg/types/appdb.go#L41
approx_popularity: 1
code_block: >
// The condition type constants listed below are in the order they should roughly happen and in the order they
// exist in the status.conditions list. This gives visibility to what the operator is doing.
// Some conditions can be satisfied in parallel with others.
const (
// ConditionTypeAppDBInstanceReady is True when the AppDBInstance resource is available and ready.
ConditionTypeAppDBInstanceReady AppDBConditionType = "AppDBInstanceReady"
// ConditionTypeDBCreateComplete is True when the DB create driver action is complete.
ConditionTypeDBCreateComplete AppDBConditionType = "DBCreateComplete"
// ConditionTypeSnapshotLoadComplete is True when the Job for loading SQL data has been created and is complete.
ConditionTypeSnapshotLoadComplete AppDBConditionType = "SnapshotLoadComplete"
// ConditionTypeCredentialsSecretCreated is True when the secret containing the database credentials and info has been created.
ConditionTypeCredentialsSecretCreated AppDBConditionType = "CredentialsSecretCreated"
// ConditionTypeAppDBReady means that all prior conditions are Ready
ConditionTypeAppDBReady AppDBConditionType = "Ready"
)
----
example_url: https://github.com/kubehippie/database-operator/blob/5eb911e91413077ec4a3b834b6544b8735408110/pkg/apis/operator/v1alpha1/types.go#L23
approx_popularity: 1
code_block: >
const (
// Deployed means Server Deployment and Service for exposing Server or Database are created.
Deployed ServerConditionType = "Deployed"
)
----
example_url: https://github.com/adracus/kubeception/blob/3a183ddb42b3f2247086c67ef20cf8d2ed2a19ec/pkg/apis/certificate/v1alpha1/types.go#L68
approx_popularity: 1
code_block: >
const (
KeyPairPresent KeyPairConditionType = "Present"
KeyPairValid KeyPairConditionType = "Valid"
)
----
example_url: https://github.com/moiot/gravity-operator/blob/19d85c770f459a231169fd8c592adecc8592d01a/pkg/apis/cluster/v1alpha1/types.go#L87
approx_popularity: 1
code_block: >
const (
// Available means the deployment is available, ie. at least the minimum available
// replicas required are up and running for at least minReadySeconds.
ClusterAvailable ClusterConditionType = "Available"
// UpToDate means every pipeline in cluster has been updated.
ClusterUpToDate ClusterConditionType = "UpToDate"
)
----
example_url: https://github.com/grantr/knative-eventing-old/blob/4c4109eed674af29a67d3fa8f1f5bcf5d657f5a3/pkg/apis/feeds/v1alpha1/event_source_types.go#L60
approx_popularity: 1
code_block: >
const (
// EventSourceComplete specifies that the bind has completed successfully.
EventSourceComplete EventSourceConditionType = "Complete"
// EventSourceFailed specifies that the bind has failed.
EventSourceFailed EventSourceConditionType = "Failed"
// EventSourceInvalid specifies that the given bind specification is invalid.
EventSourceInvalid EventSourceConditionType = "Invalid"
)
----
example_url: https://github.com/grantr/knative-eventing-old/blob/4c4109eed674af29a67d3fa8f1f5bcf5d657f5a3/pkg/apis/feeds/v1alpha1/event_type_types.go#L58
approx_popularity: 1
code_block: >
const (
// EventTypeComplete specifies that the bind has completed successfully.
EventTypeComplete EventTypeConditionType = "Complete"
// EventTypeFailed specifies that the bind has failed.
EventTypeFailed EventTypeConditionType = "Failed"
// EventTypeInvalid specifies that the given bind specification is invalid.
EventTypeInvalid EventTypeConditionType = "Invalid"
)
----
example_url: https://github.com/pusher/faros/blob/11f24befafd89e5d501fd13f35f513eee2a6c451/pkg/apis/faros/v1alpha1/gittrackobject_types.go#L46
approx_popularity: 1
code_block: >
const (
// ObjectInSyncType whether the tracked object is in sync or not
ObjectInSyncType GitTrackObjectConditionType = "ObjectInSync"
)
----
example_url: https://github.com/kubesphere/kubesphere/blob/d649e3d0bbc64bfba18816c904819e4850d021e0/pkg/apis/servicemesh/v1alpha2/servicepolicy_types.go#L59
approx_popularity: 1
code_block: >
const (
// StrategyComplete means the strategy has been delivered to istio.
ServicePolicyComplete ServicePolicyConditionType = "Complete"
// StrategyFailed means the strategy has failed its delivery to istio.
ServicePolicyFailed ServicePolicyConditionType = "Failed"
)
----
example_url: https://github.com/xmudrii/etcdproxy-controller/blob/6d82e737e0c8bdf2c4e410b09d69266f806cbada/pkg/apis/etcd/v1alpha1/types.go#L22
approx_popularity: 1
code_block: >
const (
// Deployed means EtcdProxy Deployment and Service for exposing EtcdProxy are created.
Deployed EtcdStorageConditionType = "Deployed"
)
----
example_url: https://github.com/codeready-toolchain/api/blob/1bd66946a7271b638e364c11dbb0b723f71550c0/pkg/apis/toolchain/v1alpha1/usersignup_types.go#L7
approx_popularity: 1
code_block: >
const (
// UserSignupApproved reflects whether the signup request has been approved or not
UserSignupApproved ConditionType = "Approved"
// UserSignupComplete means provisioning is complete
UserSignupComplete ConditionType = "Complete"
)
----
example_url: https://github.com/google/knative-gcp/blob/c2d9e08986e60c0b38fa0842d4c7e997e3f72678/pkg/apis/messaging/v1alpha1/decorator_types.go#L64
approx_popularity: 1
code_block: >
const (
// DecoratorConditionReady has status True when all sub-conditions below have
// been set to True.
DecoratorConditionReady = apis.ConditionReady
// DecoratorConditionAddressable has status true when this Decorator meets the
// Addressable contract and has a non-empty url.
DecoratorConditionAddressable apis.ConditionType = "Addressable"
// DecoratorConditionServiceReady has status True when the Decorator has had a
// Pub/Sub topic created for it.
DecoratorConditionServiceReady apis.ConditionType = "ServiceReady"
// DecoratorConditionSinkProvided has status True when the Decorator
// has been configured with a sink target.
DecoratorConditionSinkProvided apis.ConditionType = "SinkProvided"
)
----
example_url: https://github.com/gardener/gardener/blob/30b5759184c317add6da6bb6c3ca93675893f81a/pkg/apis/core/v1alpha1/types_plant.go#L50
approx_popularity: 1
code_block: >
const (
// PlantEveryNodeReady is a constant for a condition type indicating the node health.
PlantEveryNodeReady ConditionType = "EveryNodeReady"
// PlantAPIServerAvailable is a constant for a condition type indicating that the Plant cluster API server is available.
PlantAPIServerAvailable ConditionType = "APIServerAvailable"
)
----
example_url: https://github.com/jetstack/cert-manager-external-issuer-example/blob/f0026900e971065c32f0a644a1a91956cd8ac73e/api/v1beta1/localca_types.go#L94
approx_popularity: 1
code_block: >
const (
// LocalCAConditionReady indicates that a LocalCA is ready for use.
// This is defined as:
LocalCAConditionReady LocalCAConditionType = "Ready"
)
----
example_url: https://github.com/gaocegege/kubetidb/blob/94c02e1123c56a213150faa9567dde34b1daf1b4/pkg/apis/tidb/v1alpha1/types.go#L103
approx_popularity: 1
code_block: >
const (
ClusterConditionAvailable ClusterConditionType = "Available"
ClusterConditionFailed = "Failed"
)
----
example_url: https://github.com/presslabs/mysql-operator/blob/24e7b81d67f0fd481e5fe6f962e6ad594707137a/pkg/apis/mysql/v1alpha1/mysqlbackup_types.go#L66
approx_popularity: 1
code_block: >
const (
// BackupComplete means the backup has finished his execution
BackupComplete BackupConditionType = "Complete"
// BackupFailed means backup has failed
BackupFailed BackupConditionType = "Failed"
)
----
example_url: https://github.com/simonswine/tarmak-image-test/blob/164e7d05a748c776f904abdd2e3a5842ed607a98/pkg/apis/imagetest/v1alpha1/imagetest_types.go#L43
approx_popularity: 1
code_block: >
const (
// TestPrometheusAlerts means that there are alerts in prometheus after deploy
TestPrometheusAlerts TestConditionType = "PrometheusAlerts"
// TestOverlayNetworkBroken means that there are problems with the overlay network
TestOverlayNetworkBroken TestConditionType = "OverlayNetworkBroken"
// TestTerraformError means that there were errors applying the terraform code
TestTerraformError TestConditionType = "TerraformError"
)
----
example_url: https://github.com/ZJU-SEL/K8APITransform/blob/0b37ca20130582d28ec843d40666e5156d972f80/ApiServer/models.bak/node.go#L19
approx_popularity: 19
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
)
----
example_url: https://github.com/kirankumar77/kubernetes/blob/8955c30639621815e620d3123260d99ed5804603/kubernetes-master/federation/apis/federation/types.go#L39
approx_popularity: 79
code_block: >
const (
// ClusterReady means the cluster is ready to accept workloads.
ClusterReady ClusterConditionType = "Ready"
// ClusterOffline means the cluster is temporarily down or not reachable
ClusterOffline ClusterConditionType = "Offline"
)
----
example_url: https://github.com/openshift/aws-account-operator/blob/5adc4ca15fb8b834b8275c3777def21fb7b11d36/pkg/apis/aws/v1alpha1/accountclaim_types.go#L56
approx_popularity: 1
code_block: >
const (
// AccountClaimed is set when an Account is claimed
AccountClaimed AccountClaimConditionType = "Claimed"
// AccountUnclaimed is set when an Account is not claimed
AccountUnclaimed AccountClaimConditionType = "Unclaimed"
)
----
example_url: https://github.com/openshift/aws-account-operator/blob/0ad92efc5c6317d7b2ac2bd04444edb9c1d27437/pkg/apis/aws/v1alpha1/awsfederatedaccountaccess_types.go#L62
approx_popularity: 1
code_block: >
const (
// AWSFederatedAccountInProgress is set when an Account access is in progress
AWSFederatedAccountInProgress AWSFederatedAccountAccessConditionType = "InProgress"
// AWSFederatedAccountReady is set when an Account access has been successfully applied
AWSFederatedAccountReady AWSFederatedAccountAccessConditionType = "Ready"
// AWSFederatedAccountFailed is set when account access has failed to apply
AWSFederatedAccountFailed AWSFederatedAccountAccessConditionType = "Failed"
)
----
example_url: https://github.com/kubeflow/katib/blob/e7e8e57e674a1443bcc0fa35e2d5d84afd9a2cfd/pkg/apis/controller/trials/v1alpha3/trial_types.go#L90
approx_popularity: 2
code_block: >
const (
TrialCreated TrialConditionType = "Created"
TrialRunning TrialConditionType = "Running"
TrialSucceeded TrialConditionType = "Succeeded"
TrialKilled TrialConditionType = "Killed"
TrialFailed TrialConditionType = "Failed"
)
----
example_url: https://github.com/openshift/aws-account-operator/blob/4462f5aa8949b129ce609b4772402f059c71ae3d/pkg/apis/aws/v1alpha1/awsfederatedrole_types.go#L84
approx_popularity: 1
code_block: >
const (
// AWSFederatedRoleInProgress is set when an awsfederated role is InProgress
AWSFederatedRoleInProgress AWSFederatedRoleConditionType = "InProgress"
// AWSFederatedRoleValid is set when an awsfederated role is valid
AWSFederatedRoleValid AWSFederatedRoleConditionType = "Valid"
// AWSFederatedRoleInvalid is set when an awsfederated role is invalid
AWSFederatedRoleInvalid AWSFederatedRoleConditionType = "Invalid"
)
----
example_url: https://github.com/scylladb/scylla-operator/blob/67f1c16211aaea7452357ca4350854d5403da84b/pkg/apis/scylla/v1alpha1/cluster_types.go#L127
approx_popularity: 3
code_block: >
const (
RackConditionTypeMemberLeaving RackConditionType = "MemberLeaving"
)
----
example_url: https://github.com/michaelgugino/machine-api-provider-gcp/blob/5d671e503aaa71b955000553570219234e092a21/pkg/apis/gcpproviderconfig/v1alpha1/gcpmachineproviderconfig_types.go#L56
approx_popularity: 1
code_block: >
const (
// MachineCreation indicates whether the machine has been created or not. If not,
// it should include a reason and message for the failure.
MachineCreation GCPMachineProviderConditionType = "MachineCreation"
)
----
example_url: https://github.com/openshift/hive/blob/f8949e88f62aa78167fbd03b59d4a98404fee2f5/pkg/apis/hive/v1alpha1/dnszone_types.go#L105
approx_popularity: 1
code_block: >
const (
// ZoneAvailableDNSZoneCondition is true if the DNSZone is responding to DNS queries
ZoneAvailableDNSZoneCondition DNSZoneConditionType = "ZoneAvailable"
)
----
example_url: https://github.com/kubeflow/katib/blob/7ade03bbc1126abd97ec9942375b3646f3b624bf/pkg/apis/controller/suggestions/v1alpha3/suggestion_types.go#L96
approx_popularity: 1
code_block: >
const (
SuggestionCreated SuggestionConditionType = "Created"
SuggestionDeploymentReady SuggestionConditionType = "DeploymentReady"
SuggestionRunning SuggestionConditionType = "Running"
SuggestionSucceeded SuggestionConditionType = "Succeeded"
SuggestionFailed SuggestionConditionType = "Failed"
)
----
example_url: https://github.com/ImJasonH/elafros/blob/ea02baacea2f30c859364462cc761458bf2deae7/pkg/apis/serving/v1alpha1/service_types.go#L86
approx_popularity: 1
code_block: >
const (
// ServiceConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
ServiceConditionReady ServiceConditionType = "Ready"
)
----
example_url: https://github.com/dinathom/pso-operator/blob/2e6b2e30fe53a323a6e19419059999b734d93f2d/pkg/helm/internal/types/types.go#L54
approx_popularity: 2
code_block: >
const (
ConditionInitialized HelmAppConditionType = "Initialized"
ConditionDeployed HelmAppConditionType = "Deployed"
ConditionReleaseFailed HelmAppConditionType = "ReleaseFailed"
ConditionIrreconcilable HelmAppConditionType = "Irreconcilable"
StatusTrue ConditionStatus = "True"
StatusFalse ConditionStatus = "False"
StatusUnknown ConditionStatus = "Unknown"
ReasonInstallSuccessful HelmAppConditionReason = "InstallSuccessful"
ReasonUpdateSuccessful HelmAppConditionReason = "UpdateSuccessful"
ReasonUninstallSuccessful HelmAppConditionReason = "UninstallSuccessful"
ReasonInstallError HelmAppConditionReason = "InstallError"
ReasonUpdateError HelmAppConditionReason = "UpdateError"
ReasonReconcileError HelmAppConditionReason = "ReconcileError"
ReasonUninstallError HelmAppConditionReason = "UninstallError"
)
----
example_url: https://github.com/lionelvillard/knative-functions-controller/blob/3781e0c8f0e38c3f7dbdcec17c08522bcd981958/vendor/knative.dev/serving/pkg/apis/autoscaling/v1alpha1/pa_types.go#L90
approx_popularity: 6
code_block: >
const (
// PodAutoscalerConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
PodAutoscalerConditionReady = apis.ConditionReady
// PodAutoscalerConditionActive is set when the PodAutoscaler's ScaleTargetRef is receiving traffic.
PodAutoscalerConditionActive apis.ConditionType = "Active"
)
----
example_url: https://github.com/operator-framework/operator-metering/blob/67ab48f37e2c9e5b89dea8159b06a737737bd4e6/pkg/apis/metering/v1/report.go#L141
approx_popularity: 1
code_block: >
const (
ReportRunning ReportConditionType = "Running"
)
----
example_url: https://github.com/ingvagabund/cluster-api-provider-kubemark/blob/c8975988bb0803bea5219dd7b5f281121b7117d0/pkg/apis/kubemarkproviderconfig/v1beta1/kubemarkmachineproviderconfig_types.go#L58
approx_popularity: 2
code_block: >
const (
// MachineCreation indicates whether the machine has been created or not. If not,
// it should include a reason and message for the failure.
MachineCreation KubemarkMachineProviderConditionType = "MachineCreation"
)
----
example_url: https://github.com/Coderhypo/KubeService/blob/7cfe69a7fced7d8f375279ec2caf1dfbd800d0dd/pkg/apis/app/v1/microservice_types.go#L90
approx_popularity: 1
code_block: >
const (
MicroServiceAvailable MicroServiceConditionType = "Available"
MicroServiceProgressing MicroServiceConditionType = "Progressing"
)
----
example_url: https://github.com/jingweno/sample-source/blob/fb029b1f6ffb3eb5532ffa0d2da3a340f65ffcc7/pkg/apis/sources/v1alpha1/samplesource_types.go#L30
approx_popularity: 1
code_block: >
const (
SampleSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
SampleSourceConditionServiceDeployed duckv1alpha1.ConditionType = "ServiceDeployed"
SampleSourceConditionServiceRouteReady duckv1alpha1.ConditionType = "RouteDeployed"
)
----
example_url: https://github.com/google/knative-gcp/blob/31fafc79888aea01ce28cc91493b8cf3086e12ef/pkg/apis/events/v1alpha1/storage_types.go#L92
approx_popularity: 1
code_block: >
const (
// StorageConditionReady has status True when the Storage is ready to send events.
StorageConditionReady = apis.ConditionReady
// NotificationReady has status True when GCS has been configured properly to
// send Notification events
NotificationReady apis.ConditionType = "NotificationReady"
)
----
example_url: https://github.com/google/knative-gcp/blob/61cd908c6ce7881c518c2cf95ecd8e6c535c8e1c/pkg/apis/messaging/v1alpha1/channel_types.go#L79
approx_popularity: 1
code_block: >
const (
// ChannelConditionReady has status True when all subconditions below have
// been set to True.
ChannelConditionReady = apis.ConditionReady
// ChannelConditionAddressable has status true when this Channel meets the
// Addressable contract and has a non-empty url.
ChannelConditionAddressable apis.ConditionType = "Addressable"
// ChannelConditionTopicReady has status True when the Channel has had a
// Pub/Sub topic created for it.
ChannelConditionTopicReady apis.ConditionType = "TopicReady"
)
----
example_url: https://github.com/mattmoor/foo-binding/blob/3a6d0f48cea419f1ac3ba8e5edacb6f07e612f5d/vendor/knative.dev/pkg/apis/duck/v1/source_types.go#L106
approx_popularity: 2
code_block: >
const (
// SourceConditionSinkProvided has status True when the Source
// has been configured with a sink target that is resolvable.
SourceConditionSinkProvided apis.ConditionType = "SinkProvided"
)
----
example_url: https://github.com/jetstack/cert-manager/blob/d2b12fb15ba26daeaf06f8bfb6b9065ad5367b09/pkg/internal/apis/certmanager/types_certificaterequest.go#L130
approx_popularity: 2
code_block: >
const (
// CertificateRequestConditionReady indicates that a certificate is ready for use.
// This is defined as:
// - The target certificate exists in CertificateRequest.Status
CertificateRequestConditionReady CertificateRequestConditionType = "Ready"
)
----
example_url: https://github.com/google/kf/blob/3c3ac277bdf8bae17102093f80161a68d6a621c7/third_party/knative-serving/pkg/apis/networking/v1alpha1/serverlessservice_types.go#L120
approx_popularity: 2
code_block: >
const (
// ServerlessServiceConditionReady is set when the clusterIngress networking setting is
// configured and it has a load balancer address.
ServerlessServiceConditionReady = apis.ConditionReady
// ServerlessServiceConditionEndspointsPopulated is set when the ServerlessService's underlying
// Revision K8s Service has been populated with endpoints.
ServerlessServiceConditionEndspointsPopulated apis.ConditionType = "EndpointsPopulated"
)
----
example_url: https://github.com/libopenstorage/operator/blob/1ee14d9e97348506edaf62a907330d0b368b4e01/pkg/apis/core/v1alpha1/storagenode.go#L98
approx_popularity: 1
code_block: >
const (
// NodeState is used for overall state of the node
NodeState NodeConditionType = "NodeState"
// StorageState is used for the state of storage in the node
StorageState NodeConditionType = "StorageState"
)
----
example_url: https://github.com/kyma-project/kyma/blob/769e846a3c36edf71bf0cf70eeba2e194c3447fe/components/kyma-operator/pkg/apis/installer/v1alpha1/types.go#L106
approx_popularity: 1
code_block: >
const (
// StateEmpty .
StateEmpty StateEnum = ""
// StateInstalled means installation of kyma is done
StateInstalled StateEnum = "Installed"
// StateUninstalled means installation is removed without errors
StateUninstalled StateEnum = "Uninstalled"
// StateInProgress means installation/update/uninstallation is running
StateInProgress StateEnum = "InProgress"
// StateError means an error condition occurred during install/update/uninstall operation
StateError StateEnum = "Error"
// CondtitionInstalled .
CondtitionInstalled InstallationConditionType = "Installed"
// ConditionInstalling .
ConditionInstalling InstallationConditionType = "Installing"
// ConditionUninstalled .
ConditionUninstalled InstallationConditionType = "Uninstalled"
// ConditionUninstalling .
ConditionUninstalling InstallationConditionType = "Uninstalling"
// ConditionInProgress .
ConditionInProgress InstallationConditionType = "InProgress"
// ConditionError .
ConditionError InstallationConditionType = "Error"
// ActionInstall .
ActionInstall string = "install"
// ActionUninstall .
ActionUninstall = "uninstall"
)
----
example_url: https://github.com/kubeflow/kfctl/blob/08a2e3736b2ca25f1f7a327090ecc48e014aa90b/pkg/apis/apps/kfdef/v1beta1/application_types.go#L132
approx_popularity: 3
code_block: >
const (
// KfAvailable means Kubeflow is serving.
KfAvailable KfDefConditionType = "Available"
// KfDegraded means functionality of Kubeflow is limited.
KfDegraded KfDefConditionType = "Degraded"
)
----
example_url: https://github.com/bitnami-labs/sealed-secrets/blob/42b5c465bf75edc4f9003b23b07b66ceda5e2db0/pkg/apis/sealed-secrets/v1alpha1/types.go#L53
approx_popularity: 1
code_block: >
const (
// SealedSecretSynced means the SealedSecret has been decrypted and the Secret has been updated successfully.
SealedSecretSynced SealedSecretConditionType = "Synced"
)
----
example_url: https://github.com/mrglavas/kappnav-operator-prototype/blob/f85fc8aaad70131222557ab84cec11484a42af0d/pkg/apis/kappnav/v1/kappnav_types.go#L119
approx_popularity: 2
code_block: >
const (
// StatusConditionTypeReconciled ...
StatusConditionTypeReconciled StatusConditionType = "Reconciled"
)
----
example_url: https://github.com/gaocegege/ray-operator/blob/2285854fc564c40ca0cbc6f79084f8450043eda2/api/v1alpha1/ray_types.go#L110
approx_popularity: 1
code_block: >
const (
// RayHealth shows if the Ray is healthy.
RayHealth RayConditionType = "Health"
)
----
example_url: https://github.com/keikoproj/kube-forensics/blob/d48bb32f632094abb2c4979a04bb5e163bdb4912/api/v1alpha1/podcheckpoint_types.go#L76
approx_popularity: 1
code_block: >
const (
// JobComplete means the job has completed its execution.
PodCheckpointComplete PodCheckpointConditionType = "Complete"
// JobFailed means the job has failed its execution.
PodCheckpointFailed PodCheckpointConditionType = "Failed"
)
----
example_url: https://github.com/openshift/aws-account-operator/blob/a50ded498b3f0f93c261b08d2326b06f9952e824/pkg/apis/aws/v1alpha1/account_types.go#L83
approx_popularity: 1
code_block: >
const (
// AccountCreating is set when an Account is being created
AccountCreating AccountConditionType = "Creating"
// AccountReady is set when an Account creation is ready
AccountReady AccountConditionType = "Ready"
// AccountFailed is set when account creation has failed
AccountFailed AccountConditionType = "Failed"
// AccountPending is set when account creation is pending
AccountPending AccountConditionType = "Pending"
// AccountPendingVerification is set when account creation is pending
AccountPendingVerification AccountConditionType = "PendingVerification"
// AccountReused is set when account is reused
AccountReused AccountConditionType = "Reused"
)
----
example_url: https://github.com/kyma-project/kyma/blob/26578a4d8414cf9c888dbec1bf2460d56cbfde2f/components/service-binding-usage-controller/pkg/apis/servicecatalog/v1alpha1/types.go#L49
approx_popularity: 1
code_block: >
const (
// ServiceBindingUsageReady represents the fact that a given usage is in ready state.
ServiceBindingUsageReady ServiceBindingUsageConditionType = "Ready"
)
----
example_url: https://github.com/harsh-px/px-operator/blob/dc9153f896efe68043cacf83553507aa56e67a98/pkg/apis/portworx.com/v1alpha1/types.go#L126
approx_popularity: 1
code_block: >
const (
// ClusterConditionReady represents ready state of cluster
ClusterConditionReady ClusterConditionType = "Ready"
// ClusterConditionOffline represents offline state of cluster
ClusterConditionOffline ClusterConditionType = "Offline"
)
----
example_url: https://github.com/harsh-px/px-operator/blob/dc9153f896efe68043cacf83553507aa56e67a98/pkg/apis/portworx.com/v1alpha1/types.go#L143
approx_popularity: 1
code_block: >
const (
// NodeConditionReady represents ready state of a cluster node
NodeConditionReady NodeConditionType = "Ready"
// NodeConditionOffline represents offline state of a cluster node
NodeConditionOffline NodeConditionType = "Offline"
)
----
example_url: https://github.com/openshift-knative/knative-serving-networking-openshift/blob/a52856dff1800b8b0a21455f645574e53fb5d873/vendor/knative.dev/serving/pkg/apis/networking/v1alpha1/serverlessservice_types.go#L120
approx_popularity: 1
code_block: >
const (
// ServerlessServiceConditionReady is set when the ingress networking setting is
// configured and it has a load balancer address.
ServerlessServiceConditionReady = apis.ConditionReady
// ServerlessServiceConditionEndspointsPopulated is set when the ServerlessService's underlying
// Revision K8s Service has been populated with endpoints.
ServerlessServiceConditionEndspointsPopulated apis.ConditionType = "EndpointsPopulated"
// ActivatorEndpointsPopulated is an informational status that reports
// when the revision is backed by activator points. This might happen even if
// revision is active (no pods yet created) or even when it has healthy pods
----
example_url: https://github.com/gaocegege/ray-operator-deprecated/blob/a23ebac4b1b13eac3fa55ac9736f8f7ab46cbd7a/api/v1/ray_types.go#L103
approx_popularity: 1
code_block: >
const (
// RayHealth shows if the Ray is healthy.
RayHealth RayConditionType = "Health"
RayHeadDeploymentAvailable RayConditionType = "RayHeadDeploymentAvailable"
RayHeadDeploymentProgressing RayConditionType = "RayHeadDeploymentProgressing"
RayHeadDeploymentReplicaFailure RayConditionType = "RayHeadDeploymentReplicaFailure"
RayWorkerDeploymentAvailable RayConditionType = "RayWorkerDeploymentAvailable"
RayWorkerDeploymentProgressing RayConditionType = "RayWorkerDeploymentProgressing"
RayWorkerDeploymentReplicaFailure RayConditionType = "RayWorkerDeploymentReplicaFailure"
)
----
example_url: https://github.com/google/knative-gcp/blob/46733ee4556c02a54ff4aebfa3049f6a0458240d/pkg/apis/duck/v1alpha1/pubsub_types.go#L89
approx_popularity: 1
code_block: >
const (
// TopicReady has status True when the PubSub Topic is ready.
TopicReady apis.ConditionType = "TopicReady"
// PullSubscriptionReay has status True when the PullSubscription is ready.
PullSubscriptionReady apis.ConditionType = "PullSubscriptionReady"
)
----
example_url: https://github.com/tangfeixiong/go-to-kubernetes/blob/67f346f6d98024f86098c9a4fa8a9f5b7f534792/rabbitmq-operator/pkg/apis/example.com/v1alpha1/types.go#L73
approx_popularity: 1
code_block: >
const (
ConditionAddSeedMaster ConditionType = "AddingSeedMaster"
ConditionRemoveSeedMaster ConditionType = "removingSeedMaster"
ConditionJoinMaster ConditionType = "JoiningMaster"
ConditionRemoveMaster ConditionType = "removingMaster"
ConditionAddSlave ConditionType = "AddingSlave"
ConditionRemoveSlave ConditionType = "removingSlave"
ConditionReady ConditionType = "Ready"
)
----
example_url: https://github.com/lionelvillard/knative-functions-controller/blob/3781e0c8f0e38c3f7dbdcec17c08522bcd981958/vendor/knative.dev/serving/pkg/apis/networking/v1alpha1/serverlessservice_types.go#L120
approx_popularity: 2
code_block: >
const (
// ServerlessServiceConditionReady is set when the clusterIngress networking setting is
// configured and it has a load balancer address.
ServerlessServiceConditionReady = apis.ConditionReady
// ServerlessServiceConditionEndspointsPopulated is set when the ServerlessService's underlying
// Revision K8s Service has been populated with endpoints.
ServerlessServiceConditionEndspointsPopulated apis.ConditionType = "EndpointsPopulated"
// ActivatorEndpointsPopulated is an informational status that reports
// when the revision is backed by activator points. This might happen even if
// revision is active (no pods yet created) or even when it has healthy pods
----
example_url: https://github.com/AmadeusITGroup/workflow-controller/blob/724977b831dfc6a74d40c90c375469a4cca0ff4d/pkg/api/workflow/v1/types.go#L86
approx_popularity: 1
code_block: >
const (
// WorkflowComplete means the workflow has completed its execution.
WorkflowComplete WorkflowConditionType = "Complete"
// WorkflowFailed means the workflow has failed its execution.
WorkflowFailed WorkflowConditionType = "Failed"
)
----
example_url: https://github.com/AmadeusITGroup/workflow-controller/blob/a374cba14de9344410e1b94493ebb39881866f76/pkg/api/daemonsetjob/v1/types.go#L129
approx_popularity: 1
code_block: >
const (
// DaemonSetJobComplete means the workflow has completed its execution.
DaemonSetJobComplete DaemonSetJobConditionType = "Complete"
// DaemonSetJobFailed means the workflow has failed its execution.
DaemonSetJobFailed DaemonSetJobConditionType = "Failed"
)
----
example_url: https://github.com/nilebox/brokernetes/blob/32cf112265511867aebedfbbdd3e823264acce86/pkg/apis/brokernetes/v1/types.go#L26
approx_popularity: 1
code_block: >
const (
InstanceInProgress InstanceConditionType = "InProgress"
InstanceReady InstanceConditionType = "Ready"
InstanceError InstanceConditionType = "Error"
)
----
example_url: https://github.com/openebs/maya/blob/5cfb8423f96ced4991ba880888c3759f2dcbf6b1/pkg/apis/openebs.io/v1alpha1/cstor_volume_claim.go#L115
approx_popularity: 1
code_block: >
// These constants are CVC condition types related to resize operation.
const (
// CStorVolumeClaimResizePending ...
CStorVolumeClaimResizing CStorVolumeClaimConditionType = "Resizing"
// CStorVolumeClaimResizeFailed ...
CStorVolumeClaimResizeFailed CStorVolumeClaimConditionType = "VolumeResizeFailed"
// CStorVolumeClaimResizeSuccess ...
CStorVolumeClaimResizeSuccess CStorVolumeClaimConditionType = "VolumeResizeSuccessful"
// CStorVolumeClaimResizePending ...
CStorVolumeClaimResizePending CStorVolumeClaimConditionType = "VolumeResizePending"
)
----
example_url: https://github.com/apache/camel-k/blob/4f6886a7d06f6ae6ca52b24b279adb73dd7b4f9c/pkg/apis/camel/v1alpha1/build_types.go#L67
approx_popularity: 1
code_block: >
const (
// BuildKind --
BuildKind string = "Build"
// BuildPhaseNone --
BuildPhaseNone BuildPhase = ""
// BuildPhaseInitialization --
BuildPhaseInitialization BuildPhase = "Initialization"
// BuildPhaseWaitingForPlatform --
BuildPhaseWaitingForPlatform BuildPhase = "Waiting For Platform"
// BuildPhaseScheduling --
BuildPhaseScheduling BuildPhase = "Scheduling"
// BuildPhasePending --
BuildPhasePending BuildPhase = "Pending"
// BuildPhaseRunning --
BuildPhaseRunning BuildPhase = "Running"
// BuildPhaseSucceeded --
BuildPhaseSucceeded BuildPhase = "Succeeded"
// BuildPhaseFailed --
BuildPhaseFailed BuildPhase = "Failed"
// BuildPhaseInterrupted --
BuildPhaseInterrupted = "Interrupted"
// BuildPhaseError --
BuildPhaseError BuildPhase = "Error"
// BuildConditionPlatformAvailable --
BuildConditionPlatformAvailable BuildConditionType = "IntegrationPlatformAvailable"
// BuildConditionPlatformAvailableReason --
BuildConditionPlatformAvailableReason string = "IntegrationPlatformAvailable"
)
----
example_url: https://github.com/apache/camel-k/blob/4f6886a7d06f6ae6ca52b24b279adb73dd7b4f9c/pkg/apis/camel/v1alpha1/integrationkit_types.go#L78
approx_popularity: 1
code_block: >
const (
// IntegrationKindKind --
IntegrationKindKind string = "IntegrationKit"
// IntegrationKitTypePlatform --
IntegrationKitTypePlatform = "platform"
// IntegrationKitTypeUser --
IntegrationKitTypeUser = "user"
// IntegrationKitTypeExternal --
IntegrationKitTypeExternal = "external"
// IntegrationKitPhaseNone --
IntegrationKitPhaseNone IntegrationKitPhase = ""
// IntegrationKitPhaseInitialization --
IntegrationKitPhaseInitialization IntegrationKitPhase = "Initialization"
// IntegrationKitPhaseWaitingForPlatform --
IntegrationKitPhaseWaitingForPlatform IntegrationKitPhase = "Waiting For Platform"
// IntegrationKitPhaseBuildSubmitted --
IntegrationKitPhaseBuildSubmitted IntegrationKitPhase = "Build Submitted"
// IntegrationKitPhaseBuildRunning --
IntegrationKitPhaseBuildRunning IntegrationKitPhase = "Build Running"
// IntegrationKitPhaseReady --
IntegrationKitPhaseReady IntegrationKitPhase = "Ready"
// IntegrationKitPhaseError --
IntegrationKitPhaseError IntegrationKitPhase = "Error"
// IntegrationKitConditionPlatformAvailable --
IntegrationKitConditionPlatformAvailable IntegrationKitConditionType = "IntegrationPlatformAvailable"
// IntegrationKitConditionPlatformAvailableReason --
IntegrationKitConditionPlatformAvailableReason string = "IntegrationPlatformAvailable"
)
----
example_url: https://github.com/gardener/gardener-resource-manager/blob/cbcf8b2615af551567cb5d08c5516100e17b3e75/pkg/apis/resources/v1alpha1/types.go#L94
approx_popularity: 1
code_block: >
const ResourceManagerIgnoreAnnotation = "resources.gardener.cloud/ignore"
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ManagedResource describes a list of managed resources.
type ManagedResource struct {
metav1.TypeMeta `json:",inline"`
// Standard object metadata.
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec contains the specification of this managed resource.
Spec ManagedResourceSpec `json:"spec,omitempty"`
// Status contains the status of this managed resource.
Status ManagedResourceStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ManagedResourceList is a list of ManagedResource resources.
type ManagedResourceList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
// Items is the list of ManagedResource.
Items []ManagedResource `json:"items"`
}
type ManagedResourceSpec struct {
// Class holds the resource class used to control the responsibility for multiple resource manager instances
// +optional
Class *string `json:"class,omitempty"`
// SecretRefs is a list of secret references.
SecretRefs []corev1.LocalObjectReference `json:"secretRefs"`
// InjectLabels injects the provided labels into every resource that is part of the referenced secrets.
// +optional
InjectLabels map[string]string `json:"injectLabels,omitempty"`
// ForceOverwriteLabels specifies that all existing labels should be overwritten. Defaults to false.
// +optional
ForceOverwriteLabels *bool `json:"forceOverwriteLabels,omitempty"`
// ForceOverwriteAnnotations specifies that all existing annotations should be overwritten. Defaults to false.
// +optional
ForceOverwriteAnnotations *bool `json:"forceOverwriteAnnotations,omitempty"`
// KeepObjects specifies whether the objects should be kept although the managed resource has already been deleted.
// Defaults to false.
// +optional
KeepObjects *bool `json:"keepObjects,omitempty"`
// Equivalences specifies possible group/kind equivalences for objects.
// +optional
Equivalences [][]metav1.GroupKind `json:"equivalences,omitempty"`
}
// ManagedResourceStatus is the status of a managed resource.
type ManagedResourceStatus struct {
Conditions []ManagedResourceCondition `json:"conditions,omitempty"`
// ObservedGeneration is the most recent generation observed for this resource.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Resources is a list of objects that have been created.
// +optional
Resources []ObjectReference `json:"resources,omitempty"`
}
type ObjectReference struct {
corev1.ObjectReference `json:",inline"`
// Labels is a map of labels that were used during last update of the resource.
Labels map[string]string `json:"labels,omitempty"`
// Annotations is a map of annotations that were used during last update of the resource.
Annotations map[string]string `json:"annotations,omitempty"`
}
// ConditionType is the type of a condition.
type ConditionType string
const (
// ResourcesApplied is a condition type that indicates whether all resources are applied to the target cluster.
ResourcesApplied ConditionType = "ResourcesApplied"
// ResourcesHealthy is a condition type that indicates whether all resources are present and healthy.
ResourcesHealthy ConditionType = "ResourcesHealthy"
)
----
example_url: https://github.com/kubeflow/kfctl/blob/08a2e3736b2ca25f1f7a327090ecc48e014aa90b/pkg/apis/apps/kfupgrade/v1alpha1/application_types.go#L61
approx_popularity: 2
code_block: >
const (
// KfDeploying means Kubeflow is in the process of being deployed.
KfUpgradeInProgress KfUpgradeConditionType = "InProgress"
// KfSucceeded means Kubeflow was successfully deployed.
KfUpgradeSucceeded KfUpgradeConditionType = "Succeeded"
// KfFailed meansthere was a problem deploying Kubeflow.
KfUpgradeFailed KfUpgradeConditionType = "Failed"
// Reasons for conditions
// InvalidKfUpgradeSpecReason indicates the KfUpgrade was not valid.
InvalidKfUpgradeSpecReason = "InvalidKfUpgradeSpec"
)
----
example_url: https://github.com/appscode/voyager/blob/e4cc989635190f1140e0eeba5299cb50175ad7e9/apis/voyager/v1beta1/certificate.go#L118
approx_popularity: 1
code_block: >
const (
CertificateIssued RequestConditionType = "Issued"
CertificateFailed RequestConditionType = "Failed"
CertificateRateLimited RequestConditionType = "RateLimited"
)
----
example_url: https://github.com/machinezone/configmapsecrets/blob/9bcc5e098b0d773801cb41b29c84c0ebb1085bfc/pkg/api/v1alpha1/configmapsecret_types.go#L145
approx_popularity: 1
code_block: >
const (
// ConfigMapSecretRenderFailure means that the target secret could not be
// rendered.
ConfigMapSecretRenderFailure ConfigMapSecretConditionType = "RenderFailure"
)
----
example_url: https://github.com/AmitKumarDas/storage-provisioner/blob/505ebb78a4b603f90d3bdc8dec19adaeb18a3b93/pkg/apis/ddp/v1alpha1/types.go#L66
approx_popularity: 1
code_block: >
const (
// ResourcesCreated indicates whether all resources of the storage
// are created.
ResourcesCreated StorageConditionType = "ResourcesCreated"
// PVCBound means the PVC associated with this storage
// is bound against its associated PV
PVCBound StorageConditionType = "PVCBound"
// NodeSelected represents status if any node was selected to attach
// this storage
NodeSelected StorageConditionType = "NodeSelected"
// NodeAvailable represents the status if the selected node is available
NodeAvailable StorageConditionType = "NodeAvailable"
// VolumeResize represents the status when this storage is undergoing
// a resize operation
VolumeResize StorageConditionType = "VolumeResize"
)
----
example_url: https://github.com/AmitKumarDas/storage-provisioner/blob/505ebb78a4b603f90d3bdc8dec19adaeb18a3b93/pkg/apis/ddp/v1alpha1/types.go#L91
approx_popularity: 1
code_block: >
const (
// "ConditionTrue" means the storage is in the StorageConditionType
ConditionTrue ConditionStatus = "True"
// "ConditionFalse" means a storage is not in the StorageConditionType
ConditionFalse ConditionStatus = "False"
// "ConditionUnknown" means controller can't decide if storage
// is in the StorageConditionType or not.
ConditionUnknown ConditionStatus = "Unknown"
)
----
example_url: https://github.com/kubevault/cli/blob/927f01ea95deb9eb6a1fb98f4d12d3e0ea7e2df2/vendor/kubevault.dev/operator/apis/policy/v1alpha1/vaultpolicybinding_types.go#L133
approx_popularity: 2
code_block: >
const (
PolicyBindingConditionFailure PolicyBindingConditionType = "Failure"
)
----
example_url: https://github.com/lmasiero/heat-kubernetes/blob/5192de9add1fd75d674485b338ba91b7e3d28c95/staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1/types.go#L80
approx_popularity: 21
code_block: >
const (
// Available indicates that the service exists and is reachable
Available APIServiceConditionType = "Available"
)
----
example_url: https://github.com/google/knative-gcp/blob/61cd908c6ce7881c518c2cf95ecd8e6c535c8e1c/pkg/apis/pubsub/v1alpha1/topic_types.go#L102
approx_popularity: 1
code_block: >
const (
// TopicConditionReady has status True when all subconditions below have
// been set to True.
TopicConditionReady = apis.ConditionReady
// TopicConditionAddressable has status true when this Topic meets the
// Addressable contract and has a non-empty hostname.
TopicConditionAddressable apis.ConditionType = "Addressable"
// TopicConditionTopicExists has status True when the Topic has had a
// Pub/Sub topic created for it.
TopicConditionTopicExists apis.ConditionType = "TopicExists"
// TopicConditionPublisherReady has status True when the Topic has had
// its publisher deployment created and ready.
TopicConditionPublisherReady apis.ConditionType = "PublisherReady"
)
----
example_url: https://github.com/kubesphere/kubesphere/blob/d649e3d0bbc64bfba18816c904819e4850d021e0/pkg/apis/servicemesh/v1alpha2/strategy_types.go#L121
approx_popularity: 1
code_block: >
const (
// StrategyComplete means the strategy has been delivered to istio.
StrategyComplete StrategyConditionType = "Complete"
// StrategyFailed means the strategy has failed its delivery to istio.
StrategyFailed StrategyConditionType = "Failed"
)
----
example_url: https://github.com/interconnectedcloud/qdrouterd-operator/blob/08dc880e8b93e95e9afa60971d8d131ea8953340/pkg/apis/interconnectedcloud/v1alpha1/qdrouterd_types.go#L33
approx_popularity: 1
code_block: >
const (
QdrouterdConditionProvisioning ConditionType = "Provisioning"
QdrouterdConditionDeployed ConditionType = "Deployed"
QdrouterdConditionScalingUp ConditionType = "ScalingUp"
QdrouterdConditionScalingDown ConditionType = "ScalingDown"
QdrouterdConditionUpgrading ConditionType = "Upgrading"
)
----
example_url: https://github.com/openshift/ocs-operator/blob/6a1d0bdad59903f586dfb7790547d65ff824ed35/pkg/apis/ocs/v1/storagecluster_types.go#L115
approx_popularity: 1
code_block: >
const ConditionReconcileComplete conditionsv1.ConditionType = "ReconcileComplete"
// List of constants to show different different reconciliation messages and statuses.
const (
ReconcileFailed = "ReconcileFailed"
ReconcileInit = "Init"
ReconcileCompleted = "ReconcileCompleted"
ReconcileCompletedMessage = "Reconcile completed successfully"
)
----
example_url: https://github.com/kirankumar77/kubernetes/blob/8955c30639621815e620d3123260d99ed5804603/kubernetes-master/pkg/apis/batch/types.go#L121
approx_popularity: 140
code_block: >
const (
// JobComplete means the job has completed its execution.
JobComplete JobConditionType = "Complete"
// JobFailed means the job has failed its execution.
JobFailed JobConditionType = "Failed"
)
----
example_url: https://github.com/cliffjansen/amqpsource/blob/e3e564c981154c5175f36dcf8b68410e302cfc38/pkg/apis/sources/v1alpha1/amqpsource_types.go#L66
approx_popularity: 1
code_block: >
const (
// AmqpSourceConditionReady has status True when the
// source is ready to send events.
AmqpSourceConditionReady = duckv1alpha1.ConditionReady
// AmqpSourceConditionSinkProvided has status True when the
// AmqpSource has been configured with a sink target.
AmqpSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// AmqpSourceConditionDeployed has status True when the
// AmqpSource has had it's receive adapter deployment created.
AmqpSourceConditionDeployed duckv1alpha1.ConditionType = "Deployed"
)
----
example_url: https://github.com/font/onprem/blob/a93b1a25a11078e5678cb885e3125efd785fcfe3/api/v1alpha1/joinedcluster_types.go#L69
approx_popularity: 1
code_block: >
const (
ConditionTypeReadyToJoin JoinedClusterConditionType = "ReadyToJoin"
ConditionTypeAgentConnected JoinedClusterConditionType = "AgentConnected"
ConditionTypeAgentStale JoinedClusterConditionType = "AgentStale"
ConditionTypeAgentDisconnected JoinedClusterConditionType = "AgentDisconnected"
)
----
example_url: https://github.com/tektoncd/triggers/blob/98fd16a411ef27831bf908dcb2bea97bfd2c29fa/vendor/knative.dev/caching/pkg/apis/caching/v1alpha1/image_types.go#L77
approx_popularity: 2
code_block: >
const (
// ImageConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
ImageConditionReady ImageConditionType = "Ready"
)
----
example_url: https://github.com/raffaelespazzoli/resource-locker-operator/blob/27a914a10c393bcd2b909edbfdf1556c6fc590ad/pkg/apis/redhatcop/v1alpha1/resourcelocker_types.go#L106
approx_popularity: 1
code_block: >
const (
// Enforcing means that the resource or patch has been succesfully reconciled and it's being enforced
Enforcing ConditionType = "Enforcing"
// Failure means that the resource or patch has not been successfully reconciled and we cannot guarntee that it's being enforced
Failure ConditionType = "Failure"
// Success means that the instance has been successfully reconciled
Success ConditionType = "Success"
)
----
example_url: https://github.com/shriyaEsha/kubernetes-priority-based-pod-preemption/blob/a8abcff43c069f383d2d2b61b6492e198f451879/staging/src/k8s.io/kube-apiextensions-server/pkg/apis/apiextensions/v1alpha1/types.go#L71
approx_popularity: 2
code_block: >
const (
// NameConflict means the names chosen for this CustomResource conflict with others in the group.
NameConflict CustomResourceConditionType = "NameConflict"
// Terminating means that the CustomResource has been deleted and is cleaning up.
Terminating CustomResourceConditionType = "Terminating"
)
----
example_url: https://github.com/openshift/hive/blob/c83ef8878503ce0db9b9365af36a751047113bc2/pkg/apis/hive/v1alpha1/clusterprovision_types.go#L94
approx_popularity: 1
code_block: >
const (
// ClusterProvisionInitializedCondition is set when a cluster provision has finished initialization.
ClusterProvisionInitializedCondition ClusterProvisionConditionType = "ClusterProvisionInitialized"
// ClusterProvisionCompletedCondition is set when a cluster provision completes.
ClusterProvisionCompletedCondition ClusterProvisionConditionType = "ClusterProvisionCompleted"
// ClusterProvisionFailedCondition is set when a cluster provision fails.
ClusterProvisionFailedCondition ClusterProvisionConditionType = "ClusterProvisionFailed"
// ClusterProvisionJobCreated is set when the install job is created for a cluster provision.
ClusterProvisionJobCreated ClusterProvisionConditionType = "ClusterProvisionJobCreated"
)
----
example_url: https://github.com/lionelvillard/knative-functions-controller/blob/3781e0c8f0e38c3f7dbdcec17c08522bcd981958/vendor/knative.dev/serving/pkg/apis/serving/v1alpha1/route_types.go#L95
approx_popularity: 3
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady = apis.ConditionReady
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned apis.ConditionType = "AllTrafficAssigned"
// RouteConditionIngressReady is set to False when the
// ClusterIngress fails to become Ready.
RouteConditionIngressReady apis.ConditionType = "IngressReady"
// RouteConditionCertificateProvisioned is set to False when the
// Knative Certificates fail to be provisioned for the Route.
RouteConditionCertificateProvisioned apis.ConditionType = "CertificateProvisioned"
)
----
example_url: https://github.com/openshift-knative/knative-serving-networking-openshift/blob/a52856dff1800b8b0a21455f645574e53fb5d873/vendor/knative.dev/serving/pkg/apis/serving/v1alpha1/route_types.go#L95
approx_popularity: 1
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady = apis.ConditionReady
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned apis.ConditionType = "AllTrafficAssigned"
// RouteConditionIngressReady is set to False when the
// Ingress fails to become Ready.
RouteConditionIngressReady apis.ConditionType = "IngressReady"
// RouteConditionCertificateProvisioned is set to False when the
// Knative Certificates fail to be provisioned for the Route.
RouteConditionCertificateProvisioned apis.ConditionType = "CertificateProvisioned"
)
----
example_url: https://github.com/yradsmikham/flux-metrics/blob/250204dc785c9f1855338aec2defe0716ffb82f1/integrations/apis/flux.weave.works/v1beta1/types.go#L167
approx_popularity: 1
code_block: >
const (
// ChartFetched means the chart to which the HelmRelease refers
// has been fetched successfully
HelmReleaseChartFetched HelmReleaseConditionType = "ChartFetched"
// Released means the chart release, as specified in this
// HelmRelease, has been processed by Helm.
HelmReleaseReleased HelmReleaseConditionType = "Released"
)
----
example_url: https://github.com/nachocano/gsuite-source/blob/b0c67b594bdc8e8cb80e4ef03fd47b119ad8cc44/pkg/apis/sources/v1alpha1/drivesource_types.go#L42
approx_popularity: 1
code_block: >
const (
DriveSourceConditionReady = duckv1alpha1.ConditionReady
DriveSourceConditionSecretsProvided duckv1alpha1.ConditionType = "SecretsProvided"
DriveSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
DriveSourceConditionServiceProvided duckv1alpha1.ConditionType = "ServiceProvided"
DriveSourceConditionWebHookProvided duckv1alpha1.ConditionType = "WebHookProvided"
)
----
example_url: https://github.com/nilebox/kube-catalog/blob/3f07278860661c9ce9a8a559521d7779a7d6d4d0/pkg/apis/catalog/v1/types.go#L26
approx_popularity: 1
code_block: >
const (
OSBInstanceInProgress OSBInstanceConditionType = "InProgress"
OSBInstanceReady OSBInstanceConditionType = "Ready"
OSBInstanceError OSBInstanceConditionType = "Error"
)
----
example_url: https://github.com/tomgeorge/backup-restore-operator/blob/440c60cf2b35dbfddf1391047adc274eee97119d/pkg/apis/backups/v1alpha1/volumebackup_types.go#L76
approx_popularity: 1
code_block: >
const (
PodFrozen VolumeBackupConditionType = "PodFrozen"
SnapshotIssued VolumeBackupConditionType = "SnapshotIssued"
SnapshotCreated VolumeBackupConditionType = "SnapshotCreated"
PodUnfrozen VolumeBackupConditionType = "PodUnfrozen"
SnapshotReady VolumeBackupConditionType = "SnapshotReady"
SnapshotUploading VolumeBackupConditionType = "SnapshotUploading"
SnapshotUploaded VolumeBackupConditionType = "SnapshotUploaded"
)
----
example_url: https://github.com/nachocano/gsuite-source/blob/857d2008d3d8d91323931fd4acba6b419094f3b8/pkg/apis/sources/v1alpha1/calendarsource_types.go#L42
approx_popularity: 1
code_block: >
const (
CalendarSourceConditionReady = duckv1alpha1.ConditionReady
CalendarSourceConditionSecretsProvided duckv1alpha1.ConditionType = "SecretsProvided"
CalendarSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
CalendarSourceConditionServiceProvided duckv1alpha1.ConditionType = "ServiceProvided"
CalendarSourceConditionWebHookProvided duckv1alpha1.ConditionType = "WebHookProvided"
)
----
example_url: https://github.com/tangfeixiong/go-to-kubernetes/blob/67f346f6d98024f86098c9a4fa8a9f5b7f534792/mysql-operator/pkg/apis/example.com/v1alpha1/types.go#L199
approx_popularity: 1
code_block: >
const (
ServerConditionAddSeedMaster ServerConditionType = "AddingSeedMaster"
ServerConditionRemoveSeedMaster ServerConditionType = "removingSeedMaster"
ServerConditionJoinMaster ServerConditionType = "JoiningMaster"
ServerConditionRemoveMaster ServerConditionType = "removingMaster"
ServerConditionAddSlave ServerConditionType = "AddingSlave"
ServerConditionRemoveSlave ServerConditionType = "removingSlave"
ServerConditionReady ServerConditionType = "Ready"
)
----
example_url: https://github.com/jw-s/redis-operator/blob/f877ed959d0c31896d84a3408915fe23b345d1fb/pkg/apis/redis/v1/redis.go#L88
approx_popularity: 3
code_block: >
const (
ServerConditionAddSeedMaster ServerConditionType = "AddingSeedMaster"
ServerConditionRemoveSeedMaster ServerConditionType = "removingSeedMaster"
ServerConditionAddSentinel ServerConditionType = "AddingSentinel"
ServerConditionRemoveSentinel ServerConditionType = "removingSentinel"
ServerConditionAddSlave ServerConditionType = "AddingSlave"
ServerConditionRemoveSlave ServerConditionType = "removingSlave"
ServerConditionReady ServerConditionType = "Ready"
)
----
example_url: https://github.com/yyrdl/code-gen/blob/529b89fd30698b86b4020354f94f7e7027f748fb/apis/podgroup/v1alpha1/types.go#L42
approx_popularity: 6
code_block: >
const (
PodGroupUnschedulableType PodGroupConditionType = "Unschedulable"
)
----
example_url: https://github.com/linuxacademy/content-deploy-an-operator/blob/027caf5c9b33c8ae49ecbfcbb5a22d00f10818f4/operator-lifecycle-mgr-deploy/pkg/api/apis/operators/v1alpha1/installplan_types.go#L47
approx_popularity: 2
code_block: >
const (
InstallPlanResolved InstallPlanConditionType = "Resolved"
InstallPlanInstalled InstallPlanConditionType = "Installed"
)
----
example_url: https://github.com/knative/eventing-contrib/blob/3e59a21c16d0f940d20b7bfbf88f09c3eb94619f/camel/source/pkg/apis/sources/v1alpha1/camelsource_types.go#L51
approx_popularity: 1
code_block: >
const (
// CamelSourceConditionReady has status True when the CamelSource is ready to send events.
CamelConditionReady = duckapis.ConditionReady
// CamelConditionSinkProvided has status True when the CamelSource has been configured with a sink target.
CamelConditionSinkProvided duckapis.ConditionType = "SinkProvided"
// CamelConditionDeployed has status True when the CamelSource has had it's deployment created.
CamelConditionDeployed duckapis.ConditionType = "Deployed"
)
----
example_url: https://github.com/kaminduN/knative-demo/blob/d6292961a87c7093fb176e9021fc591521a0be99/scale-test1/src/github.com/knative/pkg/apis/duck/v1alpha1/conditions_types.go#L35
approx_popularity: 4
code_block: >
const (
// ConditionReady specifies that the resource is ready.
// For long-running resources.
ConditionReady ConditionType = "Ready"
// ConditionSucceeded specifies that the resource has finished.
// For resource which run to completion.
ConditionSucceeded ConditionType = "Succeeded"
)
----
example_url: https://github.com/intuit-knative/knative-source-kinesis/blob/82457d3d8e8cc88334e327c106b905132f273a43/pkg/apis/sources/v1alpha1/kinesis_types.go#L82
approx_popularity: 1
code_block: >
const (
// KinesisSourceConditionReady has status True when the source is
// ready to send events.
KinesisSourceConditionReady = duckv1alpha1.ConditionReady
// KinesisSourceConditionSinkProvided has status True when the
// KinesisSource has been configured with a sink target.
KinesisSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// KinesisSourceConditionDeployed has status True when the
// KinesisSource has had it's receive adapter deployment created.
KinesisSourceConditionDeployed duckv1alpha1.ConditionType = "Deployed"
)
----
example_url: https://github.com/grantr/knative-api/blob/f6f57ef15b884605a0ec4fe9fb859e7db010a340/serving/v1alpha1/route_types.go#L109
approx_popularity: 1
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady = apis.ConditionReady
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned apis.ConditionType = "AllTrafficAssigned"
// RouteConditionIngressReady is set to False when the
// ClusterIngress fails to become Ready.
RouteConditionIngressReady apis.ConditionType = "IngressReady"
)
----
example_url: https://github.com/Jimexist/kubeflow-clientset/blob/84f1d0a84981c7286327d334e0d70822e789073d/apis/kubeflow/v1alpha1/types.go#L148
approx_popularity: 1
code_block: >
const (
TFJobScheduled TFJobConditionType = "Scheduled"
TFJobReady TFJobConditionType = "Ready"
TFJobRecovering TFJobConditionType = "Recovering"
// All Workers containers in the TFJob have terminated in success,
// and recycle resource of all PS containers in the TFJob.
TFJobRecycling TFJobConditionType = "Recycling"
)
----
example_url: https://github.com/weliang1/upstream/blob/1532bfcc115ccbd74a084568bbc55d131f6e9bf2/pkg/route/api/v1beta3/types.go#L79
approx_popularity: 13
code_block: >
const (
// RouteAdmitted means the route is able to service requests for the provided Host
RouteAdmitted RouteIngressConditionType = "Admitted"
// TODO: add other route condition types
)
----
example_url: https://github.com/rootfs/knative-build/blob/8624fda54557ac4461d35921765b7bf48e5aba6d/pkg/apis/build/v1alpha1/build_types.go#L148
approx_popularity: 1
code_block: >
const (
// BuildSucceeded is set when the build is running, and becomes True
// when the build finishes successfully.
//
// If the build is ongoing, its status will be Unknown. If it fails,
// its status will be False.
BuildSucceeded BuildConditionType = "Succeeded"
// BuildInvalid specifies that the given build specification is invalid.
//
// TODO(jasonhall): Remove when webhook validation rejects invalid builds.
----
example_url: https://github.com/DerSalvador/eventing-contrib/blob/feac9d70d2472c6f2c93a1a6068ae43c0b01ef07/camel/source/pkg/apis/sources/v1alpha1/camelsource_types.go#L50
approx_popularity: 1
code_block: >
const (
// CamelSourceConditionReady has status True when the CamelSource is ready to send events.
CamelConditionReady = duckv1alpha1.ConditionReady
// CamelConditionSinkProvided has status True when the CamelSource has been configured with a sink target.
CamelConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// CamelConditionDeployed has status True when the CamelSource has had it's deployment created.
CamelConditionDeployed duckv1alpha1.ConditionType = "Deployed"
)
----
example_url: https://github.com/kubernetes-sigs/kube-storage-version-migrator/blob/60dee538334c2366994c2323c0db5db8ab4d2838/pkg/apis/migration/v1alpha1/types.go#L69
approx_popularity: 1
code_block: >
const (
// Indicates that the migration is running.
MigrationRunning MigrationConditionType = "Running"
// Indicates that the migration has completed successfully.
MigrationSucceeded MigrationConditionType = "Succeeded"
// Indicates that the migration has failed.
MigrationFailed MigrationConditionType = "Failed"
)
----
example_url: https://github.com/rootfs/node-fencing/blob/dd2e00fb40a929eb0190681c15396db2354b2159/pkg/apis/crd/v1/types.go#L44
approx_popularity: 1
code_block: >
const (
// NodeFenceConditionRunning means the node fencing is being executed
NodeFenceConditionRunning NodeFenceConditionType = "Running"
// NodeFenceConditionDone is added when the node is successfully executed
NodeFenceConditionDone NodeFenceConditionType = "Done"
// NodeFenceConditionError means an error occurred during node fencing.
NodeFenceConditionError NodeFenceConditionType = "Error"
// NodeFenceConditionNew new created fence object.
NodeFenceConditionNew NodeFenceConditionType = "New"
)
----
example_url: https://github.com/libopenstorage/autopilot-api/blob/87c09b775364fd1f8fba8f74fab475b3723b23d3/pkg/apis/autopilot/v1alpha1/autopilotrule.go#L147
approx_popularity: 1
code_block: >
const (
// RuleConditionMetrics is a monitoring type of condition in a rule
RuleConditionMetrics AutopilotRuleConditionType = "monitoring"
)
----
example_url: https://github.com/liubog2008/oooops/blob/21e6fa0c02e3944e8f35d803a486daad58bfa63b/pkg/apis/flow/v1alpha1/types.go#L163
approx_popularity: 1
code_block: >
const (
// FlowComplete means the flow has completed its execution.
FlowComplete FlowConditionType = "Complete"
// FlowFailed means the flow has failed its execution.
FlowFailed FlowConditionType = "Failed"
// FlowWaiting means the flow is waiting for next trigger
FlowWaiting FlowConditionType = "Waiting"
)
----
example_url: https://github.com/DerSalvador/eventing-contrib/blob/feac9d70d2472c6f2c93a1a6068ae43c0b01ef07/awssqs/pkg/apis/sources/v1alpha1/aws_sqs_types.go#L70
approx_popularity: 1
code_block: >
const (
// AwsSqsSourceConditionReady has status True when the source is
// ready to send events.
AwsSqsSourceConditionReady = duckv1alpha1.ConditionReady
// AwsSqsSourceConditionSinkProvided has status True when the
// AwsSqsSource has been configured with a sink target.
AwsSqsSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// AwsSqsSourceConditionDeployed has status True when the
// AwsSqsSource has had it's receive adapter deployment created.
AwsSqsSourceConditionDeployed duckv1alpha1.ConditionType = "Deployed"
// AwsSqsSourceConditionEventTypesProvided has status True when the
// AwsSqsSource has been configured with event types
AwsSqsSourceConditionEventTypesProvided duckv1alpha1.ConditionType = "EventTypesProvided"
)
----
example_url: https://github.com/jetstack/cert-manager/blob/1a12c5d99c5c52258f73bf7b2dfebb2f053266e0/pkg/internal/apis/certmanager/types_certificate.go#L178
approx_popularity: 2
code_block: >
const (
// CertificateConditionReady indicates that a certificate is ready for use.
// This is defined as:
// - The target secret exists
// - The target secret contains a certificate that has not expired
// - The target secret contains a private key valid for the certificate
// - The commonName and dnsNames attributes match those specified on the Certificate
CertificateConditionReady CertificateConditionType = "Ready"
)
----
example_url: https://github.com/intuit-knative/knative-source-awssqs/blob/88dcded5df9c91495bf1cc1cacb5e8795c6d1544/pkg/apis/sources/v1alpha1/aws_sqs_types.go#L86
approx_popularity: 1
code_block: >
const (
// AwsSqsSourceConditionReady has status True when the source is
// ready to send events.
AwsSqsSourceConditionReady = duckv1alpha1.ConditionReady
// AwsSqsSourceConditionSinkProvided has status True when the
// AwsSqsSource has been configured with a sink target.
AwsSqsSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// AwsSqsSourceConditionDeployed has status True when the
// AwsSqsSource has had it's receive adapter deployment created.
AwsSqsSourceConditionDeployed duckv1alpha1.ConditionType = "Deployed"
)
----
example_url: https://github.com/interconnectedcloud/qdr-operator/blob/6d6e1fde467d0dc7e7ecfdc35157cba6dd8d5194/pkg/apis/interconnectedcloud/v1alpha1/interconnect_types.go#L34
approx_popularity: 1
code_block: >
const (
InterconnectConditionProvisioning ConditionType = "Provisioning"
InterconnectConditionDeployed ConditionType = "Deployed"
InterconnectConditionScalingUp ConditionType = "ScalingUp"
InterconnectConditionScalingDown ConditionType = "ScalingDown"
InterconnectConditionUpgrading ConditionType = "Upgrading"
)
----
example_url: https://github.com/kaminduN/knative-demo/blob/d6292961a87c7093fb176e9021fc591521a0be99/scale-test1/pkg/apis/autoscaling/v1alpha1/types.go#L44
approx_popularity: 4
code_block: >
const (
// PodAutoscalerConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
PodAutoscalerConditionReady = duckv1alpha1.ConditionReady
// PodAutoscalerConditionActive is set when the PodAutoscaler's ScaleTargetRef is receiving traffic.
PodAutoscalerConditionActive duckv1alpha1.ConditionType = "Active"
)
----
example_url: https://github.com/openebs/maya/blob/4c494799ac46db7521b7c41e77a7b08de0448c04/pkg/apis/openebs.io/v1alpha1/cstor_volume.go#L148
approx_popularity: 1
code_block: >
const (
// CStorVolumeResizing - a user trigger resize of pvc has been started
CStorVolumeResizing CStorVolumeConditionType = "Resizing"
)
----
example_url: https://github.com/pusher/faros/blob/8dab53b3ba69fc758bc711331a3b2528e333a3fe/pkg/apis/faros/v1alpha1/gittrack_types.go#L91
approx_popularity: 1
code_block: >
const (
// FilesParsedType referes to whether all files parsed successfully
FilesParsedType GitTrackConditionType = "FilesParsed"
// FilesFetchedType refers to whether all files where fetched from git
// successfully
FilesFetchedType GitTrackConditionType = "FilesFetched"
// ChildrenUpToDateType referes to whether all children were created/updated
// successfully
ChildrenUpToDateType GitTrackConditionType = "ChildrenUpToDate"
// ChildrenGarbageCollectedType referes to whether all children that were meant to
// be GC'd have been GC'
ChildrenGarbageCollectedType GitTrackConditionType = "ChildrenGarbageCollected"
)
----
example_url: https://github.com/eduardomatus/kubernetes/blob/0cb3cb254909d7a2c271f91caaf77eaa46eea48a/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types.go#L71
approx_popularity: 15
code_block: >
const (
// Established means that the resource has become active. A resource is established when all names are
// accepted without a conflict for the first time. A resource stays established until deleted, even during
// a later NamesAccepted due to changed names. Note that not all names can be changed.
Established CustomResourceDefinitionConditionType = "Established"
// NamesAccepted means the names chosen for this CustomResourceDefinition do not conflict with others in
// the group and are therefore accepted.
NamesAccepted CustomResourceDefinitionConditionType = "NamesAccepted"
// Terminating means that the CustomResourceDefinition has been deleted and is cleaning up.
Terminating CustomResourceDefinitionConditionType = "Terminating"
)
----
example_url: https://github.com/grantr/knative-api/blob/f6f57ef15b884605a0ec4fe9fb859e7db010a340/serving/v1alpha1/service_types.go#L153
approx_popularity: 4
code_block: >
const ReleaseLatestRevisionKeyword = "@latest"
// RunLatestType contains the options for always having a route to the latest configuration. See
// ServiceSpec for more details.
type RunLatestType struct {
// The configuration for this service.
// +optional
Configuration ConfigurationSpec `json:"configuration,omitempty"`
}
// PinnedType is DEPRECATED. ReleaseType should be used instead. To get the behavior of PinnedType set
// ReleaseType.Revisions to []string{PinnedType.RevisionName} and ReleaseType.RolloutPercent to 0.
type PinnedType struct {
// The revision name to pin this service to until changed
// to a different service type.
// +optional
RevisionName string `json:"revisionName,omitempty"`
// The configuration for this service.
// +optional
Configuration ConfigurationSpec `json:"configuration,omitempty"`
}
// ConditionType represents a Service condition value
const (
// ServiceConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
ServiceConditionReady = apis.ConditionReady
// ServiceConditionRoutesReady is set when the service's underlying
// routes have reported readiness.
ServiceConditionRoutesReady apis.ConditionType = "RoutesReady"
// ServiceConditionConfigurationsReady is set when the service's underlying
// configurations have reported readiness.
ServiceConditionConfigurationsReady apis.ConditionType = "ConfigurationsReady"
)
----
example_url: https://github.com/openshift/cloud-credential-operator/blob/e0eac39edcf908122c7131d196cdb39880180fa6/pkg/apis/cloudcredential/v1/credentialsrequest_types.go#L121
approx_popularity: 1
code_block: >
const (
// InsufficientCloudCredentials is true when the cloud credentials are deemed to be insufficient
// to either mint custom creds to satisfy the CredentialsRequest or insufficient to
// be able to be passed along as-is to satisfy the CredentialsRequest
InsufficientCloudCredentials CredentialsRequestConditionType = "InsufficientCloudCreds"
// MissingTargetNamespace is true when the namespace specified to hold the resulting
// credentials is not present
MissingTargetNamespace CredentialsRequestConditionType = "MissingTargetNamespace"
// CredentialsProvisionFailure is true whenver there has been an issue while trying
// to provision the credentials (either passthrough or minting). Error message will
----
example_url: https://github.com/PolarGeospatialCenter/ceph-operator/blob/fe868517f52b2ecf3aeb23490887ae5bd61ae815/pkg/apis/ceph/v1alpha1/cephmon_types.go#L28
approx_popularity: 1
code_block: >
const MonQuorumPodCondition corev1.PodConditionType = corev1.PodReady
// CephMonSpec defines the desired state of CephMon
type CephMonSpec struct {
ClusterName string `json:"clusterName"`
ID string `json:"id"`
PvSelectorString string `json:"pvSelectorString"`
Disabled bool `json:"disabled"`
Port int `json:"port"`
}
// MonState describes the state of the monitor
type MonState string
const (
MonLaunchPod MonState = "Launch Pod"
MonWaitForPodRun MonState = "Wait for Pod Run"
MonWaitForPodReady MonState = "Wait for Pod Ready"
MonInQuorum MonState = "In Quorum"
MonError MonState = "Error"
MonCleanup MonState = "Cleanup"
MonIdle MonState = "Idle"
)
----
example_url: https://github.com/honcao/azurestackcloudprovider/blob/d1a86d9aef47f551d271b8f9d704b46f58ed5660/src/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/types.go#L100
approx_popularity: 22
code_block: >
const (
// RowCompleted means the underlying resource has reached completion and may be given less
// visual priority than other resources.
RowCompleted RowConditionType = "Completed"
)
----
example_url: https://github.com/sak0/node-helper/blob/7d6e227873f30ea30b47bea744657e1750c854b8/pkg/apis/crd/v1/types.go#L28
approx_popularity: 1
code_block: >
const (
// NodeFenceConditionRunning means the node fencing is being executed
NodeFenceConditionRunning NodeFenceConditionType = "Running"
// NodeFenceConditionDone is added when the node is successfully executed
NodeFenceConditionDone NodeFenceConditionType = "Done"
// NodeFenceConditionError means an error occurred during node fencing.
NodeFenceConditionError NodeFenceConditionType = "Error"
)
----
example_url: https://github.com/ImJasonH/elafros/blob/ea02baacea2f30c859364462cc761458bf2deae7/pkg/apis/serving/v1alpha1/route_types.go#L100
approx_popularity: 1
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady RouteConditionType = "Ready"
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned RouteConditionType = "AllTrafficAssigned"
)
----
example_url: https://github.com/kubeflow/caffe2-operator/blob/71d0e44438f5d3138c22f65d90801a5301493139/pkg/apis/caffe2/v1alpha1/types.go#L163
approx_popularity: 1
code_block: >
const (
// Caffe2JobCreated means the caffe2job has been accepted by the system,
// but one or more of the pods/services has not been started.
// This includes time before pods being scheduled and launched.
Caffe2JobCreated Caffe2JobConditionType = "Created"
// Caffe2JobRunning means all sub-resources (e.g. services/pods) of this Caffe2Job
----
example_url: https://github.com/kubekit99/operator-ohm/blob/ba713065d429298d42201480148adc4aa4546598/openstackhelm-operator/pkg/apis/openstackhelm/v1alpha1/openstackchart_types.go#L60
approx_popularity: 1
code_block: >
const (
ConditionInitialized OpenstackChartConditionType = "Initialized"
ConditionDeployed OpenstackChartConditionType = "Deployed"
ConditionReleaseFailed OpenstackChartConditionType = "ReleaseFailed"
ConditionIrreconcilable OpenstackChartConditionType = "Irreconcilable"
ConditionBackedUp OpenstackChartConditionType = "BackedUp"
ConditionRestored OpenstackChartConditionType = "Restored"
ConditionUpgraded OpenstackChartConditionType = "Upgraded"
ConditionRolledBack OpenstackChartConditionType = "RolledBack"
StatusTrue ConditionStatus = "True"
StatusFalse ConditionStatus = "False"
StatusUnknown ConditionStatus = "Unknown"
ReasonInstallSuccessful OpenstackChartConditionReason = "InstallSuccessful"
ReasonUpdateSuccessful OpenstackChartConditionReason = "UpdateSuccessful"
ReasonUninstallSuccessful OpenstackChartConditionReason = "UninstallSuccessful"
ReasonInstallError OpenstackChartConditionReason = "InstallError"
ReasonUpdateError OpenstackChartConditionReason = "UpdateError"
ReasonReconcileError OpenstackChartConditionReason = "ReconcileError"
ReasonUninstallError OpenstackChartConditionReason = "UninstallError"
ReasonBackupError OpenstackChartConditionReason = "BackupError"
ReasonRestoreError OpenstackChartConditionReason = "RestoreError"
ReasonUpgradeError OpenstackChartConditionReason = "UpgradeError"
ReasonRollbackError OpenstackChartConditionReason = "RollbackError"
)
----
example_url: https://github.com/atlassian/smith/blob/d5e37d5f2aafea42aab30d6f8f6b96c9a99b3de8/pkg/apis/smith/v1/types.go#L26
approx_popularity: 1
code_block: >
const (
ResourceBlocked cond_v1.ConditionType = "Blocked"
ResourceInProgress = cond_v1.ConditionInProgress
ResourceReady = cond_v1.ConditionReady
ResourceError = cond_v1.ConditionError
)
----
example_url: https://github.com/coreos/quartermaster/blob/bcf0267f9472755b3e76d0b858f80184d4530d71/pkg/spec/spec.go#L182
approx_popularity: 1
code_block: >
const (
ClusterConditionReady StorageClusterConditionType = "Ready"
ClusterConditionOffline StorageClusterConditionType = "Offline"
)
----
example_url: https://github.com/coreos/quartermaster/blob/bcf0267f9472755b3e76d0b858f80184d4530d71/pkg/spec/spec.go#L194
approx_popularity: 1
code_block: >
const (
NodeConditionReady StorageNodeConditionType = "Ready"
NodeConditionOffline StorageNodeConditionType = "Offline"
)
----
example_url: https://github.com/ImJasonH/elafros/blob/ea02baacea2f30c859364462cc761458bf2deae7/pkg/apis/serving/v1alpha1/configuration_types.go#L70
approx_popularity: 1
code_block: >
const (
// ConfigurationConditionReady is set when the configuration is starting to materialize
// runtime resources, and becomes true when those resources are ready.
ConfigurationConditionReady ConfigurationConditionType = "Ready"
// ConfigurationConditionLatestRevisionReady is set to indicate the status of the latest
// revision of the configuration when it has not become ready yet
ConfigurationConditionLatestRevisionReady ConfigurationConditionType = "LatestRevisionReady"
)
----
example_url: https://github.com/EnMasseProject/enmasse/blob/9a7df457950fe4459ff1804ee003099a00a6c37f/pkg/apis/iot/v1alpha1/types_config.go#L213
approx_popularity: 1
code_block: >
const (
ConfigConditionTypeReady ConfigConditionType = "Ready"
)
----
example_url: https://github.com/gardener/gardener/blob/30b5759184c317add6da6bb6c3ca93675893f81a/pkg/apis/core/v1alpha1/types_seed.go#L179
approx_popularity: 1
code_block: >
const (
// SeedAvailable is a constant for a condition type indicating the Seed cluster availability.
SeedAvailable ConditionType = "Available"
)
----
example_url: https://github.com/kharon-cd/kharon-operator/blob/47605939af25d94f3bc49c38d16ebe987e2da3d2/pkg/apis/kharon/v1alpha1/canary_types.go#L96
approx_popularity: 1
code_block: >
const (
CanaryConditionTypePromoted CanaryConditionType = "Promoted"
)
----
example_url: https://github.com/vincent-pli/gitlabsource/blob/de7c0cda556a8659376f4d41326865ab7e4b3732/pkg/apis/sources/v1alpha1/gitlab_types.go#L92
approx_popularity: 1
code_block: >
const (
// GitLabSourceConditionReady has status True when the
// GitLabSource is ready to send events.
GitLabSourceConditionReady = duckv1alpha1.ConditionReady
// GitLabSourceConditionSecretsProvided has status True when the
// GitLabSource has valid secret references
GitLabSourceConditionSecretsProvided duckv1alpha1.ConditionType = "SecretsProvided"
// GitLabSourceConditionSinkProvided has status True when the
// GitLabSource has been configured with a sink target.
GitLabSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
)
----
example_url: https://github.com/weliang1/upstream/blob/1532bfcc115ccbd74a084568bbc55d131f6e9bf2/pkg/image/api/v1beta3/types.go#L124
approx_popularity: 29
code_block: >
const (
// ImportSuccess with status False means the import of the specific tag failed
ImportSuccess TagEventConditionType = "ImportSuccess"
)
----
example_url: https://github.com/mgencur/build/blob/f94870469249f797d1304923012b5a38598c6fde/pkg/apis/build/v1alpha1/build_types.go#L163
approx_popularity: 2
code_block: >
const (
// BuildSucceeded is set when the build is running, and becomes True
// when the build finishes successfully.
//
// If the build is ongoing, its status will be Unknown. If it fails,
// its status will be False.
BuildSucceeded BuildConditionType = "Succeeded"
)
----
example_url: https://github.com/sixolet/serving/blob/699d3436f583a2d48c75c456324de106335960fa/pkg/apis/autoscaling/v1alpha1/kpa_types.go#L98
approx_popularity: 1
code_block: >
const (
// PodAutoscalerConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
PodAutoscalerConditionReady = duck.ConditionReady
// PodAutoscalerConditionActive is set when the PodAutoscaler's ScaleTargetRef is receiving traffic.
PodAutoscalerConditionActive duck.ConditionType = "Active"
)
----
example_url: https://github.com/hub-kubernetes/kubernetes-federation/blob/d703c32d7561488a204b654aba2b8a31cf2cc40a/src/github.com/k8s.io/cluster-registry/pkg/apis/clusterregistry/v1alpha1/types.go#L134
approx_popularity: 2
code_block: >
const (
// ClusterOK means that the cluster is "OK".
//
// Since the cluster registry does not have a standard status controller, the
// meaning of this condition is defined by the environment in which the
// cluster is running. It is expected to mean that the cluster is reachable by
// a controller that is reporting on its status, and that the cluster is ready
// to have workloads scheduled.
ClusterOK ClusterConditionType = "OK"
)
----
example_url: https://github.com/kubeflow/katib/blob/d57109455ec6e64d64d81d210d64b97156b468d9/pkg/apis/controller/experiments/v1alpha3/experiment_types.go#L130
approx_popularity: 2
code_block: >
const (
ExperimentCreated ExperimentConditionType = "Created"
ExperimentRunning ExperimentConditionType = "Running"
ExperimentRestarting ExperimentConditionType = "Restarting"
ExperimentSucceeded ExperimentConditionType = "Succeeded"
ExperimentFailed ExperimentConditionType = "Failed"
)
----
example_url: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/blob/282e07e2ebeac8fe8a58364f85de660b8c104c2f/api/v1alpha2/types.go#L51
approx_popularity: 1
code_block: >
const (
// MachineCreated indicates whether the machine has been created or not. If not,
// it should include a reason and message for the failure.
MachineCreated VSphereMachineProviderConditionType = "MachineCreated"
)
----
example_url: https://github.com/nov1n/kubernetes-workflow/blob/4ad97e9602f448d4db5a9a47dca6392cf87ee9ee/pkg/api/types.go#L86
approx_popularity: 1
code_block: >
const (
// WorkflowComplete means the workflow has completed its execution
WorkflowComplete WorkflowConditionType = "Complete"
// WorkflowFailed means the workflow has failed its execution
WorkflowFailed WorkflowConditionType = "Failed"
)
----
example_url: https://github.com/kubernetes-sigs/kube-batch/blob/2533e97eec8464fb4b6f4acb108625c119b8c1a7/pkg/scheduler/api/pod_group_info.go#L31
approx_popularity: 1
code_block: >
const (
//PodGroupUnschedulableType represents unschedulable podGroup condition
PodGroupUnschedulableType PodGroupConditionType = "Unschedulable"
)
----
example_url: https://github.com/fhornaintest/kubevirt/blob/f26fe17fa6e381b4409a365f57f2083ffd960498/tools/vms-generator/types.go#L164
approx_popularity: 7
code_block: >
const (
// TemplateInstanceReady indicates the readiness of the template
// instantiation.
TemplateInstanceReady TemplateInstanceConditionType = "Ready"
// TemplateInstanceInstantiateFailure indicates the failure of the template
// instantiation
TemplateInstanceInstantiateFailure TemplateInstanceConditionType = "InstantiateFailure"
)
----
example_url: https://github.com/AmadeusITGroup/kubervisor/blob/5c4e1890f77ba7646b9f86ee640a54790db51a63/pkg/api/kubervisor/v1alpha1/types.go#L48
approx_popularity: 1
code_block: >
const (
// KubervisorServiceInitFailed means the KubervisorService has completed its execution.
KubervisorServiceInitFailed KubervisorServiceConditionType = "InitFailed"
// KubervisorServiceRunning means the KubervisorService has completed its execution.
KubervisorServiceRunning KubervisorServiceConditionType = "Running"
// KubeServiceNotAvailable means the KubervisorService has completed its execution.
KubeServiceNotAvailable KubervisorServiceConditionType = "ServiceNotAvailable"
// KubervisorServiceFailed means the KubervisorService has failed its execution.
KubervisorServiceFailed KubervisorServiceConditionType = "Failed"
)
----
example_url: https://github.com/kube-node/nodeset/blob/6a55101a96e59a3fd67bf011061df017dcc2c22b/pkg/nodeset/v1alpha1/types.go#L161
approx_popularity: 1
code_block: >
const (
// This is added when the NodeSet controllers failed to create or delete a node during
// reconciliation.
NodeSetReplicaFailure NodeSetConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/jetstack/cert-manager/blob/816bbf54d5b78be7ea2dc7739d7a497c07748796/pkg/internal/apis/certmanager/types_issuer.go#L248
approx_popularity: 3
code_block: >
const (
// IssuerConditionReady represents the fact that a given Issuer condition
// is in ready state.
IssuerConditionReady IssuerConditionType = "Ready"
)
----
example_url: https://github.com/AmadeusITGroup/Redis-Operator/blob/68f754e90846a5fbcf6efc5edd29abbf29023a16/pkg/api/redis/v1/types.go#L158
approx_popularity: 2
code_block: >
const (
// RedisClusterOK means the RedisCluster is in a good shape
RedisClusterOK RedisClusterConditionType = "ClusterOK"
// RedisClusterScaling means the RedisCluster is currenlty in a scaling stage
RedisClusterScaling RedisClusterConditionType = "Scaling"
// RedisClusterRebalancing means the RedisCluster is currenlty rebalancing slots and keys
RedisClusterRebalancing RedisClusterConditionType = "Rebalancing"
// RedisClusterRollingUpdate means the RedisCluster is currenlty performing a rolling update of its nodes
RedisClusterRollingUpdate RedisClusterConditionType = "RollingUpdate"
)
----
example_url: https://github.com/kubeflow/arena/blob/9ed0577a08c85f0e6ef604ceed34704079166f65/pkg/operators/tf-operator/apis/tensorflow/v1alpha2/types.go#L182
approx_popularity: 2
code_block: >
const (
// TFJobCreated means the tfjob has been accepted by the system,
// but one or more of the pods/services has not been started.
// This includes time before pods being scheduled and launched.
TFJobCreated TFJobConditionType = "Created"
// TFJobRunning means all sub-resources (e.g. services/pods) of this TFJob
----
example_url: https://github.com/grantr/knative-eventing-old/blob/4c4109eed674af29a67d3fa8f1f5bcf5d657f5a3/pkg/apis/feeds/v1alpha1/bind_types.go#L160
approx_popularity: 1
code_block: >
const (
// BindComplete specifies that the bind has completed successfully.
BindComplete BindConditionType = "Complete"
// BindFailed specifies that the bind has failed.
BindFailed BindConditionType = "Failed"
// BindInvalid specifies that the given bind specification is invalid.
BindInvalid BindConditionType = "Invalid"
)
----
example_url: https://github.com/xej520/xingej-k8s-spark/blob/56d720bc8cb9a5004683b5f6445d53462fae7013/spark-operator-on-k8s-for-cluster/pkg/apis/spark/v1beta1/types.go#L19
approx_popularity: 1
code_block: >
const (
ClusterPhaseRunning ClusterPhase = "Running"
ClusterPhaseStopped ClusterPhase = "Stopped"
ClusterPhaseFailed ClusterPhase = "Failed"
ClusterPhaseWaiting ClusterPhase = "Waiting"
ClusterPhaseWarning ClusterPhase = "Warning"
ServerRunning v1.PodPhase = "Running"
ServerStopped v1.PodPhase = "Stopped"
ServerFailed v1.PodPhase = "Failed"
ServerWaiting v1.PodPhase = "Waiting"
ServerPending v1.PodPhase = "Pending"
ServerUnknown v1.PodPhase = "Unknown"
ServerSucceeded v1.PodPhase = "Succeeded"
ServerDeleted v1.PodPhase = "Deleted"
NodeOperatorPhaseStop OperatorPhase = "NodeStop"
NodeOperatorPhaseStart OperatorPhase = "NodeStart"
NodeOperatorPhaseDelete OperatorPhase = "NodeDelete"
ClusterOperatorPhaseStop OperatorPhase = "ClusterStop"
ClusterOperatorPhaseStart OperatorPhase = "ClusterStart"
ClusterOperatorPhaseCreate OperatorPhase = "ClusterCreate"
ClusterOperatorPhaseAddNode OperatorPhase = "AddNode"
ClusterOperatorPhaseChangeResource OperatorPhase = "ChangeResource"
ClusterOperatorPhaseChangeConfig OperatorPhase = "ChangeConfig"
ClusterOperatorPhaseDelete OperatorPhase = "ClusterDelete"
ClusterConditionInit ClusterConditionType = "Init"
ClusterConditionReady ClusterConditionType = "Ready"
ClusterConditionRecovering ClusterConditionType = "Recovering"
ClusterConditionScaling ClusterConditionType = "Scaling"
ClusterConditionUpgrading ClusterConditionType = "Upgrading"
ClusterConditionUnschedulable ClusterConditionType = "Unschedulable"
SparkRoleMaster SparkRole = "master"
SparkRoleSlave SparkRole = "slave"
DefaultSparkVersion = "2.1.0"
RestartActionNo RestartActionPhase = "No"
RestartActionNeed RestartActionPhase = "Need"
RestartActionStarted RestartActionPhase = "Started"
)
----
example_url: https://github.com/xej520/xingej-k8s-spark/blob/56d720bc8cb9a5004683b5f6445d53462fae7013/spark-operator-on-k8s-for-cluster/pkg/apis/spark/v1beta1/types.go#L98
approx_popularity: 1
code_block: >
// The scheduling constraints on spark pods.
Affinity *v1.Affinity `json:"affinity,omitempty"`
}
type ClusterStatus struct {
ClusterPhase ClusterPhase `json:"phase"`
ResourceUpdateNeedRestart bool `json:"resourceupdateneedrestart"`
ParameterUpdateNeedRestart bool `json:"parameterupdateneedrestart"`
ServerNodes map[string]*Server `json:"serverNodes,omitempty"`
// Represents the latest available observations of a cluster object's current state.
Conditions []*ClusterCondition `json:"conditions,omitempty"`
Reason string `json:"reason,omitempty"`
WaitSparkComponentAvailableTimeout int `json:"waitsparktimeout,omitempty"`
}
type Spec struct {
Resources Resources `json:"resources"`
Replicas int `json:"replicas,omitempty"`
Volume string `json:"volume,omitempty"`
Mount string `json:"volumeMount,omitempty"`
Capactity string `json:"capacity,omitempty"`
}
type SparkOperator struct {
Node string `json:"nodename"`
Operator OperatorPhase `json:"operator"`
}
type SparkConfig struct {
Sparkcnf map[string]string `json:"sparkcnf,omitempty"`
LivenessDelayTimeout int `json:"livenessDelayTimeout,omitempty"`
ReadinessDelayTimeout int `json:"readinessDelayTimeout,omitempty"`
LivenessFailureThreshold int `json:"livenessFailureThreshold,omitempty"`
ReadinessFailureThreshold int `json:"readinessFailureThreshold,omitempty"`
}
// Resources spec resource
type Resources struct {
Requests MemoryCPU `json:"requests,omitempty"`
Limits MemoryCPU `json:"limits,omitempty"`
}
// MemoryCPU spec cpu and mem
type MemoryCPU struct {
CPU string `json:"cpu,omitempty"`
Memory string `json:"memory,omitempty"`
}
type Server struct {
ID string `json:"id,omitempty"`
Role SparkRole `json:"role,omitempty"`
Name string `json:"name,omitempty"`
Nodeport int32 `json:"nodeport,omitempty"`
Svcname string `json:"svcname,omitempty"`
Configmapname string `json:"configmapname,omitempty"`
Address string `json:"address,omitempty"`
Node string `json:"nodeName,omitempty"`
Status v1.PodPhase `json:"status,omitempty"`
DownTime int64 `json:"downTime,omitempty"`
RestartAction RestartActionPhase `json:"restartaction,omitempty"`
VolumeID string `json:"volumeid,omitempty"`
Operator OperatorPhase `json:"operator,omitempty"`
NodeConfig map[string]string `json:"nodeconfig,omitempty"`
}
type ClusterCondition struct {
// Type of cluster condition.
Type ClusterConditionType `json:"type"`
// Status of the condition, one of True, False, Unknown.
Status v1.ConditionStatus `json:"status,omitempty"`
// The last time this condition was updated.
LastProbeTime metav1.Time `json:"lastUpdateTime,omitempty"`
// Last time the condition transitioned from one status to another.
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
Reason string `json:"reason,omitempty"`
// A human readable message indicating details about the transition.
Message string `json:"message,omitempty"`
}
// GetKey get namespace/name
func (c *SparkCluster) GetKey() string {
----
example_url: https://github.com/tektoncd/triggers/blob/287527c3c92a97ea6811a1318855cd5a2f45adc4/pkg/apis/triggers/v1alpha1/event_listener_types.go#L129
approx_popularity: 1
code_block: >
const (
// ServiceExists is the ConditionType set on the EventListener, which
// specifies Service existence.
ServiceExists apis.ConditionType = "Service"
// DeploymentExists is the ConditionType set on the EventListener, which
// specifies Deployment existence.
DeploymentExists apis.ConditionType = "Deployment"
)
----
example_url: https://github.com/xkcp0324/workload-controller/blob/5eb61d28b2620efd1b6633662b0f61be54ca1f59/pkg/apis/workload/v1beta1/advdeployment_types.go#L92
approx_popularity: 1
code_block: >
const (
// Available means the deployment is available, ie. at least the minimum available
// replicas required are up and running for at least minReadySeconds.
DeploymentAvailable AdvDeploymentConditionType = "Available"
// Progressing means the deployment is progressing. Progress for a deployment is
// considered when a new replica set is created or adopted, and when new pods scale
// up or old pods scale down. Progress is not estimated for paused deployments or
// when progressDeadlineSeconds is not specified.
DeploymentProgressing AdvDeploymentConditionType = "Progressing"
// ReplicaFailure is added in a deployment when one of its pods fails to be created
// or deleted.
DeploymentReplicaFailure AdvDeploymentConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/jzp1025/mxnet-operator.v2/blob/a8584e1edb11fadba740d4072996faeee0408212/pkg/apis/mxnet/v1alpha2/types.go#L186
approx_popularity: 3
code_block: >
const (
// MXJobCreated means the mxjob has been accepted by the system,
// but one or more of the pods/services has not been started.
// This includes time before pods being scheduled and launched.
MXJobCreated MXJobConditionType = "Created"
// MXJobRunning means all sub-resources (e.g. services/pods) of this MXJob
----
example_url: https://github.com/openshift-knative/knative-openshift-ingress/blob/27c9bdf3a7f213bb23d3fb92af3fc698444e12bc/vendor/knative.dev/serving/pkg/apis/serving/v1alpha1/revision_types.go#L160
approx_popularity: 4
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady = apis.ConditionReady
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable apis.ConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy apis.ConditionType = "ContainerHealthy"
// RevisionConditionActive is set when the revision is receiving traffic.
RevisionConditionActive apis.ConditionType = "Active"
)
----
example_url: https://github.com/tkramarets/federation/blob/29c2c88608596e0f76f86c15e3a3adab8a5b6ca1/pkg/controller/sync/status/status.go#L37
approx_popularity: 1
code_block: >
const (
ClusterPropagationOK PropagationStatus = ""
WaitingForRemoval PropagationStatus = "WaitingForRemoval"
// Cluster-specific errors
ClusterNotReady PropagationStatus = "ClusterNotReady"
CachedRetrievalFailed PropagationStatus = "CachedRetrievalFailed"
ComputeResourceFailed PropagationStatus = "ComputeResourceFailed"
ApplyOverridesFailed PropagationStatus = "ApplyOverridesFailed"
CreationFailed PropagationStatus = "CreationFailed"
UpdateFailed PropagationStatus = "UpdateFailed"
DeletionFailed PropagationStatus = "DeletionFailed"
LabelRemovalFailed PropagationStatus = "LabelRemovalFailed"
RetrievalFailed PropagationStatus = "RetrievalFailed"
AlreadyExists PropagationStatus = "AlreadyExists"
FieldRetentionFailed PropagationStatus = "FieldRetentionFailed"
VersionRetrievalFailed PropagationStatus = "VersionRetrievalFailed"
ClientRetrievalFailed PropagationStatus = "ClientRetrievalFailed"
// Operation timeout errors
CreationTimedOut PropagationStatus = "CreationTimedOut"
UpdateTimedOut PropagationStatus = "UpdateTimedOut"
DeletionTimedOut PropagationStatus = "DeletionTimedOut"
LabelRemovalTimedOut PropagationStatus = "LabelRemovalTimedOut"
AggregateSuccess AggregateReason = ""
ClusterRetrievalFailed AggregateReason = "ClusterRetrievalFailed"
ComputePlacementFailed AggregateReason = "ComputePlacementFailed"
CheckClusters AggregateReason = "CheckClusters"
NamespaceNotFederated AggregateReason = "NamespaceNotFederated"
PropagationConditionType ConditionType = "Propagation"
)
----
example_url: https://github.com/kubernetes-sigs/kubefed/blob/24d45e9f4f1514f201066b674c9d9b26bca45fe3/pkg/controller/sync/status/status.go#L37
approx_popularity: 1
code_block: >
const (
ClusterPropagationOK PropagationStatus = ""
WaitingForRemoval PropagationStatus = "WaitingForRemoval"
// Cluster-specific errors
ClusterNotReady PropagationStatus = "ClusterNotReady"
CachedRetrievalFailed PropagationStatus = "CachedRetrievalFailed"
ComputeResourceFailed PropagationStatus = "ComputeResourceFailed"
ApplyOverridesFailed PropagationStatus = "ApplyOverridesFailed"
CreationFailed PropagationStatus = "CreationFailed"
UpdateFailed PropagationStatus = "UpdateFailed"
DeletionFailed PropagationStatus = "DeletionFailed"
LabelRemovalFailed PropagationStatus = "LabelRemovalFailed"
RetrievalFailed PropagationStatus = "RetrievalFailed"
AlreadyExists PropagationStatus = "AlreadyExists"
FieldRetentionFailed PropagationStatus = "FieldRetentionFailed"
VersionRetrievalFailed PropagationStatus = "VersionRetrievalFailed"
ClientRetrievalFailed PropagationStatus = "ClientRetrievalFailed"
ManagedLabelFalse PropagationStatus = "ManagedLabelFalse"
// Operation timeout errors
CreationTimedOut PropagationStatus = "CreationTimedOut"
UpdateTimedOut PropagationStatus = "UpdateTimedOut"
DeletionTimedOut PropagationStatus = "DeletionTimedOut"
LabelRemovalTimedOut PropagationStatus = "LabelRemovalTimedOut"
AggregateSuccess AggregateReason = ""
ClusterRetrievalFailed AggregateReason = "ClusterRetrievalFailed"
ComputePlacementFailed AggregateReason = "ComputePlacementFailed"
CheckClusters AggregateReason = "CheckClusters"
NamespaceNotFederated AggregateReason = "NamespaceNotFederated"
PropagationConditionType ConditionType = "Propagation"
)
----
example_url: https://github.com/sixolet/serving/blob/699d3436f583a2d48c75c456324de106335960fa/pkg/apis/serving/v1alpha1/route_types.go#L102
approx_popularity: 1
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady = duck.ConditionReady
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned duck.ConditionType = "AllTrafficAssigned"
)
----
example_url: https://github.com/kubeflow/pipelines/blob/578e8231d01074b9dbe40ace1db8cc444a6a1bd8/backend/src/crd/pkg/apis/scheduledworkflow/v1beta1/types.go#L162
approx_popularity: 1
code_block: >
const (
ScheduledWorkflowEnabled ScheduledWorkflowConditionType = "Enabled"
ScheduledWorkflowDisabled ScheduledWorkflowConditionType = "Disabled"
ScheduledWorkflowRunning ScheduledWorkflowConditionType = "Running"
ScheduledWorkflowSucceeded ScheduledWorkflowConditionType = "Succeeded"
ScheduledWorkflowError ScheduledWorkflowConditionType = "Error"
)
----
example_url: https://github.com/kiegroup/kogito-cloud-operator/blob/935d8362880d1d50930406c3357661a7a506a265/pkg/apis/app/v1alpha1/kogitodataindex_types.go#L178
approx_popularity: 1
code_block: >
const (
// ConditionOK means that everything was created successfully
ConditionOK DataIndexConditionType = "OK"
// ConditionProvisioning means that we're still deploying the service
ConditionProvisioning DataIndexConditionType = "Provisioning"
// ConditionFailed means that we fail to deploy the service and its dependencies
ConditionFailed DataIndexConditionType = "Failed"
)
----
example_url: https://github.com/argoproj/argo-rollouts/blob/6278c47aecc4fcb58d7d9a3d60d43c04fff9e1e7/pkg/apis/rollouts/v1alpha1/experiment_types.go#L130
approx_popularity: 2
code_block: >
const (
// InvalidExperimentSpec means the experiment has an invalid spec and will not progress until
// the spec is fixed.
InvalidExperimentSpec ExperimentConditionType = "InvalidSpec"
// ExperimentConcluded means the experiment is available, ie. the active service is pointing at a
// replicaset with the required replicas up and running for at least minReadySeconds.
ExperimentCompleted ExperimentConditionType = "Completed"
// ExperimentProgressing means the experiment is progressing. Progress for a experiment is
// considered when a new replica set is created or adopted, when pods scale
// up or old pods scale down, or when the services are updated. Progress is not estimated
// for paused experiment.
ExperimentProgressing ExperimentConditionType = "Progressing"
// ExperimentRunning means that an experiment has reached the desired state and is running for the duration
// specified in the spec
ExperimentRunning ExperimentConditionType = "Running"
// ExperimentReplicaFailure ReplicaFailure is added in a experiment when one of its pods
// fails to be created or deleted.
ExperimentReplicaFailure ExperimentConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/jaegertracing/jaeger-operator/blob/afccaa907ac2691ff69a93466b829894313a7acf/pkg/storage/elasticsearch/v1/types.go#L183
approx_popularity: 1
code_block: >
const (
UpdatingSettings ClusterConditionType = "UpdatingSettings"
ScalingUp ClusterConditionType = "ScalingUp"
ScalingDown ClusterConditionType = "ScalingDown"
Restarting ClusterConditionType = "Restarting"
InvalidMasters ClusterConditionType = "InvalidMasters"
InvalidData ClusterConditionType = "InvalidData"
InvalidRedundancy ClusterConditionType = "InvalidRedundancy"
InvalidUUID ClusterConditionType = "InvalidUUID"
ESContainerWaiting ClusterConditionType = "ElasticsearchContainerWaiting"
ESContainerTerminated ClusterConditionType = "ElasticsearchContainerTerminated"
ProxyContainerWaiting ClusterConditionType = "ProxyContainerWaiting"
ProxyContainerTerminated ClusterConditionType = "ProxyContainerTerminated"
Unschedulable ClusterConditionType = "Unschedulable"
NodeStorage ClusterConditionType = "NodeStorage"
)
----
example_url: https://github.com/DerSalvador/eventing-contrib/blob/feac9d70d2472c6f2c93a1a6068ae43c0b01ef07/github/pkg/apis/sources/v1alpha1/githubsource_types.go#L109
approx_popularity: 1
code_block: >
const (
// GitHubSourceConditionReady has status True when the
// GitHubSource is ready to send events.
GitHubSourceConditionReady = duckv1alpha1.ConditionReady
// GitHubSourceConditionSecretsProvided has status True when the
// GitHubSource has valid secret references
GitHubSourceConditionSecretsProvided duckv1alpha1.ConditionType = "SecretsProvided"
// GitHubSourceConditionSinkProvided has status True when the
// GitHubSource has been configured with a sink target.
GitHubSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// GitHubSourceConditionEventTypesProvided has status True when the
// GitHubSource has been configured with event types.
GitHubSourceConditionEventTypesProvided duckv1alpha1.ConditionType = "EventTypeProvided"
)
----
example_url: https://github.com/google/knative-gcp/blob/46733ee4556c02a54ff4aebfa3049f6a0458240d/pkg/apis/pubsub/v1alpha1/pull_subscription_types.go#L167
approx_popularity: 1
code_block: >
const (
// PullSubscriptionConditionReady has status True when the PullSubscription is
// ready to send events.
PullSubscriptionConditionReady = apis.ConditionReady
// PullSubscriptionConditionSinkProvided has status True when the PullSubscription
// has been configured with a sink target.
PullSubscriptionConditionSinkProvided apis.ConditionType = "SinkProvided"
// PullSubscriptionConditionDeployed has status True when the PullSubscription has
// had its receive adapter deployment created.
PullSubscriptionConditionDeployed apis.ConditionType = "Deployed"
// PullSubscriptionConditionSubscribed has status True when a Google Cloud
// Pub/Sub Subscription has been created pointing at the created receive
// adapter deployment.
PullSubscriptionConditionSubscribed apis.ConditionType = "Subscribed"
// PullSubscriptionConditionTransformerProvided has status True when the
// PullSubscription has been configured with a transformer target.
PullSubscriptionConditionTransformerProvided apis.ConditionType = "TransformerProvided"
// PullSubscriptionConditionEventTypesProvided has status True when the
// PullSubscription has been configured with event types.
PullSubscriptionConditionEventTypesProvided apis.ConditionType = "EventTypesProvided"
)
----
example_url: https://github.com/googlecloudrobotics/core/blob/2d944fc41e99ff2d244ecfbd18f5dfe4da5f01e4/src/go/pkg/apis/apps/v1alpha1/types.go#L199
approx_popularity: 1
code_block: >
const (
AppRolloutConditionSettled AppRolloutConditionType = "Settled"
AppRolloutConditionReady = "Ready"
)
----
example_url: https://github.com/googlecloudrobotics/core/blob/2d944fc41e99ff2d244ecfbd18f5dfe4da5f01e4/src/go/pkg/apis/apps/v1alpha1/types.go#L285
approx_popularity: 1
code_block: >
const (
ChartAssignmentConditionSettled ChartAssignmentConditionType = "Settled"
ChartAssignmentConditionReady = "Ready"
)
----
example_url: https://github.com/greths/brice/blob/d0f99a05b3a3c6b2e64fbc16af4569e376f6f4b2/pkg/apis/core/v1alpha1/types.go#L222
approx_popularity: 1
code_block: >
const (
// CDIConditionRunning means the CDI deployment is up/ready/healthy
CDIConditionRunning CDIConditionType = "Running"
)
----
example_url: https://github.com/fluxcd/flux/blob/07b3d3d608dc53738d9778d6dd23355e8f50e550/integrations/apis/flux.weave.works/v1beta1/types.go#L254
approx_popularity: 2
code_block: >
const (
// ChartFetched means the chart to which the HelmRelease refers
// has been fetched successfully
HelmReleaseChartFetched HelmReleaseConditionType = "ChartFetched"
// Released means the chart release, as specified in this
// HelmRelease, has been processed by Helm.
HelmReleaseReleased HelmReleaseConditionType = "Released"
// RolledBack means the chart to which the HelmRelease refers
// has been rolled back
HelmReleaseRolledBack HelmReleaseConditionType = "RolledBack"
)
----
example_url: https://github.com/sixolet/serving/blob/699d3436f583a2d48c75c456324de106335960fa/pkg/apis/serving/v1alpha1/service_types.go#L107
approx_popularity: 1
code_block: >
const (
// ServiceConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
ServiceConditionReady = duck.ConditionReady
// ServiceConditionRoutesReady is set when the service's underlying
// routes have reported readiness.
ServiceConditionRoutesReady duck.ConditionType = "RoutesReady"
// ServiceConditionConfigurationsReady is set when the service's underlying
// configurations have reported readiness.
ServiceConditionConfigurationsReady duck.ConditionType = "ConfigurationsReady"
)
----
example_url: https://github.com/DerSalvador/eventing-contrib/blob/feac9d70d2472c6f2c93a1a6068ae43c0b01ef07/kafka/source/pkg/apis/sources/v1alpha1/kafka_types.go#L142
approx_popularity: 1
code_block: >
const (
// KafkaConditionReady has status True when the KafkaSource is ready to send events.
KafkaConditionReady = duckv1alpha1.ConditionReady
// KafkaConditionSinkProvided has status True when the KafkaSource has been configured with a sink target.
KafkaConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// KafkaConditionDeployed has status True when the KafkaSource has had it's receive adapter deployment created.
KafkaConditionDeployed duckv1alpha1.ConditionType = "Deployed"
// KafkaConditionEventTypesProvided has status True when the KafkaSource has been configured with event types.
KafkaConditionEventTypesProvided duckv1alpha1.ConditionType = "EventTypesProvided"
// KafkaConditionResources is True when the resources listed for the KafkaSource have been properly
// parsed and match specified syntax for resource quantities
KafkaConditionResources duckv1alpha1.ConditionType = "ResourcesCorrect"
)
----
example_url: https://github.com/nikkithurmond/serving/blob/5f88e5ec4333a6a3a12e0d99c8f47784b2ce521d/pkg/apis/serving/v1alpha1/configuration_types.go#L86
approx_popularity: 4
code_block: >
const (
// ConfigurationConditionReady is set when the configuration's latest
// underlying revision has reported readiness.
ConfigurationConditionReady ConfigurationConditionType = "Ready"
)
----
example_url: https://github.com/openshift/elasticsearch-operator/blob/93740b07a1ca095235ba4a04c71ba9355a340236/pkg/apis/logging/v1/elasticsearch_types.go#L196
approx_popularity: 1
code_block: >
const (
UpdatingSettings ClusterConditionType = "UpdatingSettings"
ScalingUp ClusterConditionType = "ScalingUp"
ScalingDown ClusterConditionType = "ScalingDown"
Restarting ClusterConditionType = "Restarting"
InvalidMasters ClusterConditionType = "InvalidMasters"
InvalidData ClusterConditionType = "InvalidData"
InvalidRedundancy ClusterConditionType = "InvalidRedundancy"
InvalidUUID ClusterConditionType = "InvalidUUID"
ESContainerWaiting ClusterConditionType = "ElasticsearchContainerWaiting"
ESContainerTerminated ClusterConditionType = "ElasticsearchContainerTerminated"
ProxyContainerWaiting ClusterConditionType = "ProxyContainerWaiting"
ProxyContainerTerminated ClusterConditionType = "ProxyContainerTerminated"
Unschedulable ClusterConditionType = "Unschedulable"
NodeStorage ClusterConditionType = "NodeStorage"
)
----
example_url: https://github.com/nachocano/bitbucket-source/blob/838c2bf985e3b5c73d8d8110503c990e9717b934/pkg/apis/sources/v1alpha1/bitbucketsource_types.go#L84
approx_popularity: 1
code_block: >
const (
// BitBucketSourceConditionReady has status True when the
// BitBucketSource is ready to send events.
BitBucketSourceConditionReady = duckv1alpha1.ConditionReady
// BitBucketSourceConditionSecretsProvided has status True when the
// BitBucketSource has valid secret references.
BitBucketSourceConditionSecretsProvided duckv1alpha1.ConditionType = "SecretsProvided"
// BitBucketSourceConditionSinkProvided has status True when the
// BitBucketSource has been configured with a sink target.
BitBucketSourceConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// BitBucketSourceConditionServiceProvided has status True when the
// BitBucketSource has valid service references.
BitBucketSourceConditionServiceProvided duckv1alpha1.ConditionType = "ServiceProvided"
// BitBucketSourceConditionWebHookUUIDProvided has status True when the
// BitBucketSource has been configured with a webhook.
BitBucketSourceConditionWebHookUUIDProvided duckv1alpha1.ConditionType = "WebHookUUIDProvided"
)
----
example_url: https://github.com/scality/metalk8s/blob/7f83e677de00989609abd588b180ec04c9eb53d5/storage-operator/pkg/apis/storage/v1alpha1/volume_types.go#L90
approx_popularity: 1
code_block: >
const (
// VolumeReady means Volume is ready to be used.
VolumeReady VolumeConditionType = "Ready"
)
----
example_url: https://github.com/hedaan/knative/blob/b51a3703a1e559a34846b2c7e5ab7f069b8a1921/pkg/apis/serving/v1alpha1/route_types.go#L102
approx_popularity: 1
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady = duckv1alpha1.ConditionReady
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned duckv1alpha1.ConditionType = "AllTrafficAssigned"
// RouteConditionIngressReady is set to False when the
// ClusterIngress fails to become Ready.
RouteConditionIngressReady duckv1alpha1.ConditionType = "IngressReady"
)
----
example_url: https://github.com/nikkithurmond/serving/blob/5f88e5ec4333a6a3a12e0d99c8f47784b2ce521d/pkg/apis/autoscaling/v1alpha1/kpa_types.go#L99
approx_popularity: 1
code_block: >
const (
// PodAutoscalerConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
PodAutoscalerConditionReady PodAutoscalerConditionType = "Ready"
// PodAutoscalerConditionActive is set when the PodAutoscaler's ScaleTargetRef is receiving traffic.
PodAutoscalerConditionActive PodAutoscalerConditionType = "Active"
)
----
example_url: https://github.com/ddysher/arsenal/blob/60da04f5f88ea787f3fc0ac9d87c5c613f316aec/cloud-core/kubernetes/projects/codegen/hello-client-gen/pkg/apis/release/v1alpha1/types.go#L155
approx_popularity: 1
code_block: >
const (
// ReleaseAvailable means the resources of release are available and can render service.
ReleaseAvailable ReleaseConditionType = "Available"
// ReleaseProgressing means release is playing a mutation. It occurs when create/update/rollback
// release. If some bad thing was trigger, release transfers to ReleaseFailure.
ReleaseProgressing ReleaseConditionType = "Progressing"
// ReleaseFailure means some parts of release falled into wrong field. Some parts may work
// as usual, but the release can't provide complete service.
ReleaseFailure ReleaseConditionType = "Failure"
)
----
example_url: https://github.com/mgencur/serving/blob/471bed239cb546362d502e06a89327b3093e6a5f/pkg/apis/serving/v1alpha1/route_types.go#L115
approx_popularity: 4
code_block: >
const (
// RouteConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
RouteConditionReady RouteConditionType = "Ready"
// RouteConditionAllTrafficAssigned is set to False when the
// service is not configured properly or has no available
// backends ready to receive traffic.
RouteConditionAllTrafficAssigned RouteConditionType = "AllTrafficAssigned"
)
----
example_url: https://github.com/knative-sample/tablestore-source/blob/714b50e19d5b3cf28ca090097af9d89759fe9a57/pkg/apis/sources/v1alpha1/alitablestoresource_types.go#L118
approx_popularity: 1
code_block: >
const (
// TablestoreConditionReady has status True when the TablestoreSource is ready to send events.
TablestoreConditionReady = duckv1alpha1.ConditionReady
// TablestoreConditionSinkProvided has status True when the TablestoreSource has been configured with a sink target.
TablestoreConditionSinkProvided duckv1alpha1.ConditionType = "SinkProvided"
// TablestoreConditionTransformerProvided has status True when the TablestoreSource has been configured with a transformer target.
TablestoreConditionTransformerProvided duckv1alpha1.ConditionType = "TransformerProvided"
// TablestoreConditionDeployed has status True when the TablestoreSource has had it's receive adapter deployment created.
TablestoreConditionDeployed duckv1alpha1.ConditionType = "Deployed"
// TablestoreConditionSubscribed has status True when a Tablestore Subscription has been created pointing at the created receive adapter deployment.
TablestoreConditionSubscribed duckv1alpha1.ConditionType = "Subscribed"
// TablestoreConditionEventTypesProvided has status True when the TablestoreSource has been configured with event types.
TablestoreConditionEventTypesProvided duckv1alpha1.ConditionType = "EventTypesProvided"
)
----
example_url: https://github.com/qiniu-ava/mxnet-operator/blob/fabbbe18ec8701b6fab898313de4b14d676b7583/pkg/apis/ava/v1alpha1/types.go#L216
approx_popularity: 1
code_block: >
const (
// MXJobCreated means the mxjob has been accepted by the system,
// but one or more of the pods/services has not been started.
// This includes time before pods being scheduled and launched.
MXJobCreated MXJobConditionType = "Created"
// MXJobInitialized means all sub-resources (e.g. services/pods) of this MXJob
----
example_url: https://github.com/noobaa/noobaa-operator/blob/d793e94fac86ea948b0f118efe42b5327b057c0a/pkg/apis/noobaa/v1alpha1/noobaa_types.go#L174
approx_popularity: 1
code_block: >
const (
ConditionTypePhase ConditionType = "Phase"
)
----
example_url: https://github.com/mgencur/serving/blob/471bed239cb546362d502e06a89327b3093e6a5f/pkg/apis/serving/v1alpha1/service_types.go#L114
approx_popularity: 4
code_block: >
const (
// ServiceConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
ServiceConditionReady ServiceConditionType = "Ready"
// ServiceConditionRoutesReady is set when the service's underlying
// routes have reported readiness.
ServiceConditionRoutesReady ServiceConditionType = "RoutesReady"
// ServiceConditionConfigurationsReady is set when the service's underlying
// configurations have reported readiness.
ServiceConditionConfigurationsReady ServiceConditionType = "ConfigurationsReady"
)
----
example_url: https://github.com/kiegroup/kogito-cloud-operator/blob/935d8362880d1d50930406c3357661a7a506a265/pkg/apis/app/v1alpha1/kogitoapp_types.go#L174
approx_popularity: 1
code_block: >
const (
// DeployedConditionType - the kogitoapp is deployed
DeployedConditionType ConditionType = "Deployed"
// ProvisioningConditionType - the kogitoapp is being provisioned
ProvisioningConditionType ConditionType = "Provisioning"
// FailedConditionType - the kogitoapp is in a failed state
FailedConditionType ConditionType = "Failed"
)
----
example_url: https://github.com/apache/camel-k/blob/4f6886a7d06f6ae6ca52b24b279adb73dd7b4f9c/pkg/apis/camel/v1alpha1/integration_types.go#L152
approx_popularity: 1
code_block: >
const (
// IntegrationKind --
IntegrationKind string = "Integration"
// IntegrationPhaseNone --
IntegrationPhaseNone IntegrationPhase = ""
// IntegrationPhaseInitialization --
IntegrationPhaseInitialization IntegrationPhase = "Initialization"
// IntegrationPhaseWaitingForPlatform --
IntegrationPhaseWaitingForPlatform IntegrationPhase = "Waiting For Platform"
// IntegrationPhaseBuildingKit --
IntegrationPhaseBuildingKit IntegrationPhase = "Building Kit"
// IntegrationPhaseResolvingKit --
IntegrationPhaseResolvingKit IntegrationPhase = "Resolving Kit"
// IntegrationPhaseDeploying --
IntegrationPhaseDeploying IntegrationPhase = "Deploying"
// IntegrationPhaseRunning --
IntegrationPhaseRunning IntegrationPhase = "Running"
// IntegrationPhaseError --
IntegrationPhaseError IntegrationPhase = "Error"
// IntegrationConditionKitAvailable --
IntegrationConditionKitAvailable IntegrationConditionType = "IntegrationKitAvailable"
// IntegrationConditionPlatformAvailable --
IntegrationConditionPlatformAvailable IntegrationConditionType = "IntegrationPlatformAvailable"
// IntegrationConditionDeploymentAvailable --
IntegrationConditionDeploymentAvailable IntegrationConditionType = "DeploymentAvailable"
// IntegrationConditionServiceAvailable --
IntegrationConditionServiceAvailable IntegrationConditionType = "ServiceAvailable"
// IntegrationConditionKnativeServiceAvailable --
IntegrationConditionKnativeServiceAvailable IntegrationConditionType = "KnativeServiceAvailable"
// IntegrationConditionExposureAvailable --
IntegrationConditionExposureAvailable IntegrationConditionType = "ExposureAvailable"
// IntegrationConditionPrometheusAvailable --
IntegrationConditionPrometheusAvailable IntegrationConditionType = "PrometheusAvailable"
// IntegrationConditionJolokiaAvailable --
IntegrationConditionJolokiaAvailable IntegrationConditionType = "JolokiaAvailable"
// IntegrationConditionKitAvailableReason --
IntegrationConditionKitAvailableReason string = "IntegrationKitAvailable"
// IntegrationConditionPlatformAvailableReason --
IntegrationConditionPlatformAvailableReason string = "IntegrationPlatformAvailable"
// IntegrationConditionDeploymentAvailableReason --
IntegrationConditionDeploymentAvailableReason string = "DeploymentAvailable"
// IntegrationConditionDeploymentNotAvailableReason --
IntegrationConditionDeploymentNotAvailableReason string = "DeploymentNotAvailable"
// IntegrationConditionServiceAvailableReason --
IntegrationConditionServiceAvailableReason string = "ServiceAvailable"
// IntegrationConditionServiceNotAvailableReason --
IntegrationConditionServiceNotAvailableReason string = "ServiceNotAvailable"
// IntegrationConditionContainerNotAvailableReason --
IntegrationConditionContainerNotAvailableReason string = "ContainerNotAvailable"
// IntegrationConditionRouteAvailableReason --
IntegrationConditionRouteAvailableReason string = "RouteAvailable"
// IntegrationConditionRouteNotAvailableReason --
IntegrationConditionRouteNotAvailableReason string = "RouteNotAvailable"
// IntegrationConditionIngressAvailableReason --
IntegrationConditionIngressAvailableReason string = "IngressAvailable"
// IntegrationConditionIngressNotAvailableReason --
IntegrationConditionIngressNotAvailableReason string = "IngressNotAvailable"
// IntegrationConditionKnativeServiceAvailableReason --
IntegrationConditionKnativeServiceAvailableReason string = "KnativeServiceAvailable"
// IntegrationConditionKnativeServiceNotAvailableReason --
IntegrationConditionKnativeServiceNotAvailableReason string = "KnativeServiceNotAvailable"
// IntegrationConditionPrometheusAvailableReason --
IntegrationConditionPrometheusAvailableReason string = "PrometheusAvailable"
// IntegrationConditionJolokiaAvailableReason --
IntegrationConditionJolokiaAvailableReason string = "JolokiaAvailable"
)
----
example_url: https://github.com/openebs/maya/blob/2499a8612bf558c0a4208bc80e25852f047e285a/pkg/apis/openebs.io/snapshot/v1alpha1/types.go#L44
approx_popularity: 5
code_block: >
const (
// VolumeSnapshotConditionPending means the snapshot is cut and the application
// can resume accessing data if core_v1.ConditionStatus is True. It corresponds
// to "Uploading" in GCE PD or "Pending" in AWS and core_v1.ConditionStatus is True.
// It also corresponds to "Creating" in OpenStack Cinder and core_v1.ConditionStatus
// is Unknown.
VolumeSnapshotConditionPending VolumeSnapshotConditionType = "Pending"
// VolumeSnapshotConditionReady is added when the snapshot has been successfully created and is ready to be used.
VolumeSnapshotConditionReady VolumeSnapshotConditionType = "Ready"
// VolumeSnapshotConditionError means an error occurred during snapshot creation.
VolumeSnapshotConditionError VolumeSnapshotConditionType = "Error"
)
----
example_url: https://github.com/openebs/maya/blob/2499a8612bf558c0a4208bc80e25852f047e285a/pkg/apis/openebs.io/snapshot/v1alpha1/types.go#L139
approx_popularity: 1
code_block: >
const (
// VolumeSnapshotDataConditionReady is added when the on-disk snapshot has been successfully created.
VolumeSnapshotDataConditionReady VolumeSnapshotDataConditionType = "Ready"
// VolumeSnapshotDataConditionPending is added when the on-disk snapshot has been successfully created but is not available to use.
VolumeSnapshotDataConditionPending VolumeSnapshotDataConditionType = "Pending"
// VolumeSnapshotDataConditionError is added but the on-disk snapshot is failed to created
VolumeSnapshotDataConditionError VolumeSnapshotDataConditionType = "Error"
)
----
example_url: https://github.com/openshift/hive/blob/81c4379446346b5f1b5a0c320fcbafcd2f6aab71/pkg/apis/hive/v1alpha1/syncset_types.go#L76
approx_popularity: 1
code_block: >
const (
// ApplySuccessSyncCondition indicates whether the resource or patch has been applied.
ApplySuccessSyncCondition SyncConditionType = "ApplySuccess"
// ApplyFailureSyncCondition indicates that a resource or patch has failed to apply.
// It should include a reason and message for the failure.
ApplyFailureSyncCondition SyncConditionType = "ApplyFailure"
// DeletionFailedSyncCondition indicates that resource deletion has failed.
// It should include a reason and message for the failure.
DeletionFailedSyncCondition SyncConditionType = "DeletionFailed"
// UnknownObjectSyncCondition indicates that the resource type cannot be determined.
// It should include a reason and message for the failure.
UnknownObjectSyncCondition SyncConditionType = "UnknownObject"
)
----
example_url: https://github.com/refunc/refunc/blob/676cd4e49a973b936eec7a3ae18d09dc156bec1d/pkg/apis/refunc/v1beta3/funcinst.go#L70
approx_popularity: 2
code_block: >
const (
FuncinstInactive FuncinstConditionType = "Inactive" // funcinst cannot accept new events
FuncinstPending FuncinstConditionType = "Pending" // waiting for a valid xenv is ready
FuncinstActive FuncinstConditionType = "Active" // can be invoked
)
----
example_url: https://github.com/ImJasonH/elafros/blob/ea02baacea2f30c859364462cc761458bf2deae7/pkg/apis/serving/v1alpha1/revision_types.go#L129
approx_popularity: 3
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady RevisionConditionType = "Ready"
// RevisionConditionBuildComplete is set when the revision has an associated build
// and is marked True if/once the Build has completed succesfully.
RevisionConditionBuildSucceeded RevisionConditionType = "BuildSucceeded"
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable RevisionConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy RevisionConditionType = "ContainerHealthy"
)
----
example_url: https://github.com/grantr/knative-api/blob/f6f57ef15b884605a0ec4fe9fb859e7db010a340/serving/v1alpha1/revision_types.go#L189
approx_popularity: 1
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady = apis.ConditionReady
// RevisionConditionBuildSucceeded is set when the revision has an associated build
// and is marked True if/once the Build has completed successfully.
RevisionConditionBuildSucceeded apis.ConditionType = "BuildSucceeded"
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable apis.ConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy apis.ConditionType = "ContainerHealthy"
// RevisionConditionActive is set when the revision is receiving traffic.
RevisionConditionActive apis.ConditionType = "Active"
)
----
example_url: https://github.com/openshift/cluster-logging-operator/blob/aa8ee9e8469b28f505d5609128e73431194e23f9/pkg/apis/logging/v1/clusterlogging_types.go#L251
approx_popularity: 1
code_block: >
const (
IncorrectCRName ClusterConditionType = "IncorrectCRName"
ContainerWaiting ClusterConditionType = "ContainerWaiting"
ContainerTerminated ClusterConditionType = "ContainerTerminated"
Unschedulable ClusterConditionType = "Unschedulable"
NodeStorage ClusterConditionType = "NodeStorage"
)
----
example_url: https://github.com/openkruise/kruise/blob/4147fc51a1dcc402d1ea168469cbb884efee0066/pkg/apis/apps/v1alpha1/broadcastjob_types.go#L177
approx_popularity: 1
code_block: >
const (
// JobComplete means the job has completed its execution. A complete job means pods have been deployed on all
// eligible nodes and all pods have reached succeeded or failed state. Note that the eligible nodes are defined at
// the beginning of a reconciliation loop. If there are more nodes added within a reconciliation loop, those nodes will
// not be considered to run pods.
JobComplete JobConditionType = "Complete"
// JobFailed means the job has failed its execution. A failed job means the job has either exceeded the
// ActiveDeadlineSeconds limit, or the aggregated number of container restarts for all pods have exceeded the BackoffLimit.
JobFailed JobConditionType = "Failed"
)
----
example_url: https://github.com/integr8ly/integreatly-operator/blob/621460267f51f76d5cdcf9ec8dbd4de3d0c5c4a4/pkg/apis/3scale/v1alpha1/apimanager_types.go#L52
approx_popularity: 2
code_block: >
const (
// Ready means the APIManager is available. This is, when all of its
// elements are up and running
APIManagerReady APIManagerConditionType = "Ready"
// Progressing means the APIManager is being deployed
APIManagerProgressing APIManagerConditionType = "Progressing"
)
----
example_url: https://github.com/google/kf/blob/2321d095abc7fa3e3c37cf521173bb2377ea56be/third_party/knative-build/pkg/apis/build/v1alpha1/build_types.go#L290
approx_popularity: 1
code_block: >
const BuildSucceeded = apis.ConditionSucceeded
const BuildCancelled apis.ConditionType = "Cancelled"
var buildCondSet = apis.NewBatchConditionSet()
----
example_url: https://github.com/projectriff/system/blob/a8df890ca5f0a0a38a92cc6a7072bc8f8efee345/pkg/apis/thirdparty/knative/build/v1alpha1/build_types.go#L123
approx_popularity: 1
code_block: >
const (
// BuildSucceeded is set when the build is running, and becomes True when the
// build finishes successfully.
//
// If the build is ongoing, its status will be Unknown. If it fails, its status
// will be False.
BuildSucceeded = apis.ConditionSucceeded
BuildCancelled apis.ConditionType = "Cancelled"
)
----
example_url: https://github.com/rootfs/snapshot/blob/ef9bc7b34e1c4409ac87a5d49b6f4bf3a60b15f9/pkg/apis/crd/v1/types.go#L45
approx_popularity: 4
code_block: >
const (
// VolumeSnapshotReady is added when the snapshot has been successfully created and is ready to be used.
VolumeSnapshotConditionReady VolumeSnapshotConditionType = "Ready"
)
----
example_url: https://github.com/rootfs/snapshot/blob/ef9bc7b34e1c4409ac87a5d49b6f4bf3a60b15f9/pkg/apis/crd/v1/types.go#L121
approx_popularity: 5
code_block: >
const (
// VolumeSnapshotDataReady is added when the on-disk snapshot has been successfully created.
VolumeSnapshotDataConditionReady VolumeSnapshotDataConditionType = "Ready"
// VolumeSnapshotDataPending is added when the on-disk snapshot has been successfully created but is not available to use.
VolumeSnapshotDataConditionPending VolumeSnapshotDataConditionType = "Pending"
// VolumeSnapshotDataError is added but the on-disk snapshot is failed to created
VolumeSnapshotDataConditionError VolumeSnapshotDataConditionType = "Error"
)
----
example_url: https://github.com/gardener/test-infra/blob/66a1b5035c7010ebec9739f1e5939982383b7a78/pkg/apis/testmachinery/v1beta1/types.go#L39
approx_popularity: 1
code_block: >
const (
ConditionTypeError ConditionType = "error"
ConditionTypeSuccess ConditionType = "success"
ConditionTypeAlways ConditionType = "always"
)
----
example_url: https://github.com/redskyops/k8s-experiment/blob/622ec44d9fd2547775ceca9b3915735f0faed6e1/pkg/apis/redsky/v1alpha1/trial_types.go#L143
approx_popularity: 1
code_block: >
const (
// Condition that indicates a successful trial run
TrialComplete TrialConditionType = "redskyops.dev/trial-complete"
// Condition that indicates a failed trial run
TrialFailed TrialConditionType = "redskyops.dev/trial-failed"
// Condition that indicates all "create" setup tasks have finished
TrialSetupCreated TrialConditionType = "redskyops.dev/trial-setup-created"
// Condition that indicates all "delete" setup tasks have finished
TrialSetupDeleted TrialConditionType = "redskyops.dev/trial-setup-deleted"
// Condition that indicates patches have been applied for a trial
TrialPatched TrialConditionType = "redskyops.dev/trial-patched"
// Condition that indicates a trail has stabilized after patches
TrialStable TrialConditionType = "redskyops.dev/trial-stable"
// Condition that indicates a trial has had metrics collected
TrialObserved TrialConditionType = "redskyops.dev/trial-observed"
)
----
example_url: https://github.com/grantr/knative-api/blob/f6f57ef15b884605a0ec4fe9fb859e7db010a340/build/v1alpha1/build_types.go#L294
approx_popularity: 1
code_block: >
const BuildSucceeded = duckv1alpha1.ConditionSucceeded
const BuildCancelled duckv1alpha1.ConditionType = "Cancelled"
var buildCondSet = duckv1alpha1.NewBatchConditionSet()
----
example_url: https://github.com/michaelgugino/kinstance-controller/blob/0cb40236ea05bd4ee2ce2b6eeb3cb48b079f4292/pkg/apis/awsproviderconfig/v1beta1/awsmachineproviderconfig_types.go#L57
approx_popularity: 1
code_block: >
const (
// MachineCreation indicates whether the machine has been created or not. If not,
// it should include a reason and message for the failure.
MachineCreation AWSMachineProviderConditionType = "MachineCreation"
)
----
example_url: https://github.com/m3db/m3db-operator/blob/40eadeb13424415d6412cf36dce772b2a4d18635/pkg/apis/m3dboperator/v1alpha1/cluster.go#L38
approx_popularity: 1
code_block: >
const (
// ClusterConditionPlacementInitialized indicates an initial placement has
// been created for the cluster.
ClusterConditionPlacementInitialized ClusterConditionType = "PlacementInitialized"
// ClusterConditionPodBootstrapping indicates there is a pod bootstrapping.
ClusterConditionPodBootstrapping ClusterConditionType = "PodBootstrapping"
)
----
example_url: https://github.com/openshift/cluster-logging-operator/blob/9b115e98140a616a7a51bf69f21c0aba84a6600b/pkg/apis/logging/v1alpha1/forwarding_types.go#L186
approx_popularity: 1
code_block: >
const (
//PipelineConditionTypeOutputRef related to verifying outputRefs
PipelineConditionTypeOutputRef PipelineConditionType = "OutputRef"
//PipelineConditionTypeSourceType related to verifying sourceTypes
PipelineConditionTypeSourceType PipelineConditionType = "SourceType"
//PipelineConditionTypeName related to verifying name
PipelineConditionTypeName PipelineConditionType = "Name"
)
----
example_url: https://github.com/openshift/cluster-logging-operator/blob/9b115e98140a616a7a51bf69f21c0aba84a6600b/pkg/apis/logging/v1alpha1/forwarding_types.go#L259
approx_popularity: 1
code_block: >
const (
//OutputConditionTypeEndpoint related to verifying endpoints
OutputConditionTypeEndpoint OutputConditionType = "Endpoint"
//OutputConditionTypeSecret related to verifying secrets
OutputConditionTypeSecret OutputConditionType = "Secet"
//OutputConditionTypeName related to verifying name
OutputConditionTypeName OutputConditionType = "Name"
//OutputConditionTypeType related to verifying type
OutputConditionTypeType OutputConditionType = "Type"
)
----
example_url: https://github.com/georgekuruvillak/etcd-druid/blob/53d7d79de615aff066cb77a4cd9717e9b87ee036/api/v1/etcd_types.go#L183
approx_popularity: 2
code_block: >
const (
// ConditionAvailable is a condition type for indicating availability.
ConditionAvailable ConditionType = "Available"
// ConditionTrue means a resource is in the condition.
ConditionTrue ConditionStatus = "True"
// ConditionFalse means a resource is not in the condition.
ConditionFalse ConditionStatus = "False"
// ConditionUnknown means Gardener can't decide if a resource is in the condition or not.
ConditionUnknown ConditionStatus = "Unknown"
// ConditionProgressing means the condition was seen true, failed but stayed within a predefined failure threshold.
// In the future, we could add other intermediate conditions, e.g. ConditionDegraded.
ConditionProgressing ConditionStatus = "Progressing"
// ConditionCheckError is a constant for a reason in condition.
ConditionCheckError = "ConditionCheckError"
)
----
example_url: https://github.com/kubeup/archon/blob/c1738d719554c047e8d1b5eda633490fcf6146f4/pkg/cluster/types.go#L113
approx_popularity: 1
code_block: >
const (
// InstanceGroupReplicaFailure is added in a replica set when one of its instances fails to be created
// due to insufficient quota, limit ranges, instance security policy, node selectors, etc. or deleted
// due to kubelet being down or finalizers are failing.
InstanceGroupReplicaFailure InstanceGroupConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/kubeup/archon/blob/c1738d719554c047e8d1b5eda633490fcf6146f4/pkg/cluster/types.go#L267
approx_popularity: 1
code_block: >
const (
// InstanceScheduled represents status of the scheduling process for this instance.
InstanceScheduled InstanceConditionType = "InstanceScheduled"
// InstanceReady means the instance is able to service requests and should be added to the
// load balancing pools of all matching services.
InstanceReady InstanceConditionType = "Ready"
// InstanceInitialized means that all init containers in the instance have started successfully.
InstanceInitialized InstanceConditionType = "Initialized"
// InstanceReasonUnschedulable reason in InstanceScheduled InstanceCondition means that the scheduler
// can't schedule the instance right now, for example due to insufficient resources in the cluster.
InstanceReasonUnschedulable = "Unschedulable"
)
----
example_url: https://github.com/xing-yang/external-snapshotter-old/blob/804243bd58e331e498125995531464aae5d3ddda/pkg/apis/volumesnapshot/v1alpha1/types.go#L49
approx_popularity: 1
code_block: >
const (
// VolumeSnapshotConditionCreating means the snapshot is being created but
// it is not cut yet.
VolumeSnapshotConditionCreating VolumeSnapshotConditionType = "Creating"
// VolumeSnapshotConditionUploading means the snapshot is cut and the application
// can resume accessing data if ConditionStatus is True. It corresponds
// to "Uploading" in GCE PD or "Pending" in AWS and ConditionStatus is True.
// This condition type is not applicable in OpenStack Cinder.
VolumeSnapshotConditionUploading VolumeSnapshotConditionType = "Uploading"
// VolumeSnapshotConditionReady is added when the snapshot has been successfully created and is ready to be used.
VolumeSnapshotConditionReady VolumeSnapshotConditionType = "Ready"
// VolumeSnapshotConditionError means an error occurred during snapshot creation.
VolumeSnapshotConditionError VolumeSnapshotConditionType = "Error"
)
----
example_url: https://github.com/pweil-/origin-1/blob/4d083f9db2e2be4b1026a7144211f3e81b076ff7/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1alpha1/types.go#L81
approx_popularity: 3
code_block: >
const (
// BrokerConditionReady represents the fact that a given broker condition
// is in ready state.
BrokerConditionReady BrokerConditionType = "Ready"
)
----
example_url: https://github.com/pweil-/origin-1/blob/4d083f9db2e2be4b1026a7144211f3e81b076ff7/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1alpha1/types.go#L283
approx_popularity: 1
code_block: >
const (
// InstanceConditionReady represents that a given InstanceCondition is in
// ready state.
InstanceConditionReady InstanceConditionType = "Ready"
)
----
example_url: https://github.com/pweil-/origin-1/blob/4d083f9db2e2be4b1026a7144211f3e81b076ff7/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1alpha1/types.go#L359
approx_popularity: 1
code_block: >
const (
// BindingConditionReady represents a binding condition is in ready state.
BindingConditionReady BindingConditionType = "Ready"
)
----
example_url: https://github.com/Percona-Lab/pxc-service-broker/blob/795f14c411c4e9390e20c867611d20d8dc5f40b4/pkg/apis/pxc/v1/types.go#L67
approx_popularity: 2
code_block: >
const (
ClusterReady ClusterConditionType = "Ready"
ClusterInit = "Initializing"
ClusterPXCReady = "PXCReady"
ClusterProxyReady = "ProxySQLReady"
ClusterError = "Error"
)
----
example_url: https://github.com/weaveworks/flagger/blob/8345fea812f91daaca0491288e650d7493544490/pkg/apis/appmesh/v1beta1/types.go#L50
approx_popularity: 2
code_block: >
const (
// MeshActive is Active when the Appmesh Mesh has been created or found via the API
MeshActive MeshConditionType = "MeshActive"
)
----
example_url: https://github.com/weaveworks/flagger/blob/8345fea812f91daaca0491288e650d7493544490/pkg/apis/appmesh/v1beta1/types.go#L222
approx_popularity: 2
code_block: >
const (
// VirtualServiceActive is Active when the Appmesh Service has been created or found via the API
VirtualServiceActive VirtualServiceConditionType = "VirtualServiceActive"
VirtualRouterActive VirtualServiceConditionType = "VirtualRouterActive"
RoutesActive VirtualServiceConditionType = "RoutesActive"
VirtualServiceMeshMarkedForDeletion VirtualServiceConditionType = "MeshMarkedForDeletion"
)
----
example_url: https://github.com/weaveworks/flagger/blob/8345fea812f91daaca0491288e650d7493544490/pkg/apis/appmesh/v1beta1/types.go#L382
approx_popularity: 2
code_block: >
const (
// VirtualNodeActive is Active when the Appmesh Node has been created or found via the API
VirtualNodeActive VirtualNodeConditionType = "VirtualNodeActive"
VirtualNodeMeshMarkedForDeletion VirtualNodeConditionType = "MeshMarkedForDeletion"
)
----
example_url: https://github.com/hedaan/knative/blob/b51a3703a1e559a34846b2c7e5ab7f069b8a1921/pkg/apis/serving/v1alpha1/service_types.go#L148
approx_popularity: 1
code_block: >
const (
// ServiceConditionReady is set when the service is configured
// and has available backends ready to receive traffic.
ServiceConditionReady = duckv1alpha1.ConditionReady
// ServiceConditionRoutesReady is set when the service's underlying
// routes have reported readiness.
ServiceConditionRoutesReady duckv1alpha1.ConditionType = "RoutesReady"
// ServiceConditionConfigurationsReady is set when the service's underlying
// configurations have reported readiness.
ServiceConditionConfigurationsReady duckv1alpha1.ConditionType = "ConfigurationsReady"
)
----
example_url: https://github.com/openkruise/kruise/blob/2a68749e46fbd15f02e08cd5132e0e0667412d9a/pkg/apis/apps/v1alpha1/statefulset_types.go#L26
approx_popularity: 1
code_block: >
const (
// StatefulSetInPlaceUpdateReady must be added into template.spec.readinessGates when pod podUpdatePolicy
// is InPlaceIfPossible or InPlaceOnly. The condition in podStatus will be updated to False before in-place
// updating and updated to True after the update is finished. This ensures pod to remain at NotReady state while
// in-place update is happening.
StatefulSetInPlaceUpdateReady v1.PodConditionType = "InPlaceUpdateReady"
// StatefulSetInPlaceUpdateStateAnnotation records the state of inplace-update.
// The value of annotation is inPlaceUpdateState.
StatefulSetInPlaceUpdateStateAnnotation string = "inplace-update-state"
)
----
example_url: https://github.com/google/kf/blob/3c3ac277bdf8bae17102093f80161a68d6a621c7/third_party/knative-serving/pkg/apis/networking/v1alpha1/ingress_types.go#L315
approx_popularity: 5
code_block: >
const (
// IngressConditionReady is set when the Ingress networking setting is
// configured and it has a load balancer address.
IngressConditionReady = apis.ConditionReady
// IngressConditionNetworkConfigured is set when the Ingress's underlying
// network programming has been configured. This doesn't include conditions of the
// backends, so even if this should remain true when network is configured and backends
// are not ready.
IngressConditionNetworkConfigured apis.ConditionType = "NetworkConfigured"
// IngressConditionLoadBalancerReady is set when the Ingress has a ready LoadBalancer.
IngressConditionLoadBalancerReady apis.ConditionType = "LoadBalancerReady"
)
----
example_url: https://github.com/presslabs/mysql-operator/blob/5c7101e0d0ea4f3203c4f52c1b67dde65da6b6b8/pkg/apis/mysql/v1alpha1/mysqlcluster_types.go#L225
approx_popularity: 1
code_block: >
const (
// ClusterConditionReady represents the readiness of the cluster. This
// condition is the same sa statefulset Ready condition.
ClusterConditionReady ClusterConditionType = "Ready"
// ClusterConditionFailoverAck represents if the cluster has pending ack in
// orchestrator or not.
ClusterConditionFailoverAck ClusterConditionType = "PendingFailoverAck"
// ClusterConditionReadOnly describe cluster state if it's in read only or
// writable.
ClusterConditionReadOnly ClusterConditionType = "ReadOnly"
// ClusterConditionFailoverInProgress indicates if there is a current failover in progress
// done by the Orchestrator
ClusterConditionFailoverInProgress ClusterConditionType = "FailoverInProgress"
)
----
example_url: https://github.com/presslabs/mysql-operator/blob/5c7101e0d0ea4f3203c4f52c1b67dde65da6b6b8/pkg/apis/mysql/v1alpha1/mysqlcluster_types.go#L259
approx_popularity: 1
code_block: >
const (
// NodeConditionLagged represents if the node is marked as lagged by
// orchestrator.
NodeConditionLagged NodeConditionType = "Lagged"
// NodeConditionReplicating represents if the node is replicating or not.
NodeConditionReplicating NodeConditionType = "Replicating"
// NodeConditionMaster represents if the node is master or not.
NodeConditionMaster NodeConditionType = "Master"
// NodeConditionReadOnly repesents if the node is read only or not
NodeConditionReadOnly NodeConditionType = "ReadOnly"
)
----
example_url: https://github.com/cuijxin/atom-mysql-operator/blob/9b4535f2be882749c9c11450f7786324ef8e03a1/pkg/apis/mysql/v1alpha1/types.go#L69
approx_popularity: 2
code_block: >
// If specified, affinity will define the pod's scheduling constraints
// +optional
Affinity *corev1.Affinity `json:"affinity,omitempty"`
// VolumeClaimTemplate allows a user to specify how volumes inside a MySQL cluster
// +optional
VolumeClaimTemplate *corev1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty"`
// BackupVolumeClaimTemplate allows a user to specify a volume to temporarily store the
// data for a backup prior to it being shipped to object storage.
// +optional
BackupVolumeClaimTemplate *corev1.PersistentVolumeClaim `json:"backupVolumeClaimTemplate,omitempty"`
// If defined, we use this secret for configuring the MYSQL_ROOT_PASSWORD
// If it is not set we generate a secret dynamically
// +optional
RootPasswordSecret *corev1.LocalObjectReference `json:"rootPasswordSecret,omitempty"`
// Config allows a user to specify a custom configuration file for MySQL.
// +optional
Config *corev1.LocalObjectReference `json:"config,omitempty"`
// SSLSecret allows a user to specify custom CA certificate, server certificate
// and server key for group replication SSL.
// +optional
SSLSecret *corev1.LocalObjectReference `json:"sslSecret,omitempty"`
// SecurityContext holds Pod-level security attributes and common Container settings.
SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`
// Tolerations allows specifying a list of tolerations for controlling which
// set of Nodes a Pod can be scheduled on
Tolerations *[]corev1.Toleration `json:"tolerations,omitempty"`
// Resources holds ResourceRequirements for the MySQL Agent & Server Containers
Resources *Resources `json:"resources,omitempty"`
}
// ClusterConditionType represents a valid condition of a Cluster.
type ClusterConditionType string
const (
// ClusterReady means the Cluster is able to service requests.
ClusterReady ClusterConditionType = "Ready"
)
----
example_url: https://github.com/cuijxin/atom-mysql-operator/blob/9b4535f2be882749c9c11450f7786324ef8e03a1/pkg/apis/mysql/v1alpha1/types.go#L186
approx_popularity: 2
code_block: >
const (
// BackupScheduled means the Backup has been assigned to a Cluster
// member for execution.
BackupScheduled BackupConditionType = "Scheduled"
// BackupRunning means the Backup is currently being executed by a
// Cluster member's mysql-agent side-car.
BackupRunning BackupConditionType = "Running"
// BackupComplete means the Backup has successfully executed and the
// resulting artifact has been stored in object storage.
BackupComplete BackupConditionType = "Complete"
// BackupFailed means the Backup has failed.
BackupFailed BackupConditionType = "Failed"
)
----
example_url: https://github.com/cuijxin/atom-mysql-operator/blob/9b4535f2be882749c9c11450f7786324ef8e03a1/pkg/apis/mysql/v1alpha1/types.go#L302
approx_popularity: 2
code_block: >
const (
// RestoreScheduled means the Restore has been assigned to a Cluster
// member for execution.
RestoreScheduled RestoreConditionType = "Scheduled"
// RestoreRunning means the Restore is currently being executed by a
// Cluster member's mysql-agent side-car.
RestoreRunning RestoreConditionType = "Running"
// RestoreComplete means the Restore has successfully executed and the
// resulting artifact has been stored in object storage.
RestoreComplete RestoreConditionType = "Complete"
// RestoreFailed means the Restore has failed.
RestoreFailed RestoreConditionType = "Failed"
)
----
example_url: https://github.com/keleustes/armada-crd/blob/e36bf6b87d0bea9a69a4e309f9c88360c32e6d9d/pkg/apis/armada/v1alpha1/common_types.go#L74
approx_popularity: 2
code_block: >
const (
ConditionIrreconcilable HelmResourceConditionType = "Irreconcilable"
ConditionPending = "Pending"
ConditionInitialized = "Initializing"
ConditionError = "Error"
ConditionRunning = "Running"
ConditionDeployed = "Deployed"
ConditionFailed = "Failed"
)
----
example_url: https://github.com/sixolet/serving/blob/699d3436f583a2d48c75c456324de106335960fa/pkg/apis/serving/v1alpha1/revision_types.go#L174
approx_popularity: 1
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady = duck.ConditionReady
// RevisionConditionBuildSucceeded is set when the revision has an associated build
// and is marked True if/once the Build has completed successfully.
RevisionConditionBuildSucceeded duck.ConditionType = "BuildSucceeded"
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable duck.ConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy duck.ConditionType = "ContainerHealthy"
// RevisionConditionActive is set when the revision is receiving traffic.
RevisionConditionActive duck.ConditionType = "Active"
)
----
example_url: https://github.com/operator-framework/operator-lifecycle-manager/blob/4cb99dae84723f2d6aff267a7b8fcd54577c1040/pkg/api/apis/operators/v1alpha1/subscription_types.go#L92
approx_popularity: 1
code_block: >
const (
// SubscriptionCatalogSourcesUnhealthy indicates that some or all of the CatalogSources to be used in resolution are unhealthy.
SubscriptionCatalogSourcesUnhealthy SubscriptionConditionType = "CatalogSourcesUnhealthy"
// SubscriptionInstallPlanMissing indicates that a Subscription's InstallPlan is missing.
SubscriptionInstallPlanMissing SubscriptionConditionType = "InstallPlanMissing"
// SubscriptionInstallPlanPending indicates that a Subscription's InstallPlan is pending installation.
SubscriptionInstallPlanPending SubscriptionConditionType = "InstallPlanPending"
// SubscriptionInstallPlanFailed indicates that the installation of a Subscription's InstallPlan has failed.
SubscriptionInstallPlanFailed SubscriptionConditionType = "InstallPlanFailed"
)
----
example_url: https://github.com/grantr/knative-api/blob/f6f57ef15b884605a0ec4fe9fb859e7db010a340/networking/v1alpha1/clusteringress_types.go#L316
approx_popularity: 1
code_block: >
const (
// ClusterIngressConditionReady is set when the clusterIngress networking setting is
// configured and it has a load balancer address.
ClusterIngressConditionReady = apis.ConditionReady
// ClusterIngressConditionNetworkConfigured is set when the ClusterIngress's underlying
// network programming has been configured. This doesn't include conditions of the
// backends, so even if this should remain true when network is configured and backends
// are not ready.
ClusterIngressConditionNetworkConfigured apis.ConditionType = "NetworkConfigured"
// ClusterIngressConditionLoadBalancerReady is set when the ClusterIngress has
// a ready LoadBalancer.
ClusterIngressConditionLoadBalancerReady apis.ConditionType = "LoadBalancerReady"
)
----
example_url: https://github.com/nilebox/kanarini/blob/4efc8c60b91b53cf497418ed7a0d75a63887d096/pkg/apis/kanarini/v1alpha1/types.go#L121
approx_popularity: 1
code_block: >
const (
// Ready means the deployment has successfully finished its reconciliation.
CanaryDeploymentReady CanaryDeploymentConditionType = "Ready"
// Progressing means the deployment is progressing.
CanaryDeploymentProgressing CanaryDeploymentConditionType = "Progressing"
// Failure is added in a deployment when one of its pods fails to be created
// or deleted.
CanaryDeploymentFailure CanaryDeploymentConditionType = "Failure"
)
----
example_url: https://github.com/tkestack/lb-controlling-framework/blob/8003a9c7f712bfd58dd0dbe4977f68163060f21c/pkg/apis/lbcf.tke.cloud.tencent.com/v1beta1/types.go#L104
approx_popularity: 1
code_block: >
const (
LBCreated LoadBalancerConditionType = "Created"
LBAttributesSynced LoadBalancerConditionType = "AttributesSynced"
)
----
example_url: https://github.com/tkestack/lb-controlling-framework/blob/8003a9c7f712bfd58dd0dbe4977f68163060f21c/pkg/apis/lbcf.tke.cloud.tencent.com/v1beta1/types.go#L211
approx_popularity: 1
code_block: >
const (
DriverAccepted LoadBalancerDriverConditionType = "Accepted"
)
----
example_url: https://github.com/tkestack/lb-controlling-framework/blob/8003a9c7f712bfd58dd0dbe4977f68163060f21c/pkg/apis/lbcf.tke.cloud.tencent.com/v1beta1/types.go#L394
approx_popularity: 1
code_block: >
const (
BackendRegistered BackendRecordConditionType = "Registered"
)
----
example_url: https://github.com/XingChain/cert-manager/blob/0bf3ff6835eb02b11da6484d1ea433e95ef265e5/pkg/apis/certmanager/v1alpha1/types.go#L357
approx_popularity: 1
code_block: >
const (
// CertificateConditionReady represents the fact that a given Certificate condition
// is in ready state.
CertificateConditionReady CertificateConditionType = "Ready"
// CertificateConditionValidationFailed is used to indicate whether a
// validation for a Certificate has failed.
// This is currently used by the ACME issuer to track when the last
// validation was attempted.
CertificateConditionValidationFailed CertificateConditionType = "ValidateFailed"
)
----
example_url: https://github.com/hedaan/knative/blob/b51a3703a1e559a34846b2c7e5ab7f069b8a1921/pkg/apis/networking/v1alpha1/clusteringress_types.go#L294
approx_popularity: 1
code_block: >
const (
// ClusterIngressConditionReady is set when the clusterIngress networking setting is
// configured and it has a load balancer address.
ClusterIngressConditionReady = duckv1alpha1.ConditionReady
// ClusterIngressConditionNetworkConfigured is set when the ClusterIngress's underlying
// network programming has been configured. This doesn't include conditions of the
// backends, so even if this should remain true when network is configured and backends
// are not ready.
ClusterIngressConditionNetworkConfigured duckv1alpha1.ConditionType = "NetworkConfigured"
// ClusterIngressConditionLoadBalancerReady is set when the ClusterIngress has
// a ready LoadBalancer.
ClusterIngressConditionLoadBalancerReady duckv1alpha1.ConditionType = "LoadBalancerReady"
)
----
example_url: https://github.com/redhat-cop/quay-operator/blob/48ce1d05c3647ab0097f788646c36a65474ed566/pkg/apis/redhatcop/v1alpha1/quayecosystem_types.go#L26
approx_popularity: 1
code_block: >
const (
// QuayEcosystemValidationFailure indicates that there was an error validating the configuration
QuayEcosystemValidationFailure QuayEcosystemConditionType = "QuayEcosystemValidationFailure"
// QuayEcosystemUpdateDefaultConfigurationConditionSuccess represents successfully updating of the default spec configuration
QuayEcosystemUpdateDefaultConfigurationConditionSuccess QuayEcosystemConditionType = "UpdateDefaultConfigurationSuccess"
// QuayEcosystemUpdateDefaultConfigurationConditionFailure represents failing to updating of the default spec configuration
QuayEcosystemUpdateDefaultConfigurationConditionFailure QuayEcosystemConditionType = "UpdateDefaultConfigurationFailure"
// QuayEcosystemProvisioningSuccess indicates that the QuayEcosystem provisioning was successful
QuayEcosystemProvisioningSuccess QuayEcosystemConditionType = "QuayEcosystemProvisioningSuccess"
// QuayEcosystemProvisioningFailure indicates that the QuayEcosystem provisioning failed
QuayEcosystemProvisioningFailure QuayEcosystemConditionType = "QuayEcosystemProvisioningFailure"
// QuayEcosystemQuaySetupSuccess indicates that the Quay setup process was successful
QuayEcosystemQuaySetupSuccess QuayEcosystemConditionType = "QuaySetupSuccess"
// QuayEcosystemQuaySetupFailure indicates that the Quay setup process failed
QuayEcosystemQuaySetupFailure QuayEcosystemConditionType = "QuaySetupFailure"
// QuayEcosystemClairConfigurationSuccess indicates that the Clair configuration process succeeded
QuayEcosystemClairConfigurationSuccess QuayEcosystemConditionType = "QuayEcosystemClairConfigurationSuccess"
// QuayEcosystemClairConfigurationFailure indicates that the Clair configuration process failed
QuayEcosystemClairConfigurationFailure QuayEcosystemConditionType = "QuayEcosystemClairConfigurationFailure"
// QuayEcosystemSecurityScannerConfigurationSuccess indicates that the security scanner was configured successfully
QuayEcosystemSecurityScannerConfigurationSuccess QuayEcosystemConditionType = "QuayEcosystemSecurityScannerConfigurationSuccess"
// QuayEcosystemSecurityScannerConfigurationFailure indicates that the security scanner configuration failed
QuayEcosystemSecurityScannerConfigurationFailure QuayEcosystemConditionType = "QuayEcosystemSecurityScannerConfigurationFailure"
)
----
example_url: https://github.com/danisla/terraform-operator/blob/ae9a015fbbdb619d572a6bd7fff5b4b75ebd1cea/pkg/types/types.go#L244
approx_popularity: 1
code_block: >
// The condition type constants listed below are in the order they should roughly happen and in the order they
// exist in the status.conditions list. This gives visibility to what the operator is doing.
// Some conditions can be satisfied in parallel with others.
const (
// ConditionSpecFromReady is True when the given specFrom terraform resource is ready.
ConditionSpecFromReady ConditionType = "SpecFromReady"
// ConditionProviderConfigReady is True when the provider config is available and ready.
ConditionProviderConfigReady ConditionType = "ProviderConfigReady"
// ConditionConfigSourceReady is True when all config sources are ready.
ConditionConfigSourceReady ConditionType = "ConfigSourceReady"
// ConditionInputsReady is True when all var inputs are ready.
ConditionInputsReady ConditionType = "TFInputsReady"
// ConditionVarsFromReady is True when all vars from sources are ready.
ConditionVarsFromReady ConditionType = "TFVarsFromReady"
// ConditionPlanReady is True when a given tfplan source file path is ready.
ConditionPlanReady ConditionType = "TFPlanReady"
// ConditionPodComplete is True when the terraform pod has completed successfully.
ConditionPodComplete ConditionType = "TFPodComplete"
// ConditionReady is True when all prior conditions are ready.
ConditionReady ConditionType = "Ready"
)
----
example_url: https://github.com/steuhs/elafros/blob/be9d5d636a8520318304a318c5ea3ec4137a5f13/pkg/apis/serving/v1alpha1/revision_types.go#L153
approx_popularity: 1
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady RevisionConditionType = "Ready"
// RevisionConditionBuildComplete is set when the revision has an associated build
// and is marked True if/once the Build has completed successfully.
RevisionConditionBuildSucceeded RevisionConditionType = "BuildSucceeded"
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable RevisionConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy RevisionConditionType = "ContainerHealthy"
)
----
example_url: https://github.com/AlerantAppNGIN/origin-3.6/blob/4f03636952e5f0b9ab56ee37c6b8576345fe6aa2/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/types.go#L380
approx_popularity: 2
code_block: >
const (
// InstanceConditionReady represents that a given InstanceCondition is in
// ready state.
InstanceConditionReady InstanceConditionType = "Ready"
// InstanceConditionFailed represents information about a final failure
// that should not be retried.
InstanceConditionFailed InstanceConditionType = "Failed"
)
----
example_url: https://github.com/AlerantAppNGIN/origin-3.6/blob/4f03636952e5f0b9ab56ee37c6b8576345fe6aa2/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/types.go#L477
approx_popularity: 1
code_block: >
const (
// BindingConditionReady represents a BindingCondition is in ready state.
BindingConditionReady BindingConditionType = "Ready"
// BindingConditionFailed represents a BindingCondition that has failed
// completely and should not be retried.
BindingConditionFailed BindingConditionType = "Failed"
)
----
example_url: https://github.com/Gruntdav/jenkins-x-local/blob/6fadcb8d6c7d60aa55d2e5d85b5b87d70cc691ab/pkg/jx/cmd/step_create_build.go#L444
approx_popularity: 1
code_block: >
const BuildSucceeded BuildConditionType = "Succeeded"
// BuildCondition defines a readiness condition for a Build.
// See: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#typical-status-properties
type BuildCondition struct {
// Type is the type of the condition.
Type BuildConditionType `json:"state"`
// Status is one of True, False or Unknown.
Status corev1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"`
// Reason is a one-word CamelCase reason for the condition's last
// transition.
// +optional
Reason string `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"`
// Message is a human-readable message indicating details about the
// last transition.
// +optional
Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// BuildList is a list of Build resources
type BuildList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
// Items is the list of Build items in this list.
Items []Build `json:"items"`
}
// GetCondition returns the Condition matching the given type.
func (bs *BuildStatus) GetCondition(t BuildConditionType) *BuildCondition {
----
example_url: https://github.com/jetstack/navigator/blob/67d871f4d0d4e765b0c46425e139d4517ea26068/pkg/apis/navigator/v1alpha1/types.go#L327
approx_popularity: 1
code_block: >
const (
ClusterConditionAvailable ClusterConditionType = "Available"
ClusterConditionProgressing ClusterConditionType = "Progressing"
)
----
example_url: https://github.com/jetstack/navigator/blob/67d871f4d0d4e765b0c46425e139d4517ea26068/pkg/apis/navigator/v1alpha1/types.go#L439
approx_popularity: 1
code_block: >
const (
// PilotConditionReady represents the fact that a given Pilot condition
// is in ready state.
PilotConditionReady PilotConditionType = "Ready"
// PilotConditionStarted represents the fact that a given Pilot condition
// is in started state.
PilotConditionStarted PilotConditionType = "Started"
// PilotConditionStopped represents the fact that a given Pilot
// condition is in a stopped state.
PilotConditionStopped PilotConditionType = "Stopped"
)
----
example_url: https://github.com/nikkithurmond/serving/blob/5f88e5ec4333a6a3a12e0d99c8f47784b2ce521d/pkg/apis/serving/v1alpha1/revision_types.go#L172
approx_popularity: 1
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady RevisionConditionType = "Ready"
// RevisionConditionBuildSucceeded is set when the revision has an associated build
// and is marked True if/once the Build has completed successfully.
RevisionConditionBuildSucceeded RevisionConditionType = "BuildSucceeded"
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable RevisionConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy RevisionConditionType = "ContainerHealthy"
// RevisionConditionActive is set when the revision is receiving traffic.
RevisionConditionActive RevisionConditionType = "Active"
)
----
example_url: https://github.com/percona/percona-server-mongodb-operator/blob/6281f6300b58ce0667bf4189ff674ae0dbec7887/pkg/apis/psmdb/v1/psmdb_types.go#L107
approx_popularity: 2
code_block: >
const (
ClusterReady ClusterConditionType = "ClusterReady"
ClusterInit = "ClusterInitializing"
ClusterRSInit = "ReplsetInitialized"
ClusterRSReady = "ReplsetReady"
ClusterError = "Error"
)
----
example_url: https://github.com/camsas/poseidon-vendor/blob/64093ac143968b312a5810294abe1fb1e4a22d68/k8s.io/client-go/pkg/apis/apps/v1beta1/types.go#L337
approx_popularity: 203
code_block: >
const (
// Available means the deployment is available, ie. at least the minimum available
// replicas required are up and running for at least minReadySeconds.
DeploymentAvailable DeploymentConditionType = "Available"
// Progressing means the deployment is progressing. Progress for a deployment is
// considered when a new replica set is created or adopted, and when new pods scale
// up or old pods scale down. Progress is not estimated for paused deployments or
// when progressDeadlineSeconds is not specified.
DeploymentProgressing DeploymentConditionType = "Progressing"
// ReplicaFailure is added in a deployment when one of its pods fails to be created
// or deleted.
DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/kubedge/kubedge-operator-base/blob/ccc40efd40f6ac53b3c4ea040df366a6320de7d7/pkg/apis/kubedgeoperators/v1alpha1/common_types.go#L103
approx_popularity: 1
code_block: >
const (
ConditionIrreconcilable KubedgeConditionType = "Irreconcilable"
ConditionFailed = "Failed"
ConditionInitialized = "Initializing"
ConditionEnabled = "Enabled"
ConditionDownloaded = "Downloaded"
ConditionDeployed = "Deployed"
// JEB: Not sure we will ever be able to use those conditions
ConditionBackedUp KubedgeConditionType = "BackedUp"
ConditionRestored = "Restored"
ConditionUpgraded = "Upgraded"
ConditionRolledBack = "RolledBack"
)
----
example_url: https://github.com/AlerantAppNGIN/origin-3.6/blob/4f03636952e5f0b9ab56ee37c6b8576345fe6aa2/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1alpha1/types.go#L481
approx_popularity: 1
code_block: >
const (
// BindingConditionReady represents a binding condition is in ready state.
BindingConditionReady BindingConditionType = "Ready"
// BindingConditionFailed represents a BindingCondition that has failed
// completely and should not be retried.
BindingConditionFailed BindingConditionType = "Failed"
)
----
example_url: https://github.com/hedaan/knative/blob/b51a3703a1e559a34846b2c7e5ab7f069b8a1921/pkg/apis/serving/v1alpha1/revision_types.go#L220
approx_popularity: 1
code_block: >
const (
// RevisionConditionReady is set when the revision is starting to materialize
// runtime resources, and becomes true when those resources are ready.
RevisionConditionReady = duckv1alpha1.ConditionReady
// RevisionConditionBuildSucceeded is set when the revision has an associated build
// and is marked True if/once the Build has completed successfully.
RevisionConditionBuildSucceeded duckv1alpha1.ConditionType = "BuildSucceeded"
// RevisionConditionResourcesAvailable is set when underlying
// Kubernetes resources have been provisioned.
RevisionConditionResourcesAvailable duckv1alpha1.ConditionType = "ResourcesAvailable"
// RevisionConditionContainerHealthy is set when the revision readiness check completes.
RevisionConditionContainerHealthy duckv1alpha1.ConditionType = "ContainerHealthy"
// RevisionConditionActive is set when the revision is receiving traffic.
RevisionConditionActive duckv1alpha1.ConditionType = "Active"
)
----
example_url: https://github.com/k8s-kanary/kanary/blob/821f9ce026038bf2185829b0cdf83e4e0c0a1fc4/pkg/apis/kanary/v1alpha1/kanarydeployment_types.go#L279
approx_popularity: 1
code_block: >
const (
// Activated means the KanaryStatefulset strategy is activated
ScheduledKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Scheduled"
// Activated means the KanaryStatefulset strategy is activated
ActivatedKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Activated"
// Succeeded means the KanaryStatefulset strategy succeed,
// the deployment rolling-update is in progress or already done.
// it means also the deployment and the canary deployment have the same version.
SucceededKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Succeeded"
// FailedKanaryStatefulsetConditionType is added in a kanarystatefulset when the canary deployment
// process failed.
FailedKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Failed"
// RunningKanaryStatefulsetConditionType is added in a kanarystatefulset when the canary is still under validation.
RunningKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Running"
// DeploymentUpdated is added in a kanarystatefulset when the canary succeded and that the deployment was updated
DeploymentUpdatedKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "DeploymentUpdated"
// ErroredKanaryStatefulsetConditionType is added in a kanarystatefulset when the canary deployment
// process errored.
ErroredKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Errored"
// TrafficServiceKanaryStatefulsetConditionType means the KanaryStatefulset Traffic strategy is activated
TrafficKanaryStatefulsetConditionType KanaryStatefulsetConditionType = "Traffic"
)
----
example_url: https://github.com/AmadeusITGroup/kanary/blob/05a33529c46c87bd41c85ee935c1158e99c9ecac/pkg/apis/kanary/v1alpha1/kanarydeployment_types.go#L278
approx_popularity: 1
code_block: >
const (
// Activated means the KanaryDeployment strategy is activated
ScheduledKanaryDeploymentConditionType KanaryDeploymentConditionType = "Scheduled"
// Activated means the KanaryDeployment strategy is activated
ActivatedKanaryDeploymentConditionType KanaryDeploymentConditionType = "Activated"
// Succeeded means the KanaryDeployment strategy succeed,
// the deployment rolling-update is in progress or already done.
// it means also the deployment and the canary deployment have the same version.
SucceededKanaryDeploymentConditionType KanaryDeploymentConditionType = "Succeeded"
// FailedKanaryDeploymentConditionType is added in a kanarydeployment when the canary deployment
// process failed.
FailedKanaryDeploymentConditionType KanaryDeploymentConditionType = "Failed"
// RunningKanaryDeploymentConditionType is added in a kanarydeployment when the canary is still under validation.
RunningKanaryDeploymentConditionType KanaryDeploymentConditionType = "Running"
// DeploymentUpdated is added in a kanarydeployment when the canary succeded and that the deployment was updated
DeploymentUpdatedKanaryDeploymentConditionType KanaryDeploymentConditionType = "DeploymentUpdated"
// ErroredKanaryDeploymentConditionType is added in a kanarydeployment when the canary deployment
// process errored.
ErroredKanaryDeploymentConditionType KanaryDeploymentConditionType = "Errored"
// TrafficServiceKanaryDeploymentConditionType means the KanaryDeployment Traffic strategy is activated
TrafficKanaryDeploymentConditionType KanaryDeploymentConditionType = "Traffic"
)
----
example_url: https://github.com/libopenstorage/operator/blob/1ee14d9e97348506edaf62a907330d0b368b4e01/pkg/apis/core/v1alpha1/storagecluster.go#L358
approx_popularity: 1
code_block: >
const (
// ClusterConditionTypeUpgrade indicates the status for an upgrade operation on the cluster
ClusterConditionTypeUpgrade ClusterConditionType = "Upgrade"
// ClusterConditionTypeDelete indicates the status for a delete operation on the cluster
ClusterConditionTypeDelete ClusterConditionType = "Delete"
// ClusterConditionTypeInstall indicates the status for an install operation on the cluster
ClusterConditionTypeInstall ClusterConditionType = "Install"
)
----
example_url: https://github.com/openshift/machine-config-operator/blob/5bcf8d3417033734561d0174e6e821d3335ef118/pkg/apis/machineconfiguration.openshift.io/v1/types.go#L143
approx_popularity: 1
code_block: >
const (
// TemplateControllerRunning means the template controller is currently running.
TemplateControllerRunning ControllerConfigStatusConditionType = "TemplateControllerRunning"
// TemplateControllerCompleted means the template controller has completed reconciliation.
TemplateControllerCompleted ControllerConfigStatusConditionType = "TemplateControllerCompleted"
// TemplateControllerFailing means the template controller is failing.
TemplateControllerFailing ControllerConfigStatusConditionType = "TemplateControllerFailing"
)
----
example_url: https://github.com/openshift/machine-config-operator/blob/5bcf8d3417033734561d0174e6e821d3335ef118/pkg/apis/machineconfiguration.openshift.io/v1/types.go#L302
approx_popularity: 1
code_block: >
const (
// MachineConfigPoolUpdated means MachineConfigPool is updated completely.
// When the all the machines in the pool are updated to the correct machine config.
MachineConfigPoolUpdated MachineConfigPoolConditionType = "Updated"
// MachineConfigPoolUpdating means MachineConfigPool is updating.
// When at least one of machine is not either not updated or is in the process of updating
// to the desired machine config.
MachineConfigPoolUpdating MachineConfigPoolConditionType = "Updating"
// MachineConfigPoolNodeDegraded means the update for one of the machine is not progressing
MachineConfigPoolNodeDegraded MachineConfigPoolConditionType = "NodeDegraded"
// MachineConfigPoolRenderDegraded means the rendered configuration for the pool cannot be generated because of an error
MachineConfigPoolRenderDegraded MachineConfigPoolConditionType = "RenderDegraded"
// MachineConfigPoolDegraded is the overall status of the pool based, today, on whether we fail with NodeDegraded or RenderDegraded
MachineConfigPoolDegraded MachineConfigPoolConditionType = "Degraded"
)
----
example_url: https://github.com/openshift/machine-config-operator/blob/5bcf8d3417033734561d0174e6e821d3335ef118/pkg/apis/machineconfiguration.openshift.io/v1/types.go#L387
approx_popularity: 1
code_block: >
const (
// KubeletConfigSuccess designates a successful application of a KubeletConfig CR.
KubeletConfigSuccess KubeletConfigStatusConditionType = "Success"
// KubeletConfigFailure designates a failure applying a KubeletConfig CR.
KubeletConfigFailure KubeletConfigStatusConditionType = "Failure"
)
----
example_url: https://github.com/openshift/machine-config-operator/blob/5bcf8d3417033734561d0174e6e821d3335ef118/pkg/apis/machineconfiguration.openshift.io/v1/types.go#L479
approx_popularity: 1
code_block: >
const (
// ContainerRuntimeConfigSuccess designates a successful application of a ContainerRuntimeConfig CR.
ContainerRuntimeConfigSuccess ContainerRuntimeConfigStatusConditionType = "Success"
// ContainerRuntimeConfigFailure designates a failure applying a ContainerRuntimeConfig CR.
ContainerRuntimeConfigFailure ContainerRuntimeConfigStatusConditionType = "Failure"
)
----
example_url: https://github.com/bookingcom/shipper/blob/4b17c3eae896c91c0cb9e3740ceae4e184257f9d/pkg/apis/shipper/v1alpha1/types.go#L105
approx_popularity: 1
code_block: >
const (
ApplicationConditionTypeValidHistory ApplicationConditionType = "ValidHistory"
ApplicationConditionTypeReleaseSynced ApplicationConditionType = "ReleaseSynced"
ApplicationConditionTypeAborting ApplicationConditionType = "Aborting"
ApplicationConditionTypeRollingOut ApplicationConditionType = "RollingOut"
ApplicationConditionTypeBlocked ApplicationConditionType = "Blocked"
)
----
example_url: https://github.com/bookingcom/shipper/blob/4b17c3eae896c91c0cb9e3740ceae4e184257f9d/pkg/apis/shipper/v1alpha1/types.go#L223
approx_popularity: 1
code_block: >
const (
ReleaseConditionTypeScheduled ReleaseConditionType = "Scheduled"
ReleaseConditionTypeComplete ReleaseConditionType = "Complete"
ReleaseConditionTypeBlocked ReleaseConditionType = "Blocked"
)
----
example_url: https://github.com/bookingcom/shipper/blob/4b17c3eae896c91c0cb9e3740ceae4e184257f9d/pkg/apis/shipper/v1alpha1/types.go#L398
approx_popularity: 1
code_block: >
const (
ClusterConditionTypeOperational ClusterConditionType = "Operational"
ClusterConditionTypeReady ClusterConditionType = "Ready"
)
----
example_url: https://github.com/bookingcom/shipper/blob/4b17c3eae896c91c0cb9e3740ceae4e184257f9d/pkg/apis/shipper/v1alpha1/types.go#L509
approx_popularity: 1
code_block: >
const (
StrategyConditionContenderAchievedInstallation StrategyConditionType = "ContenderAchievedInstallation"
StrategyConditionContenderAchievedCapacity StrategyConditionType = "ContenderAchievedCapacity"
StrategyConditionContenderAchievedTraffic StrategyConditionType = "ContenderAchievedTraffic"
StrategyConditionIncumbentAchievedCapacity StrategyConditionType = "IncumbentAchievedCapacity"
StrategyConditionIncumbentAchievedTraffic StrategyConditionType = "IncumbentAchievedTraffic"
)
----
example_url: https://github.com/nondualism/ubuntu-kubernetes-mesos/blob/57c3d4eac6616c2a2b3a1466ab4b08cb2cf5a69d/pkg/apis/experimental/v1/types.go#L444
approx_popularity: 8
code_block: >
const (
// JobComplete means the job has completed its execution.
JobComplete JobConditionType = "Complete"
)
----
example_url: https://github.com/travelaudience/cloudsql-postgres-operator/blob/ed03c945a9c66a6a2cb104031136cf196b4e40cf/pkg/apis/cloudsql/v1alpha1/postgresqlinstance_types.go#L87
approx_popularity: 1
code_block: >
const (
// PostgresqlInstanceStatusConditionTypeCreated indicates that the CSQLP instance represented by a given PostgresqlInstance resource has been created.
PostgresqlInstanceStatusConditionTypeCreated = PostgresqlInstanceStatusConditionType("Created")
----
example_url: https://github.com/openshift/hive/blob/800c80aad0edc1feb7d44e1f2a5c43b6939f0870/pkg/apis/hive/v1alpha1/clusterdeployment_types.go#L232
approx_popularity: 1
code_block: >
const (
// ClusterImageSetNotFoundCondition is set when the ClusterImageSet referenced by the
// ClusterDeployment is not found.
ClusterImageSetNotFoundCondition ClusterDeploymentConditionType = "ClusterImageSetNotFound"
// InstallerImageResolutionFailedCondition is a condition that indicates whether the job
// to determine the installer image based on a release image was successful.
InstallerImageResolutionFailedCondition ClusterDeploymentConditionType = "InstallerImageResolutionFailed"
// ControlPlaneCertificateNotFoundCondition is set when a control plane certificate bundle
// is not available, preventing the target cluster's control plane from being configured with
// certificates.
ControlPlaneCertificateNotFoundCondition ClusterDeploymentConditionType = "ControlPlaneCertificateNotFound"
// IngressCertificateNotFoundCondition is a condition indicating that one of the CertificateBundle
// secrets required by an Ingress is not available.
IngressCertificateNotFoundCondition ClusterDeploymentConditionType = "IngressCertificateNotFound"
// UnreachableCondition indicates that are unable to establish an API connection to the remote cluster.
UnreachableCondition ClusterDeploymentConditionType = "Unreachable"
// InstallFailingCondition indicates that a failure has been detected and we will attempt to offer some
// information as to why in the reason.
InstallFailingCondition ClusterDeploymentConditionType = "InstallFailing"
// DNSNotReadyCondition indicates that the the DNSZone object created for the clusterDeployment
// (ie managedDNS==true) has not yet indicated that the DNS zone is successfully responding to queries.
----
example_url: https://github.com/yansunkai/custom-controller/blob/4e5bbb8b7696d48c02972570bdd742645f2aa06c/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types.go#L265
approx_popularity: 5
code_block: >
const (
// Established means that the resource has become active. A resource is established when all names are
// accepted without a conflict for the first time. A resource stays established until deleted, even during
// a later NamesAccepted due to changed names. Note that not all names can be changed.
Established CustomResourceDefinitionConditionType = "Established"
// NamesAccepted means the names chosen for this CustomResourceDefinition do not conflict with others in
// the group and are therefore accepted.
NamesAccepted CustomResourceDefinitionConditionType = "NamesAccepted"
// NonStructuralSchema means that one or more OpenAPI schema is not structural.
//
// A schema is structural if it specifies types for all values, with the only exceptions of those with
// - x-kubernetes-int-or-string: true — for fields which can be integer or string
// - x-kubernetes-preserve-unknown-fields: true — for raw, unspecified JSON values
// and there is no type, additionalProperties, default, nullable or x-kubernetes-* vendor extenions
// specified under allOf, anyOf, oneOf or not.
//
// Non-structural schemas will not be allowed anymore in v1 API groups. Moreover, new features will not be
// available for non-structural CRDs:
// - pruning
// - defaulting
// - read-only
// - OpenAPI publishing
// - webhook conversion
NonStructuralSchema CustomResourceDefinitionConditionType = "NonStructuralSchema"
// Terminating means that the CustomResourceDefinition has been deleted and is cleaning up.
Terminating CustomResourceDefinitionConditionType = "Terminating"
// KubernetesAPIApprovalPolicyConformant indicates that an API in *.k8s.io or *.kubernetes.io is or is not approved. For CRDs
// outside those groups, this condition will not be set. For CRDs inside those groups, the condition will
// be true if .metadata.annotations["api-approved.kubernetes.io"] is set to a URL, otherwise it will be false.
// See https://github.com/kubernetes/enhancements/pull/1111 for more details.
KubernetesAPIApprovalPolicyConformant CustomResourceDefinitionConditionType = "KubernetesAPIApprovalPolicyConformant"
)
----
example_url: https://github.com/VergeOps/k8s-rvstore/blob/af7bdccdb542dd7bce2a0cf95719b277caa8e24e/Advanced%20Kubernetes/scheduler/kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types.go#L265
approx_popularity: 5
code_block: >
const (
// Established means that the resource has become active. A resource is established when all names are
// accepted without a conflict for the first time. A resource stays established until deleted, even during
// a later NamesAccepted due to changed names. Note that not all names can be changed.
Established CustomResourceDefinitionConditionType = "Established"
// NamesAccepted means the names chosen for this CustomResourceDefinition do not conflict with others in
// the group and are therefore accepted.
NamesAccepted CustomResourceDefinitionConditionType = "NamesAccepted"
// NonStructuralSchema means that one or more OpenAPI schema is not structural.
//
// A schema is structural if it specifies types for all values, with the only exceptions of those with
// - x-kubernetes-int-or-string: true — for fields which can be integer or string
// - x-kubernetes-preserve-unknown-fields: true — for raw, unspecified JSON values
// and there is no type, additionalProperties, default, nullable or x-kubernetes-* vendor extenions
// specified under allOf, anyOf, oneOf or not.
//
// Non-structural schemas will not be allowed anymore in v1 API groups. Moreover, new features will not be
// available for non-structural CRDs:
// - pruning
// - defaulting
// - read-only
// - OpenAPI publishing
// - webhook conversion
NonStructuralSchema CustomResourceDefinitionConditionType = "NonStructuralSchema"
// Terminating means that the CustomResourceDefinition has been deleted and is cleaning up.
Terminating CustomResourceDefinitionConditionType = "Terminating"
)
----
example_url: https://github.com/aaron-prindle/krmapiserver/blob/a48dab5f0948da1e0b7401714afe76bb91679199/included/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/types.go#L265
approx_popularity: 2
code_block: >
const (
// Established means that the resource has become active. A resource is established when all names are
// accepted without a conflict for the first time. A resource stays established until deleted, even during
// a later NamesAccepted due to changed names. Note that not all names can be changed.
Established CustomResourceDefinitionConditionType = "Established"
// NamesAccepted means the names chosen for this CustomResourceDefinition do not conflict with others in
// the group and are therefore accepted.
NamesAccepted CustomResourceDefinitionConditionType = "NamesAccepted"
// NonStructuralSchema means that one or more OpenAPI schema is not structural.
//
// A schema is structural if it specifies types for all values, with the only exceptions of those with
// - x-kubernetes-int-or-string: true — for fields which can be integer or string
// - x-kubernetes-preserve-unknown-fields: true — for raw, unspecified JSON values
// and there is no type, additionalProperties, default, nullable or x-kubernetes-* included extenions
// specified under allOf, anyOf, oneOf or not.
//
// Non-structural schemas will not be allowed anymore in v1 API groups. Moreover, new features will not be
// available for non-structural CRDs:
// - pruning
// - defaulting
// - read-only
// - OpenAPI publishing
// - webhook conversion
NonStructuralSchema CustomResourceDefinitionConditionType = "NonStructuralSchema"
// Terminating means that the CustomResourceDefinition has been deleted and is cleaning up.
Terminating CustomResourceDefinitionConditionType = "Terminating"
)
----
example_url: https://github.com/pingcap/tidb-operator/blob/36f505cd2ef32e4d8f25570f70bdb97dafe7f999/pkg/apis/pingcap/v1alpha1/types.go#L382
approx_popularity: 1
code_block: >
const (
// BackupScheduled means the backup related job has been created
BackupScheduled BackupConditionType = "Scheduled"
// BackupRunning means the backup is currently being executed.
BackupRunning BackupConditionType = "Running"
// BackupComplete means the backup has successfully executed and the
// resulting artifact has been stored in backend storage.
BackupComplete BackupConditionType = "Complete"
// BackupClean means the clean job has been created to clean backup data
BackupClean BackupConditionType = "Clean"
// BackupFailed means the backup has failed.
BackupFailed BackupConditionType = "Failed"
// BackupRetryFailed means this failure can be retried
BackupRetryFailed BackupConditionType = "RetryFailed"
)
----
example_url: https://github.com/pingcap/tidb-operator/blob/36f505cd2ef32e4d8f25570f70bdb97dafe7f999/pkg/apis/pingcap/v1alpha1/types.go#L508
approx_popularity: 1
code_block: >
const (
// RestoreScheduled means the restore job has been created to do tidb cluster restore
RestoreScheduled RestoreConditionType = "Scheduled"
// RestoreRunning means the Restore is currently being executed.
RestoreRunning RestoreConditionType = "Running"
// RestoreComplete means the Restore has successfully executed and the
// backup data has been loaded into tidb cluster.
RestoreComplete RestoreConditionType = "Complete"
// RestoreFailed means the Restore has failed.
RestoreFailed RestoreConditionType = "Failed"
// RestoreRetryFailed means this failure can be retried
RestoreRetryFailed RestoreConditionType = "RetryFailed"
)
----
example_url: https://github.com/dthomson25/argo-rollouts-kustomize/blob/bcec94337dcbdf18d6319c76e01d2c2a44926b24/pkg/apis/rollouts/v1alpha1/types.go#L241
approx_popularity: 2
code_block: >
const (
// InvalidSpec means the rollout has an invalid spec and will not progress until
// the spec is fixed.
InvalidSpec RolloutConditionType = "InvalidSpec"
// RolloutAvailable means the rollout is available, ie. the active service is pointing at a
// replicaset with the required replicas up and running for at least minReadySeconds.
RolloutAvailable RolloutConditionType = "Available"
// RolloutProgressing means the rollout is progressing. Progress for a rollout is
// considered when a new replica set is created or adopted, when pods scale
// up or old pods scale down, or when the services are updated. Progress is not estimated
// for paused rollouts.
RolloutProgressing RolloutConditionType = "Progressing"
// RolloutReplicaFailure ReplicaFailure is added in a deployment when one of its pods
// fails to be created or deleted.
RolloutReplicaFailure RolloutConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/kubernetes/api/blob/21721929cffa4119565dd1922a54a3e38c440f85/autoscaling/v2beta2/types.go#L264
approx_popularity: 3
code_block: >
const (
// ScalingActive indicates that the HPA controller is able to scale if necessary:
// it's correctly configured, can fetch the desired metrics, and isn't disabled.
ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive"
// AbleToScale indicates a lack of transient issues which prevent scaling from occurring,
// such as being in a backoff window, or being unable to access/update the target scale.
AbleToScale HorizontalPodAutoscalerConditionType = "AbleToScale"
// ScalingLimited indicates that the calculated scale based on metrics would be above or
// below the range for the HPA, and has thus been capped.
ScalingLimited HorizontalPodAutoscalerConditionType = "ScalingLimited"
)
----
example_url: https://github.com/kubeflow/kfctl/blob/08a2e3736b2ca25f1f7a327090ecc48e014aa90b/pkg/apis/apps/kfconfig/types.go#L187
approx_popularity: 2
code_block: >
const (
// KfAvailable means Kubeflow is serving.
Available ConditionType = "Available"
// KfDegraded means functionality of Kubeflow is limited.
Degraded ConditionType = "Degraded"
)
----
example_url: https://github.com/kiegroup/kie-cloud-operator/blob/046abec8701110a1a30e63a7e809fccf2ec885bc/pkg/apis/app/v1/kieapp_types.go#L451
approx_popularity: 1
code_block: >
Constants TemplateConstants `json:"constants,omitempty"`
}
// TemplateConstants constant values that are used within the different configuration templates
type TemplateConstants struct {
Product string `json:"product,omitempty"`
Major string `json:"major,omitempty"`
Minor string `json:"minor,omitempty"`
Patch string `json:"patch,omitempty"`
MavenRepo string `json:"mavenRepo,omitempty"`
KeystoreVolumeSuffix string `json:"keystoreVolumeSuffix"`
DatabaseVolumeSuffix string `json:"databaseVolumeSuffix"`
BrokerImage string `json:"brokerImage"`
BrokerImageTag string `json:"brokerImageTag"`
DatagridImage string `json:"datagridImage"`
DatagridImageTag string `json:"datagridImageTag"`
}
// ConsoleTemplate contains all the variables used in the yaml templates
type ConsoleTemplate struct {
SSOAuthClient SSOAuthClient `json:"ssoAuthClient,omitempty"`
Name string `json:"name,omitempty"`
Replicas int32 `json:"replicas,omitempty"`
ImageName string `json:"imageName,omitempty"`
KeystoreSecret string `json:"keystoreSecret,omitempty"`
}
// ServerTemplate contains all the variables used in the yaml templates
type ServerTemplate struct {
KieName string `json:"kieName,omitempty"`
KieServerID string `json:"kieServerID,omitempty"`
Replicas int32 `json:"replicas,omitempty"`
SSOAuthClient SSOAuthClient `json:"ssoAuthClient,omitempty"`
From corev1.ObjectReference `json:"from,omitempty"`
Build BuildTemplate `json:"build,omitempty"`
KeystoreSecret string `json:"keystoreSecret,omitempty"`
Database DatabaseObject `json:"database,omitempty"`
Jms KieAppJmsObject `json:"jms,omitempty"`
SmartRouter SmartRouterObject `json:"smartRouter,omitempty"`
}
// SmartRouterTemplate contains all the variables used in the yaml templates
type SmartRouterTemplate struct {
Replicas int32 `json:"replicas,omitempty"`
KeystoreSecret string `json:"keystoreSecret,omitempty"`
Protocol string `json:"protocol,omitempty"`
UseExternalRoute bool `json:"useExternalRoute,omitempty"`
}
// ReplicaConstants contains the default replica amounts for a component in a given environment type
type ReplicaConstants struct {
Console Replicas `json:"console,omitempty"`
Server Replicas `json:"server,omitempty"`
SmartRouter Replicas `json:"smartRouter,omitempty"`
}
// Replicas contains replica settings
type Replicas struct {
Replicas int32 `json:"replicas,omitempty"`
DenyScale bool `json:"denyScale,omitempty"`
}
// BuildTemplate build variables used in the templates
type BuildTemplate struct {
From corev1.ObjectReference `json:"from,omitempty"`
GitSource GitSource `json:"gitSource,omitempty"`
GitHubWebhookSecret string `json:"githubWebhookSecret,omitempty"`
GenericWebhookSecret string `json:"genericWebhookSecret,omitempty"`
KieServerContainerDeployment string `json:"kieServerContainerDeployment,omitempty"`
MavenMirrorURL string `json:"mavenMirrorURL,omitempty"`
ArtifactDir string `json:"artifactDir,omitempty"`
}
// CommonConfig variables used in the templates
type CommonConfig struct {
ApplicationName string `json:"applicationName,omitempty"`
Version string `json:"version,omitempty"`
ImageTag string `json:"imageTag,omitempty"`
KeyStorePassword string `json:"keyStorePassword,omitempty"`
AdminUser string `json:"adminUser,omitempty"`
AdminPassword string `json:"adminPassword,omitempty"`
DBPassword string `json:"dbPassword,omitempty"`
AMQPassword string `json:"amqPassword,omitempty"`
AMQClusterPassword string `json:"amqClusterPassword,omitempty"`
ControllerPassword string `json:"controllerPassword,omitempty"`
ServerPassword string `json:"serverPassword,omitempty"`
MavenPassword string `json:"mavenPassword,omitempty"`
}
// VersionConfigs ...
type VersionConfigs struct {
ImageStreamTag string `json:"imageStreamTag,omitempty"`
BrokerImage string `json:"brokerImage,omitempty"`
BrokerImageTag string `json:"brokerImageTag,omitempty"`
DatagridImage string `json:"datagridImage,omitempty"`
DatagridImageTag string `json:"datagridImageTag,omitempty"`
}
// AuthTemplate Authentication definition used in the template
type AuthTemplate struct {
SSO SSOAuthConfig `json:"sso,omitempty"`
LDAP LDAPAuthConfig `json:"ldap,omitempty"`
RoleMapper RoleMapperAuthConfig `json:"roleMapper,omitempty"`
}
// ConditionType - type of condition
type ConditionType string
const (
// DeployedConditionType - the kieapp is deployed
DeployedConditionType ConditionType = "Deployed"
// ProvisioningConditionType - the kieapp is being provisioned
ProvisioningConditionType ConditionType = "Provisioning"
// FailedConditionType - the kieapp is in a failed state
FailedConditionType ConditionType = "Failed"
)
----
example_url: https://github.com/openshift/cluster-samples-operator/blob/de5f337144ba86120e6c23e9f61ec7e3ace98dbf/pkg/apis/samples/v1/types.go#L165
approx_popularity: 1
code_block: >
const (
// ImportCredentialsExist represents the state of any credentials specified by
// the SamplesRegistry field in the Spec.
ImportCredentialsExist ConfigConditionType = "ImportCredentialsExist"
// SamplesExist represents whether an incoming Config has been successfully
// processed or not all, or whether the last Config to come in has been
// successfully processed.
SamplesExist ConfigConditionType = "SamplesExist"
// ConfigurationValid represents whether the latest Config to come in
// tried to make a support configuration change. Currently, changes to the
// InstallType and Architectures list after initial processing is not allowed.
ConfigurationValid ConfigConditionType = "ConfigurationValid"
// ImageChangesInProgress represents the state between where the samples operator has
// started updating the imagestreams and when the spec and status generations for each
// tag match. The list of imagestreams that are still in progress will be stored
// in the Reason field of the condition. The Reason field being empty corresponds
// with this condition being marked true.
ImageChangesInProgress ConfigConditionType = "ImageChangesInProgress"
// RemovePending represents whether the Config Spec ManagementState
// has been set to Removed, but we have not completed the deletion of the
// samples, pull secret, etc. and set the Config Spec ManagementState to Removed.
// Also note, while a samples creation/update cycle is still in progress, and ImageChagesInProgress
// is True, the operator will not initiate the deletions, as we
// do not want the create/updates and deletes of the samples to be occurring in parallel.
// So the actual Removed processing will be initated only after ImageChangesInProgress is set
// to false. Once the deletions are done, and the Status ManagementState is Removed, this
// condition is set back to False. Lastly, when this condition is set to True, the
// ClusterOperator Progressing condition will be set to True.
RemovePending ConfigConditionType = "RemovePending"
// MigrationInProgress represents the special case where the operator is running off of
// a new version of its image, and samples are deployed of a previous version. This condition
// facilitates the maintenance of this operator's ClusterOperator object.
MigrationInProgress ConfigConditionType = "MigrationInProgress"
// ImportImageErrorsExist registers any image import failures, separate from ImageChangeInProgress,
// so that we can a) indicate a problem to the ClusterOperator status, b) mark the current
----
example_url: https://github.com/openshift/cluster-samples-operator/blob/de5f337144ba86120e6c23e9f61ec7e3ace98dbf/pkg/apis/samples/v1/types.go#L204
approx_popularity: 1
code_block: >
// numConfigConditionType is a helper constant that captures the number possible conditions
// defined above in this const block
numconfigConditionType = 7
)
----
example_url: https://github.com/John-Tate/scalable_ml_with_kubeflow/blob/0c3c344bddbe0c34d82a44450b85820c23092b79/kfdemo/.cache/kubeflow/kubeflow-0dbd2550372c003ba69069aeee283bd59fb1341f/bootstrap/v2/pkg/apis/apps/kfdef/v1alpha1/application_types.go#L249
approx_popularity: 4
code_block: >
const (
// KfCreated means the KfDef spec has been created.
KfCreated KfDefConditionType = "Created"
// KfDeploying means Kubeflow is in the process of being deployed.
KfDeploying KfDefConditionType = "Deploying"
// KfSucceeded means Kubeflow was successfully deployed.
KfSucceeded KfDefConditionType = "Succeeded"
// KfFailed meansthere was a problem deploying Kubeflow.
KfFailed KfDefConditionType = "Failed"
// Reasons for conditions
// InvalidKfDefSpecReason indicates the KfDef was not valid.
InvalidKfDefSpecReason = "InvalidKfDefSpec"
)
----
example_url: https://github.com/kiegroup/kie-cloud-operator/blob/11cbb4f27473f04a9730e0427d1b2c7310bef10e/pkg/apis/app/v2/kieapp_types.go#L481
approx_popularity: 1
code_block: >
Constants TemplateConstants `json:"constants,omitempty"`
}
// TemplateConstants constant values that are used within the different configuration templates
type TemplateConstants struct {
Product string `json:"product,omitempty"`
Major string `json:"major,omitempty"`
Minor string `json:"minor,omitempty"`
Micro string `json:"micro,omitempty"`
MavenRepo string `json:"mavenRepo,omitempty"`
KeystoreVolumeSuffix string `json:"keystoreVolumeSuffix"`
DatabaseVolumeSuffix string `json:"databaseVolumeSuffix"`
BrokerImage string `json:"brokerImage"`
BrokerImageTag string `json:"brokerImageTag"`
DatagridImage string `json:"datagridImage"`
DatagridImageTag string `json:"datagridImageTag"`
RoleMapperVolume string `json:"roleMapperVolume"`
GitHooksVolume string `json:"gitHooksVolume,omitempty"`
}
// ConsoleTemplate contains all the variables used in the yaml templates
type ConsoleTemplate struct {
SSOAuthClient SSOAuthClient `json:"ssoAuthClient,omitempty"`
Name string `json:"name,omitempty"`
Replicas int32 `json:"replicas,omitempty"`
Image string `json:"image,omitempty"`
ImageTag string `json:"imageTag,omitempty"`
KeystoreSecret string `json:"keystoreSecret,omitempty"`
GitHooks GitHooksVolume `json:"gitHooks,omitempty"`
}
// ServerTemplate contains all the variables used in the yaml templates
type ServerTemplate struct {
KieName string `json:"kieName,omitempty"`
KieServerID string `json:"kieServerID,omitempty"`
Replicas int32 `json:"replicas,omitempty"`
SSOAuthClient SSOAuthClient `json:"ssoAuthClient,omitempty"`
From corev1.ObjectReference `json:"from,omitempty"`
Build BuildTemplate `json:"build,omitempty"`
KeystoreSecret string `json:"keystoreSecret,omitempty"`
Database DatabaseObject `json:"database,omitempty"`
Jms KieAppJmsObject `json:"jms,omitempty"`
SmartRouter SmartRouterObject `json:"smartRouter,omitempty"`
}
// SmartRouterTemplate contains all the variables used in the yaml templates
type SmartRouterTemplate struct {
Replicas int32 `json:"replicas,omitempty"`
KeystoreSecret string `json:"keystoreSecret,omitempty"`
Protocol string `json:"protocol,omitempty"`
UseExternalRoute bool `json:"useExternalRoute,omitempty"`
Image string `json:"image,omitempty"`
ImageTag string `json:"imageTag,omitempty"`
}
// ReplicaConstants contains the default replica amounts for a component in a given environment type
type ReplicaConstants struct {
Console Replicas `json:"console,omitempty"`
Server Replicas `json:"server,omitempty"`
SmartRouter Replicas `json:"smartRouter,omitempty"`
}
// Replicas contains replica settings
type Replicas struct {
Replicas int32 `json:"replicas,omitempty"`
DenyScale bool `json:"denyScale,omitempty"`
}
// BuildTemplate build variables used in the templates
type BuildTemplate struct {
From corev1.ObjectReference `json:"from,omitempty"`
GitSource GitSource `json:"gitSource,omitempty"`
GitHubWebhookSecret string `json:"githubWebhookSecret,omitempty"`
GenericWebhookSecret string `json:"genericWebhookSecret,omitempty"`
KieServerContainerDeployment string `json:"kieServerContainerDeployment,omitempty"`
MavenMirrorURL string `json:"mavenMirrorURL,omitempty"`
ArtifactDir string `json:"artifactDir,omitempty"`
}
// CommonConfig variables used in the templates
type CommonConfig struct {
ApplicationName string `json:"applicationName,omitempty"`
ImageTag string `json:"imageTag,omitempty"`
KeyStorePassword string `json:"keyStorePassword,omitempty"`
AdminUser string `json:"adminUser,omitempty"`
AdminPassword string `json:"adminPassword,omitempty"`
DBPassword string `json:"dbPassword,omitempty"`
AMQPassword string `json:"amqPassword,omitempty"`
AMQClusterPassword string `json:"amqClusterPassword,omitempty"`
ControllerPassword string `json:"controllerPassword,omitempty"`
ServerPassword string `json:"serverPassword,omitempty"`
MavenPassword string `json:"mavenPassword,omitempty"`
}
// VersionConfigs ...
type VersionConfigs struct {
APIVersion string `json:"apiVersion,omitempty"`
ImageTag string `json:"imageTag,omitempty"`
BrokerImage string `json:"brokerImage,omitempty"`
BrokerImageTag string `json:"brokerImageTag,omitempty"`
DatagridImage string `json:"datagridImage,omitempty"`
DatagridImageTag string `json:"datagridImageTag,omitempty"`
}
// AuthTemplate Authentication definition used in the template
type AuthTemplate struct {
SSO SSOAuthConfig `json:"sso,omitempty"`
LDAP LDAPAuthConfig `json:"ldap,omitempty"`
RoleMapper RoleMapperTemplate `json:"roleMapper,omitempty"`
}
// RoleMapperTemplate RoleMapper definition used in the template
type RoleMapperTemplate struct {
MountPath string `json:"mountPath,omitempty"`
RoleMapperAuthConfig `json:",inline"`
}
// ConditionType - type of condition
type ConditionType string
const (
// DeployedConditionType - the kieapp is deployed
DeployedConditionType ConditionType = "Deployed"
// ProvisioningConditionType - the kieapp is being provisioned
ProvisioningConditionType ConditionType = "Provisioning"
// FailedConditionType - the kieapp is in a failed state
FailedConditionType ConditionType = "Failed"
)
----
example_url: https://github.com/jetlwx/k8s_admin/blob/89a05a1ce2f7d487c55bdeffa0969824262c13dd/types/types.go#L86
approx_popularity: 1
code_block: >
const (
PodScheduled PodConditionType = "PodScheduled"
PodReady PodConditionType = "Ready"
PodInitialized PodConditionType = "Initialized"
)
----
example_url: https://github.com/tangfeixiong/origin/blob/6022aa53c5629c289c613793d7b73e9f5b08d233/pkg/deploy/api/v1/types.go#L324
approx_popularity: 6
code_block: >
const (
// DeploymentAvailable means the deployment config is available, ie. at least the minimum available
// replicas required are up and running for at least minReadySeconds.
DeploymentAvailable DeploymentConditionType = "Available"
// DeploymentProgressing means the deployment config is progressing. Progress for a deployment
// config is considered when a new replica set is created or adopted, and when new pods scale up or
// old pods scale down. Progress is not estimated for paused deployment configs, when the deployment
// config needs to rollback, or when progressDeadlineSeconds is not specified.
DeploymentProgressing DeploymentConditionType = "Progressing"
// DeploymentReplicaFailure is added in a deployment config when one of its pods
// fails to be created or deleted.
DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/fhornaintest/kubevirt/blob/f26fe17fa6e381b4409a365f57f2083ffd960498/pkg/api/v1/types.go#L262
approx_popularity: 1
code_block: >
const (
// VMIReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
VirtualMachineInstanceReady VirtualMachineInstanceConditionType = "Ready"
// If there happens any error while trying to synchronize the VirtualMachineInstance with the Domain,
// this is reported as false.
VirtualMachineInstanceSynchronized VirtualMachineInstanceConditionType = "Synchronized"
)
----
example_url: https://github.com/fhornaintest/kubevirt/blob/f26fe17fa6e381b4409a365f57f2083ffd960498/pkg/api/v1/types.go#L540
approx_popularity: 4
code_block: >
const (
// VirtualMachineInstanceReplicaSetReplicaFailure is added in a replica set when one of its vmis
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
VirtualMachineInstanceReplicaSetReplicaFailure VirtualMachineInstanceReplicaSetConditionType = "ReplicaFailure"
// VirtualMachineInstanceReplicaSetReplicaPaused is added in a replica set when the replica set got paused by the controller.
// After this condition was added, it is safe to remove or add vmis by hand and adjust the replica count by hand.
VirtualMachineInstanceReplicaSetReplicaPaused VirtualMachineInstanceReplicaSetConditionType = "ReplicaPaused"
)
----
example_url: https://github.com/fhornaintest/kubevirt/blob/f26fe17fa6e381b4409a365f57f2083ffd960498/pkg/api/v1/types.go#L764
approx_popularity: 1
code_block: >
const (
// VirtualMachineFailure is added in a offline virtual machine when its vmi
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
VirtualMachineFailure VirtualMachineConditionType = "Failure"
)
----
example_url: https://github.com/kubevault/cli/blob/927f01ea95deb9eb6a1fb98f4d12d3e0ea7e2df2/vendor/kubevault.dev/operator/apis/kubevault/v1alpha1/vaultserver_types.go#L150
approx_popularity: 2
code_block: >
const (
VaultServerConditionFailure VaultServerConditionType = "Failure"
)
----
example_url: https://github.com/openshift/cluster-operator/blob/025248fcc79ad25821c9759be322393ca69fedd2/pkg/apis/clusteroperator/v1alpha1/types.go#L493
approx_popularity: 1
code_block: >
const (
// ClusterVersionIncompatible is true when the cluster version does not have an AMI defined for the cluster's region.
ClusterVersionIncompatible ClusterDeploymentConditionType = "VersionIncompatible"
// ClusterVersionMissing is true when the cluster deployment references a non-existent cluster version
ClusterVersionMissing ClusterDeploymentConditionType = "ClusterVersionMissing"
)
----
example_url: https://github.com/openshift/cluster-operator/blob/025248fcc79ad25821c9759be322393ca69fedd2/pkg/apis/clusteroperator/v1alpha1/types.go#L524
approx_popularity: 1
code_block: >
const (
// ClusterInfraProvisionining is true when cluster infrastructure is in the process of provisioning
ClusterInfraProvisioning ClusterConditionType = "InfraProvisioning"
// ClusterInfraProvisioningFailed is true when the job to provision cluster infrastructure has failed.
ClusterInfraProvisioningFailed ClusterConditionType = "InfraProvisioningFailed"
// ClusterInfraProvisioned represents success of the infra provisioning for this cluster.
ClusterInfraProvisioned ClusterConditionType = "InfraProvisioned"
// ClusterInfraDeprovisioning is true when cluster infrastructure is in the process of deprovisioning
ClusterInfraDeprovisioning ClusterConditionType = "InfraDeprovisioning"
// ClusterInfraDeprovisioningFailed is true when the job to deprovision cluster infrastructure has failed.
ClusterInfraDeprovisioningFailed ClusterConditionType = "InfraDeprovisioningFailed"
// ControlPlaneInstalling is true if the control plane is being installed in
// the cluster.
ControlPlaneInstalling ClusterConditionType = "ControlPlaneInstalling"
// ControlPlaneInstallationFailed is true if the installation of
// the control plane failed.
ControlPlaneInstallationFailed ClusterConditionType = "ControlPlaneInstallationFailed"
// ControlPlaneInstalled is true if the control plane has been installed
// in the cluster.
ControlPlaneInstalled ClusterConditionType = "ControlPlaneInstalled"
// ComponentsInstalling is true if the OpenShift extra components are being
// installed in the cluster.
ComponentsInstalling ClusterConditionType = "ComponentsInstalling"
// ComponentsInstallationFailed is true if the installation of
// the OpenShift extra components failed.
ComponentsInstallationFailed ClusterConditionType = "ComponentsInstallationFailed"
// ControlPlaneInstalled is true if the OpenShift extra components have been
// installed in the cluster.
ComponentsInstalled ClusterConditionType = "ComponentsInstalled"
// NodeConfigInstalling is true if node config daemonset is being installed.
NodeConfigInstalling ClusterConditionType = "NodeConfigInstalling"
// NodeConfigInstallationFailed is true if the node config daemonset failed to be installed.
NodeConfigInstallationFailed ClusterConditionType = "NodeConfigInstallationFailed"
// NodeConfigInstalled is true if the node config daemonset has been installed.
NodeConfigInstalled ClusterConditionType = "NodeConfigInstalled"
// ClusterAPIInstalling is true if the Kubernetes Cluster API controllers are
// being installed on the remote cluster.
ClusterAPIInstalling ClusterConditionType = "ClusterAPIInstalling"
// ClusterAPIInstallationFailed is true if the installation of the Kubernetes
// Cluster API controllers failed.
ClusterAPIInstallationFailed ClusterConditionType = "ClusterAPIInstallationFailed"
// ClusterAPIInstalled is true if the Kubernetes Cluster API controllers have
// been successfully installed.
ClusterAPIInstalled ClusterConditionType = "ClusterAPIInstalled"
// ClusterReady means the cluster is able to service requests
ClusterReady ClusterConditionType = "Ready"
// RegistyInfraProvisioned is true when the cluster's registry infra pieces are installed
RegistryInfraProvisioned ClusterConditionType = "RegistryInfraProvisioned"
// RegistryInfraProvisioningFailed is true when there have been problems deploying the
// cluster's registry infra pieces
RegistryInfraProvisioningFailed ClusterConditionType = "RegistryInfraProvisioningFailed"
)
----
example_url: https://github.com/openshift/cluster-operator/blob/025248fcc79ad25821c9759be322393ca69fedd2/pkg/apis/clusteroperator/v1alpha1/types.go#L717
approx_popularity: 1
code_block: >
const (
// ExtELBRegistration is a condition representing external ELB registration
ExtELBRegistration AWSMachineConditionType = "ExtELBRegistration"
// IntELBRegistration is a condition representing internal ELB registration
IntELBRegistration AWSMachineConditionType = "IntELBRegistration"
)
----
example_url: https://github.com/bithedz/origin/blob/014cc9ba6d1cd3a4f7c3c8d8618de8bc53d87e9d/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/types.go#L182
approx_popularity: 6
code_block: >
const (
// ServiceBrokerConditionReady represents the fact that a given broker condition
// is in ready state.
ServiceBrokerConditionReady ServiceBrokerConditionType = "Ready"
// ServiceBrokerConditionFailed represents information about a final failure
// that should not be retried.
ServiceBrokerConditionFailed ServiceBrokerConditionType = "Failed"
)
----
example_url: https://github.com/bithedz/origin/blob/014cc9ba6d1cd3a4f7c3c8d8618de8bc53d87e9d/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/types.go#L582
approx_popularity: 4
code_block: >
const (
// ServiceInstanceConditionReady represents that a given InstanceCondition is in
// ready state.
ServiceInstanceConditionReady ServiceInstanceConditionType = "Ready"
// ServiceInstanceConditionFailed represents information about a final failure
// that should not be retried.
ServiceInstanceConditionFailed ServiceInstanceConditionType = "Failed"
)
----
example_url: https://github.com/bithedz/origin/blob/014cc9ba6d1cd3a4f7c3c8d8618de8bc53d87e9d/cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/types.go#L802
approx_popularity: 3
code_block: >
const (
// ServiceBindingConditionReady represents a ServiceBindingCondition is in ready state.
ServiceBindingConditionReady ServiceBindingConditionType = "Ready"
// ServiceBindingConditionFailed represents a ServiceBindingCondition that has failed
// completely and should not be retried.
ServiceBindingConditionFailed ServiceBindingConditionType = "Failed"
)
----
example_url: https://github.com/gardener/machine-controller-manager/blob/b1763cbf8bf5a49828c8bbe59a184db7103c47e9/pkg/apis/machine/types.go#L292
approx_popularity: 2
code_block: >
const (
// MachineSetReplicaFailure is added in a machine set when one of its machines fails to be created
// due to insufficient quota, limit ranges, machine security policy, node selectors, etc. or deleted
// due to kubelet being down or finalizers are failing.
MachineSetReplicaFailure MachineSetConditionType = "ReplicaFailure"
// MachineSetFrozen is set when the machineset has exceeded its replica threshold at the safety controller
MachineSetFrozen MachineSetConditionType = "Frozen"
)
----
example_url: https://github.com/gardener/machine-controller-manager/blob/b1763cbf8bf5a49828c8bbe59a184db7103c47e9/pkg/apis/machine/types.go#L543
approx_popularity: 2
code_block: >
const (
// Available means the MachineDeployment is available, ie. at least the minimum available
// replicas required are up and running for at least minReadySeconds.
MachineDeploymentAvailable MachineDeploymentConditionType = "Available"
// Progressing means the MachineDeployment is progressing. Progress for a MachineDeployment is
// considered when a new machine set is created or adopted, and when new machines scale
// up or old machines scale down. Progress is not estimated for paused MachineDeployments or
// when progressDeadlineSeconds is not specified.
MachineDeploymentProgressing MachineDeploymentConditionType = "Progressing"
// ReplicaFailure is added in a MachineDeployment when one of its machines fails to be created
// or deleted.
MachineDeploymentReplicaFailure MachineDeploymentConditionType = "ReplicaFailure"
// MachineDeploymentFrozen is added in a MachineDeployment when one of its machines fails to be created
// or deleted.
MachineDeploymentFrozen MachineDeploymentConditionType = "Frozen"
)
----
example_url: https://github.com/ccwienk/gardener/blob/78f1e41062bb8f0fb9f93d332d30ac7302bdfc54/pkg/apis/garden/types.go#L982
approx_popularity: 2
code_block: >
const (
// ShootControlPlaneHealthy is a constant for a condition type indicating the control plane health.
ShootControlPlaneHealthy ShootConditionType = "ControlPlaneHealthy"
// ShootEveryNodeReady is a constant for a condition type indicating the node health.
ShootEveryNodeReady ShootConditionType = "EveryNodeReady"
// ShootSystemComponentsHealthy is a constant for a condition type indicating the system components health.
ShootSystemComponentsHealthy ShootConditionType = "SystemComponentsHealthy"
)
----
example_url: https://github.com/aerogear/mobile-crd-client/blob/8cd3ecbfe4dbfbbe36349ec3bf2b786a819ad4bc/pkg/apis/servicecatalog/v1beta1/types.go#L824
approx_popularity: 3
code_block: >
const (
// ServiceBindingConditionReady represents a binding condition is in ready state.
ServiceBindingConditionReady ServiceBindingConditionType = "Ready"
// ServiceBindingConditionFailed represents a ServiceBindingCondition that has failed
// completely and should not be retried.
ServiceBindingConditionFailed ServiceBindingConditionType = "Failed"
)
----
example_url: https://github.com/uday31in/kube-comso/blob/5a1ccd86fbb5389c70db3e130442fe3d1b4a2afb/staging/src/k8s.io/api/apps/v1beta2/types.go#L757
approx_popularity: 153
code_block: >
const (
// ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created
// due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted
// due to kubelet being down or finalizers are failing.
ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/gardener/gardener/blob/6a0ab919d056300139a643955680d391bce519f2/pkg/apis/core/v1alpha1/types_shoot.go#L888
approx_popularity: 1
code_block: >
const (
// ShootAPIServerAvailable is a constant for a condition type indicating that the Shoot cluster's API server is available.
ShootAPIServerAvailable ConditionType = "APIServerAvailable"
// ShootControlPlaneHealthy is a constant for a condition type indicating the control plane health.
ShootControlPlaneHealthy ConditionType = "ControlPlaneHealthy"
// ShootEveryNodeReady is a constant for a condition type indicating the node health.
ShootEveryNodeReady ConditionType = "EveryNodeReady"
// ShootSystemComponentsHealthy is a constant for a condition type indicating the system components health.
ShootSystemComponentsHealthy ConditionType = "SystemComponentsHealthy"
)
----
example_url: https://github.com/kubevirt/kubevirt/blob/9223d49108f7f9821ab8f8fa4cb9afd65e1350ab/staging/src/kubevirt.io/client-go/api/v1/types.go#L214
approx_popularity: 2
code_block: >
const (
// VMIReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
VirtualMachineInstanceReady VirtualMachineInstanceConditionType = "Ready"
// If there happens any error while trying to synchronize the VirtualMachineInstance with the Domain,
// this is reported as false.
VirtualMachineInstanceSynchronized VirtualMachineInstanceConditionType = "Synchronized"
// Reflects whether the QEMU guest agent is connected through the channel
VirtualMachineInstanceAgentConnected VirtualMachineInstanceConditionType = "AgentConnected"
// Indicates whether the VMI is live migratable
VirtualMachineInstanceIsMigratable VirtualMachineInstanceConditionType = "LiveMigratable"
// Reason means that VMI is not live migratioable because of it's disks collection
VirtualMachineInstanceReasonDisksNotMigratable = "DisksNotLiveMigratable"
// Reason means that VMI is not live migratioable because of it's network interfaces collection
VirtualMachineInstanceReasonInterfaceNotMigratable = "InterfaceNotLiveMigratable"
)
----
example_url: https://github.com/kubevirt/kubevirt/blob/9223d49108f7f9821ab8f8fa4cb9afd65e1350ab/staging/src/kubevirt.io/client-go/api/v1/types.go#L238
approx_popularity: 3
code_block: >
const (
// VirtualMachineInstanceMigrationAbortRequested indicates that live migration abort has been requested
VirtualMachineInstanceMigrationAbortRequested VirtualMachineInstanceMigrationConditionType = "migrationAbortRequested"
)
----
example_url: https://github.com/kubevirt/kubevirt/blob/9223d49108f7f9821ab8f8fa4cb9afd65e1350ab/staging/src/kubevirt.io/client-go/api/v1/types.go#L923
approx_popularity: 3
code_block: >
const (
// VirtualMachineFailure is added in a virtual machine when its vmi
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
VirtualMachineFailure VirtualMachineConditionType = "Failure"
)
----
example_url: https://github.com/kubernetes-sigs/service-catalog/blob/ccab5234396729fee8dbf70620eafdfbc3d1a6af/pkg/apis/servicecatalog/types.go#L942
approx_popularity: 2
code_block: >
const (
// ServiceInstanceConditionReady represents that a given InstanceCondition is in
// ready state.
ServiceInstanceConditionReady ServiceInstanceConditionType = "Ready"
// ServiceInstanceConditionFailed represents information about a final failure
// that should not be retried.
ServiceInstanceConditionFailed ServiceInstanceConditionType = "Failed"
// ServiceInstanceConditionOrphanMitigation represents information about an
// orphan mitigation that is required after failed provisioning.
ServiceInstanceConditionOrphanMitigation ServiceInstanceConditionType = "OrphanMitigation"
)
----
example_url: https://github.com/kunalkushwaha/go-sdk/blob/937c81800ed86801be1cccf36578fbaafeef7c5e/api/v1/types.go#L287
approx_popularity: 1
code_block: >
const (
// VMIReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
VirtualMachineInstanceReady VirtualMachineInstanceConditionType = "Ready"
// If there happens any error while trying to synchronize the VirtualMachineInstance with the Domain,
// this is reported as false.
VirtualMachineInstanceSynchronized VirtualMachineInstanceConditionType = "Synchronized"
// Reflects whether the QEMU guest agent is connected through the channel
VirtualMachineInstanceAgentConnected VirtualMachineInstanceConditionType = "AgentConnected"
// Indicates whether the VMI is live migratable
VirtualMachineInstanceIsMigratable VirtualMachineInstanceConditionType = "LiveMigratable"
// Reason means that VMI is not live migratioable because of it's disks collection
VirtualMachineInstanceReasonDisksNotMigratable = "DisksNotLiveMigratable"
)
----
example_url: https://github.com/wy2745/kubernetes-deployment-tool/blob/0b28a6ddf10aa927ddb2a94f80c794a985cccf87/type124/type.go#L758
approx_popularity: 1
code_block: >
const (
PodReady PodConditionType = "Ready"
)
----
example_url: https://github.com/wy2745/kubernetes-deployment-tool/blob/0b28a6ddf10aa927ddb2a94f80c794a985cccf87/type124/type.go#L1332
approx_popularity: 2
code_block: >
const (
NodeReady NodeConditionType = "Ready"
NodeOutOfDisk NodeConditionType = "OutOfDisk"
)
----
example_url: https://github.com/wy2745/kubernetes-deployment-tool/blob/0b28a6ddf10aa927ddb2a94f80c794a985cccf87/type124/type.go#L1868
approx_popularity: 4
code_block: >
const (
ComponentHealthy ComponentConditionType = "Healthy"
)
----
example_url: https://github.com/wy2745/kubernetes-deployment-tool/blob/0b28a6ddf10aa927ddb2a94f80c794a985cccf87/type124/type.go#L1989
approx_popularity: 2
code_block: >
const (
JobComplete JobConditionType = "Complete"
JobFailed JobConditionType = "Failed"
)
----
example_url: https://github.com/wy2745/kubernetes-deployment-tool/blob/0b28a6ddf10aa927ddb2a94f80c794a985cccf87/type137/type.go#L771
approx_popularity: 18
code_block: >
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
)
----
example_url: https://github.com/zhanglianx111/kubernetes/blob/68350e9fd25782800a5c9e64bc6f7f42dfcddae6/pkg/api/types.go#L640
approx_popularity: 38
code_block: >
const (
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
)
----
example_url: https://github.com/gardener/gardener/blob/6a0ab919d056300139a643955680d391bce519f2/pkg/apis/garden/types.go#L1788
approx_popularity: 1
code_block: >
const (
// SeedAvailable is a constant for a condition type indicating the Seed cluster availability.
SeedAvailable ConditionType = "Available"
// ShootControlPlaneHealthy is a constant for a condition type indicating the control plane health.
ShootControlPlaneHealthy ConditionType = "ControlPlaneHealthy"
// ShootEveryNodeReady is a constant for a condition type indicating the node health.
ShootEveryNodeReady ConditionType = "EveryNodeReady"
// ShootSystemComponentsHealthy is a constant for a condition type indicating the system components health.
ShootSystemComponentsHealthy ConditionType = "SystemComponentsHealthy"
// ShootAPIServerAvailable is a constant for a condition type indicating the api server is available.
ShootAPIServerAvailable ConditionType = "APIServerAvailable"
)
----
example_url: https://github.com/yansmallb/kubelet-yxb/blob/748697909022e081015d8c3858ad949558728e5f/pkg/api/types.go#L1447
approx_popularity: 15
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
)
----
example_url: https://github.com/yansmallb/kubelet-yxb/blob/748697909022e081015d8c3858ad949558728e5f/pkg/api/types.go#L2003
approx_popularity: 238
code_block: >
// Type and constants for component health validation.
type ComponentConditionType string
// These are the valid conditions for the component.
const (
ComponentHealthy ComponentConditionType = "Healthy"
)
----
example_url: https://github.com/gardener/gardener/blob/6a0ab919d056300139a643955680d391bce519f2/pkg/apis/garden/v1beta1/types.go#L1890
approx_popularity: 1
code_block: >
const (
// SeedAvailable is a constant for a condition type indicating the Seed cluster availability.
SeedAvailable gardencorev1alpha1.ConditionType = "Available"
// ShootControlPlaneHealthy is a constant for a condition type indicating the control plane health.
ShootControlPlaneHealthy gardencorev1alpha1.ConditionType = "ControlPlaneHealthy"
// ShootEveryNodeReady is a constant for a condition type indicating the node health.
ShootEveryNodeReady gardencorev1alpha1.ConditionType = "EveryNodeReady"
// ShootSystemComponentsHealthy is a constant for a condition type indicating the system components health.
ShootSystemComponentsHealthy gardencorev1alpha1.ConditionType = "SystemComponentsHealthy"
// ShootAPIServerAvailable is a constant for a condition type indicating that the Shoot clusters API server is available.
ShootAPIServerAvailable gardencorev1alpha1.ConditionType = "APIServerAvailable"
)
----
example_url: https://github.com/qingyuancloud/qingyuan/blob/6c975f8106ef8395748bd6199f16cbb6829f9597/pkg/api/types.go#L1329
approx_popularity: 3
code_block: >
const (
// NodeReady means qinglet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
)
----
example_url: https://github.com/glerchundi/kubelistener/blob/ec9407fda4fb923ef92b5355c393f94c82ef3148/pkg/client/api/v1/types.go#L1134
approx_popularity: 1
code_block: >
const (
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
)
----
example_url: https://github.com/glerchundi/kubelistener/blob/ec9407fda4fb923ef92b5355c393f94c82ef3148/pkg/client/api/v1/types.go#L1822
approx_popularity: 1
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
)
----
example_url: https://github.com/metaparticle-io/container-lib/blob/7a199b6f8132c982b1cf1e81663d0d262a60a22a/sharder/vendor/src/github.com/kubernetes/client-go/1.4/pkg/api/types.go#L2198
approx_popularity: 79
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)
----
example_url: https://github.com/ttysteale/kubernetes-api/blob/e7873259c5d15dec3e7d6ba286b29effbe3e772b/api/types.go#L2031
approx_popularity: 12
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)
----
example_url: https://github.com/wangweihong/k8sanalyze/blob/3288e855a463a19fd1bbf1fc6da3a8ec31470a83/staging/src/k8s.io/client-go/pkg/api/types.go#L1439
approx_popularity: 101
code_block: >
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
PodReasonUnschedulable = "Unschedulable"
)
----
example_url: https://github.com/wangweihong/k8sanalyze/blob/3288e855a463a19fd1bbf1fc6da3a8ec31470a83/staging/src/k8s.io/client-go/pkg/api/types.go#L2072
approx_popularity: 170
code_block: >
const (
// ReplicationControllerReplicaFailure is added in a replication controller when one of its pods
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
ReplicationControllerReplicaFailure ReplicationControllerConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/RobinsChens/my-kube/blob/c615e094b80b82435de19a69d67f84418a97a203/staging/src/k8s.io/client-go/pkg/api/types.go#L2243
approx_popularity: 4
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeInodePressure means the kublet is under pressure due to insufficient available inodes.
NodeInodePressure NodeConditionType = "InodePressure"
)
----
example_url: https://github.com/wenlaizhou/kubetype/blob/2f9ab9af5d512178b910a53f9cba298a63462d8a/types.go#L162
approx_popularity: 2
code_block: >
const (
PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing"
PersistentVolumeClaimFileSystemResizePending PersistentVolumeClaimConditionType = "FileSystemResizePending"
)
----
example_url: https://github.com/wenlaizhou/kubetype/blob/2f9ab9af5d512178b910a53f9cba298a63462d8a/types.go#L824
approx_popularity: 2
code_block: >
const (
PodScheduled PodConditionType = "PodScheduled"
PodReady PodConditionType = "Ready"
PodInitialized PodConditionType = "Initialized"
PodReasonUnschedulable = "Unschedulable"
ContainersReady PodConditionType = "ContainersReady"
)
----
example_url: https://github.com/wenlaizhou/kubetype/blob/2f9ab9af5d512178b910a53f9cba298a63462d8a/types.go#L1106
approx_popularity: 2
code_block: >
const (
ReplicationControllerReplicaFailure ReplicationControllerConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/wenlaizhou/kubetype/blob/2f9ab9af5d512178b910a53f9cba298a63462d8a/types.go#L1366
approx_popularity: 2
code_block: >
const (
NodeReady NodeConditionType = "Ready"
NodeOutOfDisk NodeConditionType = "OutOfDisk"
NodeMemoryPressure NodeConditionType = "MemoryPressure"
NodeDiskPressure NodeConditionType = "DiskPressure"
NodePIDPressure NodeConditionType = "PIDPressure"
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)
----
example_url: https://github.com/wenlaizhou/kubetype/blob/2f9ab9af5d512178b910a53f9cba298a63462d8a/types.go#L2039
approx_popularity: 2
code_block: >
const (
DeploymentAvailable DeploymentConditionType = "Available"
DeploymentProgressing DeploymentConditionType = "Progressing"
DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/wenlaizhou/kubetype/blob/2f9ab9af5d512178b910a53f9cba298a63462d8a/types.go#L2155
approx_popularity: 2
code_block: >
const (
ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure"
)
----
example_url: https://github.com/sebva/kubernetes/blob/a57459381851748ce442e7a98defc071ae93db32/pkg/api/types.go#L552
approx_popularity: 12
code_block: >
const (
// An user trigger resize of pvc has been started
PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing"
)
----
example_url: https://github.com/sebva/kubernetes/blob/a57459381851748ce442e7a98defc071ae93db32/pkg/api/types.go#L3302
approx_popularity: 23
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeConfigOK indicates whether the kubelet is correctly configured
NodeConfigOK NodeConditionType = "ConfigOK"
)
----
example_url: https://github.com/kdushyant02/kubernetes_test/blob/e3cbaf06380e4f7354dc48309132d54a6f4adb01/pkg/apis/core/types.go#L415
approx_popularity: 36
code_block: >
const (
// An user trigger resize of pvc has been started
PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing"
// PersistentVolumeClaimFileSystemResizePending - controller resize is finished and a file system resize is pending on node
PersistentVolumeClaimFileSystemResizePending PersistentVolumeClaimConditionType = "FileSystemResizePending"
)
----
example_url: https://github.com/kdushyant02/kubernetes_test/blob/e3cbaf06380e4f7354dc48309132d54a6f4adb01/pkg/apis/core/types.go#L3412
approx_popularity: 7
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeKubeletConfigOk indicates whether the kubelet is correctly configured
NodeKubeletConfigOk NodeConditionType = "KubeletConfigOk"
)
----
example_url: https://github.com/allenhaozi/kubernetes/blob/903b5c955215a2c2eb708e1fbd769f66c2286314/pkg/apis/core/types.go#L2085
approx_popularity: 47
code_block: >
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
PodReasonUnschedulable = "Unschedulable"
// ContainersReady indicates whether all containers in the pod are ready.
ContainersReady PodConditionType = "ContainersReady"
)
----
example_url: https://github.com/ttysteale/kubernetes-api/blob/e7873259c5d15dec3e7d6ba286b29effbe3e772b/api/v1/types.go#L1345
approx_popularity: 21
code_block: >
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
)
----
example_url: https://github.com/enmaipu/Kubernetes/blob/cc270c138da473430d7243e1fbe4fbadf03cc49c/pkg/apis/core/types.go#L3859
approx_popularity: 8
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)
----
example_url: https://github.com/futurewei-cloud/jxtest/blob/5651f20eea19925ded551c01236ed4caac6d090f/pkg/apis/core/types.go#L2322
approx_popularity: 1
code_block: >
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
// PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler
// can't schedule the pod right now, for example due to insufficient resources in the cluster.
PodReasonUnschedulable = "Unschedulable"
// ContainersReady indicates whether all containers in the pod are ready.
ContainersReady PodConditionType = "ContainersReady"
// VmReady indicates whether the virtual machine in the pod is ready
VmReady PodConditionType = "VirtualMachineReady"
)
----
example_url: https://github.com/lavalamp/client-go-flat/blob/2ae7e71b61d557d0c05cbaf9ae4a5e93eda9a36e/pkg/api/v1/types.go#L3099
approx_popularity: 26
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeInodePressure means the kubelet is under pressure due to insufficient available inodes.
NodeInodePressure NodeConditionType = "InodePressure"
)
----
example_url: https://github.com/wangweihong/k8sanalyze/blob/3288e855a463a19fd1bbf1fc6da3a8ec31470a83/pkg/api/v1/types.go#L1687
approx_popularity: 1
code_block: >
const (
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready" //Pod已经正常启动,能够提供服务,如何产生,见pkg/kubelet/status/generate.go的GeneratePodReadyCondition()
----
example_url: https://github.com/kubesys/kubeext-extra/blob/02dab9394f8c62fb3cee45d872cb229dea43b015/kubernetes-extra/full/pkg/apis/core/types.go#L4042
approx_popularity: 5
code_block: >
// NamespaceConditionType defines constants reporting on status during namespace lifetime and deletion progress
type NamespaceConditionType string
// These are valid conditions of a namespace.
const (
NamespaceDeletionDiscoveryFailure NamespaceConditionType = "NamespaceDeletionDiscoveryFailure"
NamespaceDeletionContentFailure NamespaceConditionType = "NamespaceDeletionContentFailure"
NamespaceDeletionGVParsingFailure NamespaceConditionType = "NamespaceDeletionGroupVersionParsingFailure"
)
----
example_url: https://github.com/Vemulashiva/kubernates/blob/0f834b69a1401c73225a09493c722c1d995f3d3b/pkg/apis/core/types.go#L4919
approx_popularity: 3
code_block: >
// ComponentConditionType defines type and constants for component health validation.
type ComponentConditionType string
// These are the valid conditions for the component.
const (
ComponentHealthy ComponentConditionType = "Healthy"
)
----
example_url: https://github.com/ZJUGodwei/K8Srely/blob/999c38701ab5232e11a283881b2013cc903db33b/src/k8s.io/api/core/v1/types.go#L635
approx_popularity: 11
code_block: >
const (
// PersistentVolumeClaimResizing - a user trigger resize of pvc has been started
PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing"
)
----
example_url: https://github.com/kdushyant02/kubernetes_test/blob/e3cbaf06380e4f7354dc48309132d54a6f4adb01/staging/src/k8s.io/api/core/v1/types.go#L460
approx_popularity: 45
code_block: >
const (
// PersistentVolumeClaimResizing - a user trigger resize of pvc has been started
PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing"
// PersistentVolumeClaimFileSystemResizePending - controller resize is finished and a file system resize is pending on node
PersistentVolumeClaimFileSystemResizePending PersistentVolumeClaimConditionType = "FileSystemResizePending"
)
----
example_url: https://github.com/kdushyant02/kubernetes_test/blob/e3cbaf06380e4f7354dc48309132d54a6f4adb01/staging/src/k8s.io/api/core/v1/types.go#L3806
approx_popularity: 8
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodePIDPressure means the kubelet is under pressure due to insufficient available PID.
NodePIDPressure NodeConditionType = "PIDPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
// NodeKubeletConfigOk indicates whether the kubelet is correctly configured
NodeKubeletConfigOk NodeConditionType = "KubeletConfigOk"
)
----
example_url: https://github.com/psrinijarepotemp/Kubernetes/blob/8f52c33e3cd238a1bea305a83ffa308338677fb7/kubernetes-master/staging/src/k8s.io/api/core/v1/types.go#L3899
approx_popularity: 26
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeOutOfDisk means the kubelet will not accept new pods due to insufficient free disk
// space on the node.
NodeOutOfDisk NodeConditionType = "OutOfDisk"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodePIDPressure means the kubelet is under pressure due to insufficient available PID.
NodePIDPressure NodeConditionType = "PIDPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)
----
example_url: https://github.com/edwarnicke/networkservicemesh-vendor/blob/ddfc8aab7474121716d173f85b5b20624e1420b8/k8s.io/api/core/v1/types.go#L2421
approx_popularity: 15
code_block: >
const (
// ContainersReady indicates whether all containers in the pod are ready.
ContainersReady PodConditionType = "ContainersReady"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
)
----
example_url: https://github.com/yansunkai/custom-controller/blob/4e5bbb8b7696d48c02972570bdd742645f2aa06c/k8s.io/api/core/v1/types.go#L4449
approx_popularity: 11
code_block: >
const (
// NodeReady means kubelet is healthy and ready to accept pods.
NodeReady NodeConditionType = "Ready"
// NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory.
NodeMemoryPressure NodeConditionType = "MemoryPressure"
// NodeDiskPressure means the kubelet is under pressure due to insufficient available disk.
NodeDiskPressure NodeConditionType = "DiskPressure"
// NodePIDPressure means the kubelet is under pressure due to insufficient available PID.
NodePIDPressure NodeConditionType = "PIDPressure"
// NodeNetworkUnavailable means that network for the node is not correctly configured.
NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable"
)
----
example_url: https://github.com/futurewei-cloud/jxtest/blob/5651f20eea19925ded551c01236ed4caac6d090f/staging/src/k8s.io/api/core/v1/types.go#L2563
approx_popularity: 1
code_block: >
const (
// ContainersReady indicates whether all containers in the pod are ready.
ContainersReady PodConditionType = "ContainersReady"
// PodInitialized means that all init containers in the pod have started successfully.
PodInitialized PodConditionType = "Initialized"
// PodReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
PodReady PodConditionType = "Ready"
// PodScheduled represents status of the scheduling process for this pod.
PodScheduled PodConditionType = "PodScheduled"
// VmReady indicates whether the virtual machine in the pod is ready
VmReady PodConditionType = "VirtualMachineReady"
)
----
example_url: https://github.com/kubernetes/kubernetes/blob/cbe7c6e3bea120a6828aae4215696f3b078e8dcb/staging/src/k8s.io/api/core/v1/types.go#L4670
approx_popularity: 5
code_block: >
const (
// NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery.
NamespaceDeletionDiscoveryFailure NamespaceConditionType = "NamespaceDeletionDiscoveryFailure"
// NamespaceDeletionContentFailure contains information about namespace deleter errors during deletion of resources.
NamespaceDeletionContentFailure NamespaceConditionType = "NamespaceDeletionContentFailure"
// NamespaceDeletionGVParsingFailure contains information about namespace deleter errors parsing GV for legacy types.
NamespaceDeletionGVParsingFailure NamespaceConditionType = "NamespaceDeletionGroupVersionParsingFailure"
// NamespaceContentRemaining contains information about resources remaining in a namespace.
NamespaceContentRemaining NamespaceConditionType = "NamespaceContentRemaining"
// NamespaceFinalizersRemaining contains information about which finalizers are on resources remaining in a namespace.
NamespaceFinalizersRemaining NamespaceConditionType = "NamespaceFinalizersRemaining"
)
----
example_url: https://github.com/kubesys/kubeext-extra/blob/02dab9394f8c62fb3cee45d872cb229dea43b015/kubernetes-extra/full/staging/src/k8s.io/api/core/v1/types.go#L4673
approx_popularity: 2
code_block: >
const (
// NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery.
NamespaceDeletionDiscoveryFailure NamespaceConditionType = "NamespaceDeletionDiscoveryFailure"
// NamespaceDeletionContentFailure contains information about namespace deleter errors during deletion of resources.
NamespaceDeletionContentFailure NamespaceConditionType = "NamespaceDeletionContentFailure"
// NamespaceDeletionGVParsingFailure contains information about namespace deleter errors parsing GV for legacy types.
NamespaceDeletionGVParsingFailure NamespaceConditionType = "NamespaceDeletionGroupVersionParsingFailure"
)
----
99 Ready
46 Failed
23 Complete
21 Available
19 Running
19 Deployed
18 SinkProvided
15 ReplicaFailure
14 Progressing
13 Succeeded
12 OutOfDisk
11 NetworkUnavailable
11 MemoryPressure
11 Initialized
11 Error
10 PodScheduled
10 Failure
10 DiskPressure
9 Created
9 Active
8 Scheduled
7 ResourcesAvailable
7 Resizing
7 Provisioning
7 ContainerHealthy
7 AllTrafficAssigned
6 Unschedulable
6 InProgress
6 BuildSucceeded
5 Upgrading
5 Terminating
5 SecretsProvided
5 ScalingUp
5 ScalingDown
5 Offline
5 EveryNodeReady
5 ContainersReady
4 SystemComponentsHealthy
4 RoutesReady
4 Pending
4 PIDPressure
4 NamesAccepted
4 Irreconcilable
4 Invalid
4 IngressReady
4 EventTypesProvided
4 Established
4 ControlPlaneHealthy
4 ConfigurationsReady
4 Addressable
4 APIServerAvailable
3 removingSlave
3 removingSeedMaster
3 Valid
3 Synchronized
3 Success
3 Started
3 ServiceProvided
3 Scaling
3 Restarting
3 Recovering
3 NonStructuralSchema
3 NodeStorage
3 NetworkConfigured
3 NamespaceDeletionGroupVersionParsingFailure
3 NamespaceDeletionDiscoveryFailure
3 NamespaceDeletionContentFailure
3 MachineCreation
3 LoadBalancerReady
3 IntegrationPlatformAvailable
3 Installed
3 Healthy
3 FileSystemResizePending
3 EndpointsPopulated
3 Degraded
3 Cancelled
3 Blocked
3 AgentConnected
3 AddingSlave
3 AddingSeedMaster
2 removingMaster
2 WebHookProvided
2 VirtualMachineReady
2 UpdatingSettings
2 Updated
2 TransformerProvided
2 Traffic
2 TopicReady
2 Subscribed
2 Stopped
2 Settled
2 RolledBack
2 RetryFailed
2 ResourcesCreated
2 Released
2 ReleaseFailed
2 ReconcileComplete
2 ReadOnly
2 ProxyContainerWaiting
2 ProxyContainerTerminated
2 Propagation
2 OK
2 New
2 Name
2 MeshMarkedForDeletion
2 MachineCreated
2 LiveMigratable
2 KubeletConfigOk
2 JoiningMaster
2 InvalidUUID
2 InvalidSpec
2 InvalidRedundancy
2 InvalidMasters
2 InvalidData
2 InstallSucceeded
2 InodePressure
2 Health
2 Frozen
2 Errored
2 ElasticsearchContainerWaiting
2 ElasticsearchContainerTerminated
2 Done
2 DeploymentUpdated
2 Delete
2 Creating
2 Completed
2 ChartFetched
2 CertificateProvisioned
2 BackedUp
2 Approved
2 Admitted
2 Activated
1 success
1 removingSentinel
1 redskyops.dev/trial-stable
1 redskyops.dev/trial-setup-deleted
1 redskyops.dev/trial-setup-created
1 redskyops.dev/trial-patched
1 redskyops.dev/trial-observed
1 redskyops.dev/trial-failed
1 redskyops.dev/trial-complete
1 monitoring
1 migrationAbortRequested
1 kn-subscription-ready
1 is-ready
1 events-activated
1 error
1 always
1 ZoneAvailable
1 WebHookUUIDProvided
1 Waiting
1 VolumeResizeSuccessful
1 VolumeResizePending
1 VolumeResizeFailed
1 VolumeResize
1 VirtualServiceActive
1 VirtualRouterActive
1 VirtualNodeActive
1 VersionIncompatible
1 ValidateFailed
1 ValidHistory
1 Uploading
1 Upgraded
1 Upgrade
1 Updating
1 UpdateDefaultConfigurationSuccess
1 UpdateDefaultConfigurationFailure
1 UpToDate
1 Unreachable
1 UnknownObject
1 Uninstalling
1 Uninstalled
1 Unclaimed
1 Type
1 TopicExists
1 TerraformError
1 TemplateControllerRunning
1 TemplateControllerFailing
1 TemplateControllerCompleted
1 TFVarsFromReady
1 TFPodComplete
1 TFPlanReady
1 TFInputsReady
1 Synced
1 Stream
1 StorageState
1 SpecFromReady
1 SourceType
1 SnapshotUploading
1 SnapshotUploaded
1 SnapshotReady
1 SnapshotLoadComplete
1 SnapshotIssued
1 SnapshotCreated
1 ServiceReady
1 ServiceNotAvailable
1 ServiceDeployed
1 ServiceAvailable
1 Service
1 Secet
1 ScalingLimited
1 ScalingActive
1 SamplesExist
1 RoutesActive
1 RouteDeployed
1 RollingUpdate
1 RollingOut
1 Reused
1 Result
1 Restored
1 ResourcesReady
1 ResourcesHealthy
1 ResourcesCorrect
1 ResourcesApplied
1 Resolved
1 Replicating
1 ReplicaPaused
1 RenderFailure
1 RenderDegraded
1 RemovePending
1 ReleaseSynced
1 RegistryInfraProvisioningFailed
1 RegistryInfraProvisioned
1 Registered
1 Recycling
1 Reconciled
1 Reconcile
1 Rebalancing
1 ReadyToJoin
1 Ready //Pod已经正常启动,能够提供服务,如何产生,见pkg/kubelet/status/generate.go的GeneratePodReadyCondition()
1 RayWorkerDeploymentReplicaFailure
1 RayWorkerDeploymentProgressing
1 RayWorkerDeploymentAvailable
1 RayHeadDeploymentReplicaFailure
1 RayHeadDeploymentProgressing
1 RayHeadDeploymentAvailable
1 RateLimited
1 QuaySetupSuccess
1 QuaySetupFailure
1 QuayEcosystemValidationFailure
1 QuayEcosystemSecurityScannerConfigurationSuccess
1 QuayEcosystemSecurityScannerConfigurationFailure
1 QuayEcosystemProvisioningSuccess
1 QuayEcosystemProvisioningFailure
1 QuayEcosystemClairConfigurationSuccess
1 QuayEcosystemClairConfigurationFailure
1 PullSubscriptionReady
1 PublisherReady
1 ProviderConfigReady
1 Promoted
1 PrometheusAvailable
1 PrometheusAlerts
1 Present
1 PodUnfrozen
1 PodFrozen
1 PodBootstrapping
1 Pod
1 PlacementInitialized
1 Phase
1 PendingVerification
1 PendingFailoverAck
1 Pending // waiting for a valid xenv is ready
1 PVCBound
1 OverlayNetworkBroken
1 OutputRef
1 OrphanMitigation
1 Operational
1 ObjectInSync
1 NotificationReady
1 NodeState
1 NodeSelected
1 NodeDegraded
1 NodeConfigInstalling
1 NodeConfigInstalled
1 NodeConfigInstallationFailed
1 NodeAvailable
1 NamespaceFinalizersRemaining
1 NamespaceContentRemaining
1 NameConflict
1 MissingTargetNamespace
1 MigrationInProgress
1 MeshActive
1 MemberLeaving
1 Master
1 LatestRevisionReady
1 Lagged
1 KubernetesAPIApprovalPolicyConformant
1 KnativeServiceAvailable
1 Killed
1 JolokiaAvailable
1 JobReady
1 Issued
1 IntegrationKitAvailable
1 IntELBRegistration
1 InsufficientCloudCreds
1 InstantiateFailure
1 InstanceScheduled
1 Installing
1 InstallerImageResolutionFailed
1 InstallPlanPending
1 InstallPlanMissing
1 InstallPlanFailed
1 InstallFailing
1 Install
1 InitFailed
1 Init
1 IngressCertificateNotFound
1 InfraProvisioningFailed
1 InfraProvisioning
1 InfraProvisioned
1 InfraDeprovisioningFailed
1 InfraDeprovisioning
1 IncumbentAchievedTraffic
1 IncumbentAchievedCapacity
1 IncorrectCRName
1 Inactive // funcinst cannot accept new events
1 InPlaceUpdateReady
1 ImportSuccess
1 ImportCredentialsExist
1 ImageChangesInProgress
1 FilesParsed
1 FilesFetched
1 FailoverInProgress
1 Failing
1 ExtELBRegistration
1 ExposureAvailable
1 EventTypeProvided
1 Enforcing
1 Endpoint
1 Enabled
1 Disabled
1 DeploymentsAvailable
1 DeploymentReady
1 DeploymentAvailable
1 Deployment
1 Deploying
1 Denied
1 DeletionFailed
1 DBCreateComplete
1 CredentialsSecretCreated
1 ControlPlaneInstalling
1 ControlPlaneInstalled
1 ControlPlaneInstallationFailed
1 ControlPlaneCertificateNotFound
1 ContenderAchievedTraffic
1 ContenderAchievedInstallation
1 ContenderAchievedCapacity
1 ContainerWaiting
1 ContainerTerminated
1 ConfigurationValid
1 ConfigSourceReady
1 ConfigOK
1 ComponentsInstalling
1 ComponentsInstalled
1 ComponentsInstallationFailed
1 ClusterVersionMissing
1 ClusterReady
1 ClusterProvisionJobCreated
1 ClusterProvisionInitialized
1 ClusterProvisionFailed
1 ClusterProvisionCompleted
1 ClusterOK
1 ClusterImageSetNotFound
1 ClusterAPIInstalling
1 ClusterAPIInstalled
1 ClusterAPIInstallationFailed
1 Cluster
1 Clean
1 Claimed
1 ChildrenUpToDate
1 ChildrenGarbageCollected
1 CatalogSourcesUnhealthy
1 AttributesSynced
1 ApplySuccess
1 ApplyFailure
1 Applied
1 AppDBInstanceReady
1 AgentStale
1 AgentDisconnected
1 AddingSentinel
1 Active // can be invoked
1 Accepted
1 Aborting
1 AbleToScale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment