Skip to content

Instantly share code, notes, and snippets.

View hexfusion's full-sized avatar
🐀
scampering

Sam Batschelet hexfusion

🐀
scampering
  • Red Hat
  • gRPC stream
View GitHub Profile

and renderedVersion 5 I see all of the monitors reset to default.

Oct 04 14:51:54 localhost.localdomain flightctl-agent[1075]: time="2024-10-04T14:51:54.184625Z" level=info msg="Reset CPU monitor alerts"
Oct 04 14:51:54 localhost.localdomain flightctl-agent[1075]: time="2024-10-04T14:51:54.184803Z" level=info msg="Reset disk monitor alerts"
Oct 04 14:51:54 localhost.localdomain flightctl-agent[1075]: time="2024-10-04T14:51:54.184885Z" level=info msg="Reset memory monitor alerts"
Oct 04 14:51:54 localhost.localdomain flightctl-agent[1075]: time="2024-10-04T14:51:54.192619Z" level=info msg="Spec upgrade complete: clearing rollback spec"
Oct 04 14:51:54 localhost.localdomain flightctl-agent[1075]: time="2024-10-04T14:51:54.323268Z" level=info msg="Synced device to renderedVersion: 5"
@hexfusion
hexfusion / agent_current.md
Last active September 25, 2024 13:24
agent_current
flowchart TD
    %% Define Vars
    MANAGEMENT_API[Query Mgt API]
    RECONCILE_LOOP[Reconcile Loop]
    UPDATE_CURRENT[Desired -> Current Spec]
    RECONCILE_NEW[New --> Desired Spec]

    STATUS_DEGRADED[Report Degraded Status]
    STATUS_SUCCESS[Report Success Status]
@hexfusion
hexfusion / agent_update_flow.md
Last active September 24, 2024 20:04
flightctl agent update flow
flowchart TD
    %% Define Vars
    MANAGEMENT_API[Query Mgt API]
    WRITE_DESIRED[Write to desired.json]
    RECONCILE_LOOP[Reconcile Loop]
    UPDATE_CURRENT[Desired -> Current Spec]
    RECONCILE_NEW[New --> Desired Spec]

    PRECHECK1[Ensure Dependencies Met]
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"
helm install fctl-ocp-ui oci://quay.io/flightctl/flightctl-ocp-ui --version=0.0.1-96-gab2e859
grep 'Completed fetch device' your_log_file.log | grep -E ' [0-9]+(\.[0-9]+)?s"'
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
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)
#!/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"
set $mod Mod4
new_window pixel 1
new_float normal
workspace_layout default
hide_edge_borders none
bindsym $mod+u border none
extern crate serde;
extern crate serde_yaml;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, PartialEq)]
struct Config {
max_memory_pages: u32,
}