flowchart TD
%% Define Vars
NEW_SPEC[New RenderedDeviceSpec]
WRITE_DESIRED[Write to desired.json]
RECONCILE_LOOP[Reconcile Loop]
UPDATE_CURRENT[Desired -> Current Spec]
PRECHECK1[Ensure Dependencies Met]
PRECHECK2[Before Update Hooks]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package console | |
import ( | |
"context" | |
"errors" | |
"testing" | |
api "github.com/flightctl/flightctl/api/v1alpha1" | |
"github.com/flightctl/flightctl/pkg/executer" | |
"github.com/flightctl/flightctl/pkg/log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm install fctl-ocp-ui oci://quay.io/flightctl/flightctl-ocp-ui --version=0.0.1-96-gab2e859 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PoolSynchronizerStatus struct { | |
// poolSynchronizerType describes the type of the pool synchronizer. | |
// +kubebuilder:validation:Required | |
PoolSynchronizerType PoolSynchronizerType `json:"poolSynchronizerType"` | |
// machineCount is the number of machines that are managed by the node synchronizer. | |
// +kubebuilder:validation:Required | |
// +kubebuilder:validation:Minimum=0 | |
MachineCount int64 `json:"machineCount"` | |
// updatedMachineCount is the number of machines that have been updated by the node synchronizer. | |
// +kubebuilder:validation:Required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
featureGateAccessor := featuregates.NewFeatureGateAccess( | |
desiredVersion, missingVersion, | |
configSharedInformer.Config().V1().ClusterVersions(), configSharedInformer.Config().V1().FeatureGates(), | |
recorder, | |
) | |
go featureGateAccessor.Run(ctx) | |
// dep for feature gate | |
ctrlctx.ConfigInformerFactory.Start(ctrlctx.Stop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#set -x | |
IMAGE_NAME="$1" | |
RELEASE="$2" | |
TAG="$3" | |
if [ "$IMAGE_NAME" == "" ]; then | |
echo "IMAGE_NAME is required. example cluster-etcd-operator" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $mod Mod4 | |
new_window pixel 1 | |
new_float normal | |
workspace_layout default | |
hide_edge_borders none | |
bindsym $mod+u border none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate serde; | |
extern crate serde_yaml; | |
use serde::{Deserialize, Serialize}; | |
#[derive(Debug, Serialize, Deserialize, PartialEq)] | |
struct Config { | |
max_memory_pages: u32, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A WebSocket is a persistent connection between a client and server. | |
WebSockets provide a bidirectional, full-duplex communications channel | |
that operates over HTTP through a single TCP/IP socket connection. | |
Allows for bidirectional communication of a single tcp conn. | |
#!/usr/bin/python3 | |
def binarySearch(arr, x): | |
l = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import exec from 'k6/execution'; | |
export const options = { | |
scenarios: { | |
constant_request_rate: { | |
executor: 'constant-arrival-rate', | |
rate: 1000, | |
timeUnit: '1s', // 1000 iterations per second | |
duration: '120s', | |
preAllocatedVUs: 1500, // how large the initial pool of VUs would be |
NewerOlder