Skip to content

Instantly share code, notes, and snippets.

@abutcher
Created April 6, 2021 15:47
Show Gist options
  • Save abutcher/ab414d0d61d6677c98ea381d0331d377 to your computer and use it in GitHub Desktop.
Save abutcher/ab414d0d61d6677c98ea381d0331d377 to your computer and use it in GitHub Desktop.
time="2021-04-06T15:38:24.042Z" level=info msg="reconciling ClusterDeployment" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="Getting statefulset" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="Ensuring replicas is set" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="Getting uid for hashing" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="hexUID: 56db3ef7f5464778a0f642d5dd4ab79d" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="calculating replicas" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="determining who is assigned to sync this cluster" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.043Z" level=debug msg="computed values" assignedToMe=true clusterDeployment=default/abutcher controller=clustersync ordinalID=0 ordinalIDOfAssignee=0 reconcileID=dm7tqk2s replicas=1
time="2021-04-06T15:38:24.045Z" level=debug msg="creating cmdutil.Factory from REST client config and cache directory" cache-dir=/tmp clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.207Z" level=debug msg="applying syncset because the syncset is new" SelectorSyncSet=sample-configmap2 clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.207Z" level=debug msg="applying resource" SelectorSyncSet=sample-configmap2 clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s resourceAPIVersion=v1 resourceIndex=0 resourceKind=ConfigMap resourceName=sample-configmap resourceNamespace=default
time="2021-04-06T15:38:24.208Z" level=debug msg="creating cmdutil.Factory from REST client config and cache directory" cache-dir=/tmp clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.208Z" level=debug msg="setting up apply command" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.287Z" level=debug msg="resource applied" SelectorSyncSet=sample-configmap2 applyResult=configured clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s resourceAPIVersion=v1 resourceIndex=0 resourceKind=ConfigMap resourceName=sample-configmap resourceNamespace=default
time="2021-04-06T15:38:24.287Z" level=info msg="syncset applied" SelectorSyncSet=sample-configmap2 clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.287Z" level=info msg="skipped observing first successful apply of SelectorSyncSet metric because ClusterSync has a FirstSuccessTime" SelectorSyncSet=sample-configmap2 clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.287Z" level=info msg="deleting resource" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s resourceAPIVersion=v1 resourceKind=ConfigMap resourceName=sample-configmap resourceNamespace=default
time="2021-04-06T15:38:24.287Z" level=debug msg="creating cmdutil.Factory from REST client config and cache directory" cache-dir=/tmp clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.355Z" level=info msg="updating ClusterSync" clusterDeployment=default/abutcher controller=clustersync reconcileID=dm7tqk2s
time="2021-04-06T15:38:24.366Z" level=info msg="reconcile complete" clusterDeployment=default/abutcher controller=clustersync elapsedMillis=323 elapsedMillisGT=0 outcome=full-sync reconcileID=dm7tqk2s
---
apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
name: sample-configmap
spec:
resourceApplyMode: Sync
clusterDeploymentSelector:
matchLabels:
abutcher: "true"
resources:
- apiVersion: v1
kind: ConfigMap
namespace: default
metadata:
name: sample-configmap
namespace: default
data:
foo: bar
---
apiVersion: hive.openshift.io/v1
kind: SelectorSyncSet
metadata:
name: sample-configmap2
spec:
resourceApplyMode: Sync
clusterDeploymentSelector:
matchLabels:
abutcher: "false"
resources:
- apiVersion: v1
kind: ConfigMap
namespace: default
metadata:
name: sample-configmap
namespace: default
data:
foo: baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment